SlideShare a Scribd company logo
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) Used to connect remotely(remote login) to a computer.
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)) Copies  files between hosts on a network.
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 Desktop Environments Gnome/KDE Text Editors Gedit  Shell Terminal Changing System Properties Basic Properties (Display,Appearance,Default Applications)
Proxy Settings Installing/Un installing any packages  UBUNTU Package manager
Software Installations

More Related Content

ODP
GNU/LINUX - Day 1
ODP
Fos sintro pres-dav
PPS
Linux
PPTX
Introduction to linux
PPTX
Linux basics
PDF
Introduction to FOSS
PPT
Ubuntu
PDF
Linux OS presentation
GNU/LINUX - Day 1
Fos sintro pres-dav
Linux
Introduction to linux
Linux basics
Introduction to FOSS
Ubuntu
Linux OS presentation

What's hot (20)

ODP
Linux distro and its features by adam
PDF
Introduction to linux
PPTX
Linux basics
PDF
Ubuntu Quick Guide
ODP
Acme linux presentation
PPSX
Ubuntu - The History
PPTX
Linux Operating System Fundamentals
PPT
Introduction to Linux
KEY
Metasploit @ 2010 Utah Open Source Conference
ODP
Linux Presentation
PDF
Présentation ubuntu 12.10 PDF
ODP
Introduction to FOSS world
PPT
PPT
Linux introduction
ODP
Compare Operating System
PPTX
Linux operating system
PPT
Linux os and its features
PDF
Before begining linux
PPTX
what is LINUX ? presentation.
ODP
Introduction to Linux OS
Linux distro and its features by adam
Introduction to linux
Linux basics
Ubuntu Quick Guide
Acme linux presentation
Ubuntu - The History
Linux Operating System Fundamentals
Introduction to Linux
Metasploit @ 2010 Utah Open Source Conference
Linux Presentation
Présentation ubuntu 12.10 PDF
Introduction to FOSS world
Linux introduction
Compare Operating System
Linux operating system
Linux os and its features
Before begining linux
what is LINUX ? presentation.
Introduction to Linux OS
Ad

Viewers also liked (20)

PPTX
How To Handle An IRD Audit - Atainz
PDF
Embedded linux barco-20121001
PDF
OTT in Azerbaijan - Project Brief
PDF
Ensoft dvb 1
PDF
Assistencia geologica
PDF
sasikumarj_resume
PDF
The move from a hardware centric design to a software centric design: GStream...
PPT
PPT
Capria no_video_ship_detection_with_dvbt_software_defined_passive_radar
PDF
Buildin a small linux kernel
PDF
Standard java coding convention
PPTX
An Ultra-Low Power Asynchronous-Logic
PPT
Embedded Linux
PDF
10 ways hardware engineers can make software integration easier
PPTX
PDF
Overview of DVB-T standard to deploy Digital Terrestrial Television
PDF
11 ak45b5 5
PDF
Introduction to Raspberry PI
PDF
Embedded Linux Basics
PPT
The Digital Video Broadcast (DVB) Project
How To Handle An IRD Audit - Atainz
Embedded linux barco-20121001
OTT in Azerbaijan - Project Brief
Ensoft dvb 1
Assistencia geologica
sasikumarj_resume
The move from a hardware centric design to a software centric design: GStream...
Capria no_video_ship_detection_with_dvbt_software_defined_passive_radar
Buildin a small linux kernel
Standard java coding convention
An Ultra-Low Power Asynchronous-Logic
Embedded Linux
10 ways hardware engineers can make software integration easier
Overview of DVB-T standard to deploy Digital Terrestrial Television
11 ak45b5 5
Introduction to Raspberry PI
Embedded Linux Basics
The Digital Video Broadcast (DVB) Project
Ad

Similar to Linux Workshop , Day 3 (20)

PDF
2.1.using the shell
PPT
Processes And Job Control
PPT
Linux operating system by Quontra Solutions
PPT
Linux Commands
PDF
Information about linux operating system
PPT
Linux Basics
PDF
Filters & Vi Editor
PPT
02 linux desktop usage
PPTX
Unix Shell Script - 2 Days Session.pptx
PPT
Linux Commands
PPTX
Presentation for RHCE in linux
PPT
Linux
ODP
PDF
Unit 10 investigating and managing
PPTX
Introduction 2 linux
PDF
Unix _linux_fundamentals_for_hpc-_b
PDF
Unix and Linux - The simple introduction
ODP
DOCX
archive A-Z linux
PDF
Presentation aix basic
2.1.using the shell
Processes And Job Control
Linux operating system by Quontra Solutions
Linux Commands
Information about linux operating system
Linux Basics
Filters & Vi Editor
02 linux desktop usage
Unix Shell Script - 2 Days Session.pptx
Linux Commands
Presentation for RHCE in linux
Linux
Unit 10 investigating and managing
Introduction 2 linux
Unix _linux_fundamentals_for_hpc-_b
Unix and Linux - The simple introduction
archive A-Z linux
Presentation aix basic

Recently uploaded (20)

PPTX
Cell Types and Its function , kingdom of life
PDF
Sports Quiz easy sports quiz sports quiz
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
RMMM.pdf make it easy to upload and study
PPTX
master seminar digital applications in india
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Institutional Correction lecture only . . .
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Lesson notes of climatology university.
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Pre independence Education in Inndia.pdf
PDF
Insiders guide to clinical Medicine.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Cell Types and Its function , kingdom of life
Sports Quiz easy sports quiz sports quiz
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
RMMM.pdf make it easy to upload and study
master seminar digital applications in india
Abdominal Access Techniques with Prof. Dr. R K Mishra
Microbial diseases, their pathogenesis and prophylaxis
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Institutional Correction lecture only . . .
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Lesson notes of climatology university.
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Pre independence Education in Inndia.pdf
Insiders guide to clinical Medicine.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
102 student loan defaulters named and shamed – Is someone you know on the list?
Pharmacology of Heart Failure /Pharmacotherapy of CHF
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
GDM (1) (1).pptx small presentation for students
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.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. SSH (OpenSSH SSH client) Used to connect remotely(remote login) to a computer.
  • 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. SCP (secure copy (remote file copy program)) Copies files between hosts on a network.
  • 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. Introduction to GUI Desktop Environments Gnome/KDE Text Editors Gedit Shell Terminal Changing System Properties Basic Properties (Display,Appearance,Default Applications)
  • 15. Proxy Settings Installing/Un installing any packages UBUNTU Package manager
  • 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