SlideShare a Scribd company logo
2
Most read
4
Most read
10
Most read
Linux Command Basics To execute a command, type its name and arguments at the command line ls -l /etc Command name Options (flags) Arguments
Common Commands pwd  - print (display) the working directory cd   < dir>  - change the current working directory to  dir ls  - list the files in the current working directory ls  -l  - list the files in the current working directory in long format
File Commands cp   <fromfile> <tofile> Copy from the <fromfile> to the <tofile>  mv   <fromfile> <tofile> Move/rename the <fromfile> to the <tofile> rm   <file> Remove the file named <file> mkdir   <newdir> Make a new directory called <newdir> rmdir   <dir> Remove directory
More Commands who List who is currently logged on to the system whoami Report what user you are logged on as echo   “A string to be echoed” Echo a string (displays a message) to the terminal
More Commands alias  - used to tailor commands: alias erase=rm arch   -Print machine architecture
More Commands awk  -  a file processing language that is well suited to data manipulation and retrieval of information from text files chown  -  sets the user ID (UID) to owner for the files and directories named by pathname arguments. This command is useful when from test to production
More Commands diff   - attempts to determine the minimal set of changes needed to convert a file specified by the first argument into the file specified by the second argument find  -   Searches a given file hierarchy specified by path, finding files that match the criteria given by expression
More Commands grep   -   Searches files for one or more pattern arguments. It does plain string, basic regular expression, and extended regular expression searching pushd   Save and then change the current directory pwd  Print Working Directory
More Commands kill  - sends a signal to a  process  or  process group You can only kill your own processes unless you are root lprint   Print a file lprintd   Abort a print job lprintq   List the print queue
More Commands df   Display free disk space cp   Copy one or more files to another location cat   Display the contents of a file
More Commands tar  - manipulates archives  An archive is a single file that contains the complete contents of a set of other files; an archive preserves the directory  hierarchy that contained the original files.  gzip   Compress or decompress named file(s)
Switching Users su   <accountname> switch user accounts. You will be prompted for a password. When this command completes, you will be logged into the new account. Type  exit  to return to the previous account su Switch to the root user account. Do not do this lightly Note:  The root user does not need to enter a password when switching users. It may become any user desired. This is part of the power of the root account.
References http:// www.linux.org http://www.tux.org   http:// www.li.org
Thanks

More Related Content

What's hot (20)

PPTX
Linux basic commands
Sagar Kumar
 
PPTX
Shell scripting
simha.dev.lin
 
PPTX
Unix Linux Commands Presentation 2013
Wave Digitech
 
PDF
Basic linux commands
Shakeel Shafiq
 
PDF
Course 102: Lecture 4: Using Wild Cards
Ahmed El-Arabawy
 
PPTX
Know the UNIX Commands
Brahma Killampalli
 
PDF
Kali linux commands
Jubair Ahmed Junjun
 
PPT
Unix/Linux Basic Commands and Shell Script
sbmguys
 
PPTX
Unix shell scripts
Prakash Lambha
 
PPT
Linux command ppt
kalyanineve
 
PPTX
Users and groups
Varnnit Jain
 
PPSX
User Administration in Linux
SAMUEL OJO
 
ODP
Linux commands
Balakumaran Arunachalam
 
PPTX
Introduction to Linux
Harish R
 
PPTX
Linux basics part 1
Lilesh Pathe
 
PDF
Linux systems - Linux Commands and Shell Scripting
Emertxe Information Technologies Pvt Ltd
 
PDF
Part 02 Linux Kernel Module Programming
Tushar B Kute
 
PPTX
Basics of shell programming
Chandan Kumar Rana
 
PDF
Ubuntu – Linux Useful Commands
University of Technology
 
PDF
Shell scripting
Geeks Anonymes
 
Linux basic commands
Sagar Kumar
 
Shell scripting
simha.dev.lin
 
Unix Linux Commands Presentation 2013
Wave Digitech
 
Basic linux commands
Shakeel Shafiq
 
Course 102: Lecture 4: Using Wild Cards
Ahmed El-Arabawy
 
Know the UNIX Commands
Brahma Killampalli
 
Kali linux commands
Jubair Ahmed Junjun
 
Unix/Linux Basic Commands and Shell Script
sbmguys
 
Unix shell scripts
Prakash Lambha
 
Linux command ppt
kalyanineve
 
Users and groups
Varnnit Jain
 
User Administration in Linux
SAMUEL OJO
 
Linux commands
Balakumaran Arunachalam
 
Introduction to Linux
Harish R
 
Linux basics part 1
Lilesh Pathe
 
Linux systems - Linux Commands and Shell Scripting
Emertxe Information Technologies Pvt Ltd
 
Part 02 Linux Kernel Module Programming
Tushar B Kute
 
Basics of shell programming
Chandan Kumar Rana
 
Ubuntu – Linux Useful Commands
University of Technology
 
Shell scripting
Geeks Anonymes
 

Viewers also liked (18)

PDF
Linux Basic Commands
Hanan Nmr
 
ODP
Linux Introduction (Commands)
anandvaidya
 
PPTX
Linux.ppt
onu9
 
PPT
Linuxppt
TSUBHASHRI
 
PDF
BasicLinux
Aureliano Bombarely
 
PPTX
Php basics
Jamshid Hashimi
 
PPT
Advantages of Choosing PHP Web Development
Grey Matter India Technologies PVT LTD
 
PDF
Build and deploy scientific Python Applications
Ramakrishna Reddy
 
PDF
PythonIntro_pycon2010
Kannappan Sirchabesan
 
PDF
web programming UNIT VIII python by Bhavsingh Maloth
Bhavsingh Maloth
 
PPT
Linux
Hema Prasanth
 
PPT
Php hypertext pre-processor
Siddique Ibrahim
 
PDF
Tutorial on-python-programming
Chetan Giridhar
 
PPTX
MySQL database
lalit choudhary
 
PPT
Web 2 0 Ppt
Hema Prasanth
 
PPT
Php Ppt
Hema Prasanth
 
PPT
Mysql Ppt
Hema Prasanth
 
PPTX
Mysql an introduction
Mohd yasin Karim
 
Linux Basic Commands
Hanan Nmr
 
Linux Introduction (Commands)
anandvaidya
 
Linux.ppt
onu9
 
Linuxppt
TSUBHASHRI
 
Php basics
Jamshid Hashimi
 
Advantages of Choosing PHP Web Development
Grey Matter India Technologies PVT LTD
 
Build and deploy scientific Python Applications
Ramakrishna Reddy
 
PythonIntro_pycon2010
Kannappan Sirchabesan
 
web programming UNIT VIII python by Bhavsingh Maloth
Bhavsingh Maloth
 
Php hypertext pre-processor
Siddique Ibrahim
 
Tutorial on-python-programming
Chetan Giridhar
 
MySQL database
lalit choudhary
 
Web 2 0 Ppt
Hema Prasanth
 
Php Ppt
Hema Prasanth
 
Mysql Ppt
Hema Prasanth
 
Mysql an introduction
Mohd yasin Karim
 
Ad

Similar to Linux basic commands (20)

PDF
3.1.a linux commands reference
Acácio Oliveira
 
PPT
Linux
sravan kumar
 
PPT
Linux ppt
Sanmuga Nathan
 
PPT
Linux presentation
Nikhil Jain
 
PPTX
Introduction to linux day1
UtpalenduChakrobortt1
 
PPTX
various shell commands in unix operating system.pptx
ssuserc26f8f
 
PPT
Common linux ubuntu commands overview
Ameer Sameer
 
PPT
Linux50commands
NIRMAL FELIX
 
DOC
58518522 study-aix
homeworkping3
 
ODP
Linux commands
Manish Bothra
 
PDF
LinuxCommands (1).pdf
AnkitKushwaha792697
 
PPTX
Unix Trainning Doc.pptx
KalpeshRaut7
 
DOCX
Linux basic commands
Teja Bheemanapally
 
PPT
Linux
Rathan Raj
 
PPT
8.1.intro unix
southees
 
DOCX
40 important command for linux
Md Abdullah Al Mamun
 
PPTX
Linux System commands Essentialsand Basics.pptx
mba1130feb2024
 
PDF
Quick guide of the most common linux commands
Carlos Enrique
 
PPTX
Linux Commands all presentation file .pptx
AshutoshPrajapati30
 
PPT
Introduction to Unix
Sudharsan S
 
3.1.a linux commands reference
Acácio Oliveira
 
Linux ppt
Sanmuga Nathan
 
Linux presentation
Nikhil Jain
 
Introduction to linux day1
UtpalenduChakrobortt1
 
various shell commands in unix operating system.pptx
ssuserc26f8f
 
Common linux ubuntu commands overview
Ameer Sameer
 
Linux50commands
NIRMAL FELIX
 
58518522 study-aix
homeworkping3
 
Linux commands
Manish Bothra
 
LinuxCommands (1).pdf
AnkitKushwaha792697
 
Unix Trainning Doc.pptx
KalpeshRaut7
 
Linux basic commands
Teja Bheemanapally
 
Linux
Rathan Raj
 
8.1.intro unix
southees
 
40 important command for linux
Md Abdullah Al Mamun
 
Linux System commands Essentialsand Basics.pptx
mba1130feb2024
 
Quick guide of the most common linux commands
Carlos Enrique
 
Linux Commands all presentation file .pptx
AshutoshPrajapati30
 
Introduction to Unix
Sudharsan S
 
Ad

More from MohanKumar Palanichamy (12)

PDF
Red hat enterprise_linux-6-logical_volume_manager_administration-en-us
MohanKumar Palanichamy
 
PPTX
Linux workshop
MohanKumar Palanichamy
 
PPT
Ubuntu root access
MohanKumar Palanichamy
 
PDF
Mipl corporate profile
MohanKumar Palanichamy
 
PDF
Ccie security
MohanKumar Palanichamy
 
PDF
The linux-guide
MohanKumar Palanichamy
 
PDF
Firefox shortcuts-win
MohanKumar Palanichamy
 
PDF
Thunderbird cheat-sheet
MohanKumar Palanichamy
 
PDF
Muo network-manual
MohanKumar Palanichamy
 
PDF
Windows shortcuts-3
MohanKumar Palanichamy
 
Red hat enterprise_linux-6-logical_volume_manager_administration-en-us
MohanKumar Palanichamy
 
Linux workshop
MohanKumar Palanichamy
 
Ubuntu root access
MohanKumar Palanichamy
 
Mipl corporate profile
MohanKumar Palanichamy
 
Ccie security
MohanKumar Palanichamy
 
The linux-guide
MohanKumar Palanichamy
 
Firefox shortcuts-win
MohanKumar Palanichamy
 
Thunderbird cheat-sheet
MohanKumar Palanichamy
 
Muo network-manual
MohanKumar Palanichamy
 
Windows shortcuts-3
MohanKumar Palanichamy
 

Linux basic commands

  • 1. Linux Command Basics To execute a command, type its name and arguments at the command line ls -l /etc Command name Options (flags) Arguments
  • 2. Common Commands pwd - print (display) the working directory cd < dir> - change the current working directory to dir ls - list the files in the current working directory ls -l - list the files in the current working directory in long format
  • 3. File Commands cp <fromfile> <tofile> Copy from the <fromfile> to the <tofile> mv <fromfile> <tofile> Move/rename the <fromfile> to the <tofile> rm <file> Remove the file named <file> mkdir <newdir> Make a new directory called <newdir> rmdir <dir> Remove directory
  • 4. More Commands who List who is currently logged on to the system whoami Report what user you are logged on as echo “A string to be echoed” Echo a string (displays a message) to the terminal
  • 5. More Commands alias - used to tailor commands: alias erase=rm arch -Print machine architecture
  • 6. More Commands awk - a file processing language that is well suited to data manipulation and retrieval of information from text files chown - sets the user ID (UID) to owner for the files and directories named by pathname arguments. This command is useful when from test to production
  • 7. More Commands diff - attempts to determine the minimal set of changes needed to convert a file specified by the first argument into the file specified by the second argument find - Searches a given file hierarchy specified by path, finding files that match the criteria given by expression
  • 8. More Commands grep - Searches files for one or more pattern arguments. It does plain string, basic regular expression, and extended regular expression searching pushd Save and then change the current directory pwd Print Working Directory
  • 9. More Commands kill - sends a signal to a process or process group You can only kill your own processes unless you are root lprint Print a file lprintd Abort a print job lprintq List the print queue
  • 10. More Commands df Display free disk space cp Copy one or more files to another location cat Display the contents of a file
  • 11. More Commands tar - manipulates archives An archive is a single file that contains the complete contents of a set of other files; an archive preserves the directory hierarchy that contained the original files. gzip Compress or decompress named file(s)
  • 12. Switching Users su <accountname> switch user accounts. You will be prompted for a password. When this command completes, you will be logged into the new account. Type exit to return to the previous account su Switch to the root user account. Do not do this lightly Note: The root user does not need to enter a password when switching users. It may become any user desired. This is part of the power of the root account.
  • 13. References http:// www.linux.org http://www.tux.org http:// www.li.org