SlideShare uma empresa Scribd logo
1 de 16
LINUX WORKSHOP 20th - 25th January IIT Kanpur Abhishek Srivastava (http://nitabhi.wordpress.com) YEINDIA (www.yeindia.org)
Introduction to vi
vi text editor : Two Modes of VI Insert Mode Command Mode Simple VI Commands a,i ,o – enter into insert mode  A,I,O – enter into insert mode(different from above) h,j,k,l – cursor movement u – undo or redo the last change Dw, d$, 3dd – for deletion of word or line p or P – for pasting  w – write wq – write and quite q! – quite without making changes
LINUX SHELL The Linux shell refers to a special program that allows you to interact with it by entering certain commands from the keyboard; the shell will execute the commands and display its output on the monitor.(That is standard output device) Different types of SHELL bash  GNU Bourne-Again Shell ksh Kourne Shell sh  Simple shell (command interpreter) BASH  :  Bash is a free software Unix shell written for the GNU Project. Its name is an acronym which stands for Bourne-again shell.
Searching for a file  : locate – find files by name Find – search for files in a directory hierarchy Note :   Difference between both is that , locate finds files  using locate database (if it exists) and therefor it is  much faster. Whereas find search for a file or directory in present working directory. Usage  : locate [options] pattern find ~ -iname file.txt find ~ -name file.txt Note : -maxdepth (optional argument for find command)
Printing a matching pattern  :  grep It print lines matching a pattern. Syntax   :   grep [Options] PATTERN [FILE..]  Example  : grep capacity: /proc/acpi/battery/C245/info Optional Parameters : -i , -w , -c , -n
SSH   (OpenSSH SSH client) ,[object Object]
Provide secure encrypted communications between two untrusted hosts over an insecure network. Syntax  : ssh username@server [-p port] Additional Arguments  : -4  Forces ssh to use IPv4 addresses only. -6  Forces ssh to use IPv6 addresses only. Note : ssh exits with the exit status of the remote command or with 255 if an error occurred.
SCP   (secure copy (remote file copy program)) ,[object Object]
It uses ssh for data transfer, and uses the same authentication  and provides the same security as ssh. Syntax  : scp user1@server1:filepath1 user2@server2:filepath2 Additional Arguments  : -4  Forces ssh to use IPv4 addresses only. -6  Forces ssh to use IPv6 addresses only. -C Compression enable Note :  The scp utility exits 0 on success, and >0 if an error occurs.
Process and Handling Processes in LINUX A process is a program in execution. It consists of the executing program code, a set of resources such as open files, internal kernel data, an address space, one or more threads of execution and a data section containing global variables. ps – show information about a selection of the active processes. Shows information of PID , TTY , TIME , CMD PID : process ID TTY : terminal TIME : time to complete the command CMD : command executed
Examples of ps command (optional arguments): ps -ag To get information about all running process. ps aux To display the owner of the processes along with the processes. ps ax | grep process_name pstree – Display a tree of all processes running. top – T o see currently running processes and other  information like memory and CPU usage with real  time updates. Note  :  To exit from top command press q.
Kill – Cancels a job.(Sends a signal to a process) Syntax  : kill [-s] %pid -s  Specify the signal to send Examples  :   kill -9 pid
Introduction to GUI ,[object Object]
Proxy Settings ,[object Object],[object Object]
Software Installations

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Linux distro and its features by adam
Linux distro and its features by adamLinux distro and its features by adam
Linux distro and its features by adam
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Ubuntu Quick Guide
Ubuntu Quick GuideUbuntu Quick Guide
Ubuntu Quick Guide
 
Acme linux presentation
Acme linux presentationAcme linux presentation
Acme linux presentation
 
Ubuntu - The History
Ubuntu - The HistoryUbuntu - The History
Ubuntu - The History
 
Linux Operating System Fundamentals
Linux Operating System FundamentalsLinux Operating System Fundamentals
Linux Operating System Fundamentals
 
Introduction to Linux
Introduction to LinuxIntroduction to Linux
Introduction to Linux
 
Metasploit @ 2010 Utah Open Source Conference
Metasploit @ 2010 Utah Open Source ConferenceMetasploit @ 2010 Utah Open Source Conference
Metasploit @ 2010 Utah Open Source Conference
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Présentation ubuntu 12.10 PDF
Présentation ubuntu  12.10 PDFPrésentation ubuntu  12.10 PDF
Présentation ubuntu 12.10 PDF
 
Introduction to FOSS world
Introduction to FOSS worldIntroduction to FOSS world
Introduction to FOSS world
 
Ppt af linux
Ppt af linuxPpt af linux
Ppt af linux
 
Linux introduction
Linux introductionLinux introduction
Linux introduction
 
Compare Operating System
Compare Operating SystemCompare Operating System
Compare Operating System
 
Linux operating system
Linux operating systemLinux operating system
Linux operating system
 
Linux os and its features
Linux os and its featuresLinux os and its features
Linux os and its features
 
Before begining linux
Before begining linuxBefore begining linux
Before begining linux
 
what is LINUX ? presentation.
what is LINUX ? presentation.what is LINUX ? presentation.
what is LINUX ? presentation.
 
Introduction to Linux OS
Introduction to Linux OSIntroduction to Linux OS
Introduction to Linux OS
 

Destaque

Embedded linux barco-20121001
Embedded linux barco-20121001Embedded linux barco-20121001
Embedded linux barco-20121001Marc Leeman
 
OTT in Azerbaijan - Project Brief
OTT in Azerbaijan - Project BriefOTT in Azerbaijan - Project Brief
OTT in Azerbaijan - Project BriefFarhad Shahrivar
 
Ensoft dvb 1
Ensoft dvb 1Ensoft dvb 1
Ensoft dvb 1sarge
 
Assistencia geologica
Assistencia geologicaAssistencia geologica
Assistencia geologicacrom68
 
sasikumarj_resume
sasikumarj_resumesasikumarj_resume
sasikumarj_resumeSasi Kumar
 
The move from a hardware centric design to a software centric design: GStream...
The move from a hardware centric design to a software centric design: GStream...The move from a hardware centric design to a software centric design: GStream...
The move from a hardware centric design to a software centric design: GStream...Marc Leeman
 
Capria no_video_ship_detection_with_dvbt_software_defined_passive_radar
 Capria no_video_ship_detection_with_dvbt_software_defined_passive_radar Capria no_video_ship_detection_with_dvbt_software_defined_passive_radar
Capria no_video_ship_detection_with_dvbt_software_defined_passive_radargrssieee
 
Buildin a small linux kernel
Buildin a small linux kernelBuildin a small linux kernel
Buildin a small linux kerneltrx2001
 
Standard java coding convention
Standard java coding conventionStandard java coding convention
Standard java coding conventionTam Thanh
 
An Ultra-Low Power Asynchronous-Logic
An Ultra-Low Power Asynchronous-LogicAn Ultra-Low Power Asynchronous-Logic
An Ultra-Low Power Asynchronous-LogicHossam Hassan
 
10 ways hardware engineers can make software integration easier
10 ways hardware engineers can make software integration easier10 ways hardware engineers can make software integration easier
10 ways hardware engineers can make software integration easierChris Simmonds
 
Overview of DVB-T standard to deploy Digital Terrestrial Television
Overview of DVB-T standard to deploy Digital Terrestrial TelevisionOverview of DVB-T standard to deploy Digital Terrestrial Television
Overview of DVB-T standard to deploy Digital Terrestrial TelevisionFarhad Shahrivar
 
11 ak45b5 5
11 ak45b5 511 ak45b5 5
11 ak45b5 5crom68
 
Embedded Linux Basics
Embedded Linux BasicsEmbedded Linux Basics
Embedded Linux BasicsMarc Leeman
 
The Digital Video Broadcast (DVB) Project
The Digital Video Broadcast (DVB) ProjectThe Digital Video Broadcast (DVB) Project
The Digital Video Broadcast (DVB) ProjectPartho Choudhury
 

Destaque (20)

How To Handle An IRD Audit - Atainz
How To Handle An IRD Audit - AtainzHow To Handle An IRD Audit - Atainz
How To Handle An IRD Audit - Atainz
 
Embedded linux barco-20121001
Embedded linux barco-20121001Embedded linux barco-20121001
Embedded linux barco-20121001
 
OTT in Azerbaijan - Project Brief
OTT in Azerbaijan - Project BriefOTT in Azerbaijan - Project Brief
OTT in Azerbaijan - Project Brief
 
Ensoft dvb 1
Ensoft dvb 1Ensoft dvb 1
Ensoft dvb 1
 
Assistencia geologica
Assistencia geologicaAssistencia geologica
Assistencia geologica
 
sasikumarj_resume
sasikumarj_resumesasikumarj_resume
sasikumarj_resume
 
The move from a hardware centric design to a software centric design: GStream...
The move from a hardware centric design to a software centric design: GStream...The move from a hardware centric design to a software centric design: GStream...
The move from a hardware centric design to a software centric design: GStream...
 
DVB-T/H Solution
DVB-T/H  SolutionDVB-T/H  Solution
DVB-T/H Solution
 
Capria no_video_ship_detection_with_dvbt_software_defined_passive_radar
 Capria no_video_ship_detection_with_dvbt_software_defined_passive_radar Capria no_video_ship_detection_with_dvbt_software_defined_passive_radar
Capria no_video_ship_detection_with_dvbt_software_defined_passive_radar
 
Buildin a small linux kernel
Buildin a small linux kernelBuildin a small linux kernel
Buildin a small linux kernel
 
Standard java coding convention
Standard java coding conventionStandard java coding convention
Standard java coding convention
 
An Ultra-Low Power Asynchronous-Logic
An Ultra-Low Power Asynchronous-LogicAn Ultra-Low Power Asynchronous-Logic
An Ultra-Low Power Asynchronous-Logic
 
Embedded Linux
Embedded LinuxEmbedded Linux
Embedded Linux
 
10 ways hardware engineers can make software integration easier
10 ways hardware engineers can make software integration easier10 ways hardware engineers can make software integration easier
10 ways hardware engineers can make software integration easier
 
J2ME
J2MEJ2ME
J2ME
 
Overview of DVB-T standard to deploy Digital Terrestrial Television
Overview of DVB-T standard to deploy Digital Terrestrial TelevisionOverview of DVB-T standard to deploy Digital Terrestrial Television
Overview of DVB-T standard to deploy Digital Terrestrial Television
 
11 ak45b5 5
11 ak45b5 511 ak45b5 5
11 ak45b5 5
 
Introduction to Raspberry PI
Introduction to Raspberry PIIntroduction to Raspberry PI
Introduction to Raspberry PI
 
Embedded Linux Basics
Embedded Linux BasicsEmbedded Linux Basics
Embedded Linux Basics
 
The Digital Video Broadcast (DVB) Project
The Digital Video Broadcast (DVB) ProjectThe Digital Video Broadcast (DVB) Project
The Digital Video Broadcast (DVB) Project
 

Semelhante a Linux Workshop , Day 3 (20)

Linux
LinuxLinux
Linux
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
Linux
LinuxLinux
Linux
 
3. intro
3. intro3. intro
3. intro
 
cisco
ciscocisco
cisco
 
Linux training
Linux trainingLinux training
Linux training
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
Unix_Introduction_BCA.pptx the very basi
Unix_Introduction_BCA.pptx the very basiUnix_Introduction_BCA.pptx the very basi
Unix_Introduction_BCA.pptx the very basi
 
Terminal basic-commands(Unix) -partI
Terminal basic-commands(Unix) -partITerminal basic-commands(Unix) -partI
Terminal basic-commands(Unix) -partI
 
Linux basic
Linux basicLinux basic
Linux basic
 
Linux Commands
Linux CommandsLinux Commands
Linux Commands
 
Linux week 2
Linux week 2Linux week 2
Linux week 2
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
 
Red Hat Linux cheat sheet
Red Hat Linux cheat sheetRed Hat Linux cheat sheet
Red Hat Linux cheat sheet
 
Linux Internals - Part I
Linux Internals - Part ILinux Internals - Part I
Linux Internals - Part I
 
Basics of Linux Commands, Git and Github
Basics of Linux Commands, Git and GithubBasics of Linux Commands, Git and Github
Basics of Linux Commands, Git and Github
 
Adhocr T-dose 2012
Adhocr T-dose 2012Adhocr T-dose 2012
Adhocr T-dose 2012
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
 

Último

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 

Último (20)

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

Linux Workshop , Day 3

  • 1. LINUX WORKSHOP 20th - 25th January IIT Kanpur Abhishek Srivastava (http://nitabhi.wordpress.com) YEINDIA (www.yeindia.org)
  • 3. vi text editor : Two Modes of VI Insert Mode Command Mode Simple VI Commands a,i ,o – enter into insert mode A,I,O – enter into insert mode(different from above) h,j,k,l – cursor movement u – undo or redo the last change Dw, d$, 3dd – for deletion of word or line p or P – for pasting w – write wq – write and quite q! – quite without making changes
  • 4. LINUX SHELL The Linux shell refers to a special program that allows you to interact with it by entering certain commands from the keyboard; the shell will execute the commands and display its output on the monitor.(That is standard output device) Different types of SHELL bash GNU Bourne-Again Shell ksh Kourne Shell sh Simple shell (command interpreter) BASH : Bash is a free software Unix shell written for the GNU Project. Its name is an acronym which stands for Bourne-again shell.
  • 5. Searching for a file : locate – find files by name Find – search for files in a directory hierarchy Note : Difference between both is that , locate finds files using locate database (if it exists) and therefor it is much faster. Whereas find search for a file or directory in present working directory. Usage : locate [options] pattern find ~ -iname file.txt find ~ -name file.txt Note : -maxdepth (optional argument for find command)
  • 6. Printing a matching pattern : grep It print lines matching a pattern. Syntax : grep [Options] PATTERN [FILE..] Example : grep capacity: /proc/acpi/battery/C245/info Optional Parameters : -i , -w , -c , -n
  • 7.
  • 8. Provide secure encrypted communications between two untrusted hosts over an insecure network. Syntax : ssh username@server [-p port] Additional Arguments : -4 Forces ssh to use IPv4 addresses only. -6 Forces ssh to use IPv6 addresses only. Note : ssh exits with the exit status of the remote command or with 255 if an error occurred.
  • 9.
  • 10. It uses ssh for data transfer, and uses the same authentication and provides the same security as ssh. Syntax : scp user1@server1:filepath1 user2@server2:filepath2 Additional Arguments : -4 Forces ssh to use IPv4 addresses only. -6 Forces ssh to use IPv6 addresses only. -C Compression enable Note : The scp utility exits 0 on success, and >0 if an error occurs.
  • 11. Process and Handling Processes in LINUX A process is a program in execution. It consists of the executing program code, a set of resources such as open files, internal kernel data, an address space, one or more threads of execution and a data section containing global variables. ps – show information about a selection of the active processes. Shows information of PID , TTY , TIME , CMD PID : process ID TTY : terminal TIME : time to complete the command CMD : command executed
  • 12. Examples of ps command (optional arguments): ps -ag To get information about all running process. ps aux To display the owner of the processes along with the processes. ps ax | grep process_name pstree – Display a tree of all processes running. top – T o see currently running processes and other information like memory and CPU usage with real time updates. Note : To exit from top command press q.
  • 13. Kill – Cancels a job.(Sends a signal to a process) Syntax : kill [-s] %pid -s Specify the signal to send Examples : kill -9 pid
  • 14.
  • 15.
  • 17. Using Package Manager System --> Administration --> Package Manager Note : Software Sources, are the servers from where package manager searches for the package we are going to install. Using Source Code
  • 18. Different Utilities SYNAPTIC MANAGER – Graphical management of software packages Command : synaptic aptitude – High-level interface to the package manager Command : aptitude apt-get – Package handling utility Command : apt-get dpkg – Install debian/ubuntu binary packages (.deb) Command : dpkg
  • 19. ALL Slides are uploaded @ http://www.slideshare.net/geekab Thanks