www.atozknowledge.com
 File Handling
 Text Processing
 System Administration
 Process Management
 Archival
 Network
 File Systems
 Advanced Commands
www.atozknowledge.com
 mkdir – make directories
Usage: mkdir [OPTION] DIRECTORY...
eg. mkdir hadoop
 ls – list directory contents
Usage: ls [OPTION]... [FILE]...
eg. ls, ls l, ls hadoop
 cd – changes directories
Usage: cd [DIRECTORY]
eg. cd prabhat
www.atozknowledge.com
 pwd – print name of current working directory
Usage: pwd
 vim –Vi Improved, a programmers text editor
Usage: vim [OPTION] [file]...
eg. vim file1.txt
www.atozknowledge.com
 cp – copy files and directories
Usage: cp [OPTION]... SOURCE
DEST eg. cp sample.txt sample_copy.txt
cp sample_copy.txt target_dir
 mv – move (rename) files
Usage: mv [OPTION]... SOURCE
DEST
eg. mv source.txt target_dir mv old.txt new.txt
www.atozknowledge.com
 rm – remove files or directories
Usage: rm [OPTION]... FILE...
eg. rm file1.txt , rm rf some_dir
 history – prints recently used commands
www.atozknowledge.com
 cat – concatenate files and print on the standard output
Usage: cat [OPTION] [FILE]...
eg. cat file1.txt file2.txt
 echo – display a line of text
Usage: echo [OPTION] [string] ...
eg. echo I love India
echo $HOME
www.atozknowledge.com
 grep – print lines matching a pattern
Usage: grep [OPTION] PATTERN [FILE]...
eg. grep -i apple sample.txt
 wc - print the number of newlines, words, and bytes in files
Usage: wc [OPTION]... [FILE]...
eg. wc file1.txt
 sort – sort lines of text files
Usage: sort [OPTION]... [FILE]...
eg. sort file1.txt
sort – r file1.txt
www.atozknowledge.com
 chmod – change file accesspermissions
Usage: chmod [OPTION] [MODE] [FILE]
eg. chmod 744 calculate.sh
 chown – change file owner and group
Usage: chown [OPTION]... OWNER[:[GROUP]]
FILE...
eg. chown remo myfile.txt
www.atozknowledge.com
 Numeric Permissions:
CHMOD can also to attributed by using Numeric Permissions:
 400 read by owner
040 read by group
004 read by anybody (other)
200 write by owner
020 write by group
002 write by anybody
100 execute by owner
010 execute by group
001 execute by anybody
www.atozknowledge.com
 su – change user ID or become superuser
Usage: su [OPTION] [LOGIN]
eg. su remo, su
 passwd – update a user’s authentication tokens(s)
Usage: passwd [OPTION]
eg. Passwd
 who – show who is logged on
Usage: who [OPTION]
eg. who , who -b, who -q
www.atozknowledge.com
 ps – report a snapshot of the currentprocesses
Usage: ps [OPTION]
eg. ps
 kill – to kill a process(using signal mechanism)
Usage: kill [OPTION] pid
eg. Kill -9 2275
www.atozknowledge.com
 du – estimate file space usage
Usage: du [OPTION]... [FILE]...
eg. du
 df – report filesystem disk space usage
Usage: df [OPTION]... [FILE]...
eg. df
www.atozknowledge.com
 tar – to archive a file
Usage: tar [OPTION] DEST SOURCE
eg. tar cvf/home/archive.tar
/home/original
tar xvf/home/archive.tar
 zip – package and compress (archive) files
Usage: zip [OPTION] DEST SOURSE
eg. zip original.zip original
 unzip – list, test and extract compressed
files in a ZIP archive
Usage: unzip filename
eg. unzip original.zip
www.atozknowledge.com
 ssh – SSH client (remote login program)
“ssh is a program for logging into aremote machine and for
executing commands on a remote machine”
Usage: ssh [options] [user]@hostname
eg. ssh -X guest@10.105.11.20
www.atozknowledge.com
 reboot – reboot the system
Usage: reboot [OPTION]
eg. reboot
 poweroff – power off the system
Usage: poweroff [OPTION]
eg. poweroff
www.atozknowledge.com

More Related Content

PPTX
Unix shell scripts
PPTX
Basic commands of linux
PDF
Linux basic commands with examples
PPTX
Linux basics part 1
PDF
Linux Basic Commands
PDF
Linux file commands and shell scripts
PPTX
Linux User Management
ODP
Linux commands
Unix shell scripts
Basic commands of linux
Linux basic commands with examples
Linux basics part 1
Linux Basic Commands
Linux file commands and shell scripts
Linux User Management
Linux commands

What's hot (20)

PPT
Linux Commands
PDF
Page cache in Linux kernel
PDF
Memory management in Linux kernel
PDF
Linux Memory Management
PPT
Linux Administration
PPT
Process scheduling linux
PDF
Lesson 2 Understanding Linux File System
PDF
Memory Mapping Implementation (mmap) in Linux Kernel
PDF
Physical Memory Management.pdf
PPT
Basic 50 linus command
PDF
Unit II - 2 - Operating System - Threads
PPTX
Linux commands
PPTX
File permissions
PDF
Character Drivers
PPTX
Linux process management
PPT
Vi editor in linux
PPT
Linux file system
PPTX
User management
PPTX
Linux scheduling and input and output
Linux Commands
Page cache in Linux kernel
Memory management in Linux kernel
Linux Memory Management
Linux Administration
Process scheduling linux
Lesson 2 Understanding Linux File System
Memory Mapping Implementation (mmap) in Linux Kernel
Physical Memory Management.pdf
Basic 50 linus command
Unit II - 2 - Operating System - Threads
Linux commands
File permissions
Character Drivers
Linux process management
Vi editor in linux
Linux file system
User management
Linux scheduling and input and output
Ad

Similar to Basic Linux commands (20)

PPTX
Marwan al suwaidi
PDF
Linux Commands CheatSheet - PDF.pdf for engineer
PPT
Linux50commands
PDF
Lesson 3 Working with Files in Linux
PDF
Rhel 6.2 complete ebook
DOCX
Rhel 6.2 complete ebook
PPTX
Linux basic commands
PPT
Unix cmc
PPTX
Linux System commands Essentialsand Basics.pptx
PDF
Basic linux commands
PDF
Basic commands
PPT
PPT
Linux ppt
PDF
Presentation aix basic
PPTX
Basic Linux Administration - 3.pptxon server
PDF
Linux cheat-sheet
PDF
Linux cheat-sheet
PDF
Linux Commandos Cheat
DOC
58518522 study-aix
Marwan al suwaidi
Linux Commands CheatSheet - PDF.pdf for engineer
Linux50commands
Lesson 3 Working with Files in Linux
Rhel 6.2 complete ebook
Rhel 6.2 complete ebook
Linux basic commands
Unix cmc
Linux System commands Essentialsand Basics.pptx
Basic linux commands
Basic commands
Linux ppt
Presentation aix basic
Basic Linux Administration - 3.pptxon server
Linux cheat-sheet
Linux cheat-sheet
Linux Commandos Cheat
58518522 study-aix
Ad

Recently uploaded (20)

PDF
Laparoscopic Imaging Systems at World Laparoscopy Hospital
PDF
Chevening Scholarship Application and Interview Preparation Guide
DOCX
THEORY AND PRACTICE ASSIGNMENT SEMESTER MAY 2025.docx
PDF
anganwadi services for the b.sc nursing and GNM
PPTX
climate change of delhi impacts on climate and there effects
PDF
Unleashing the Potential of the Cultural and creative industries
PDF
FAMILY PLANNING (preventative and social medicine pdf)
PPTX
Key-Features-of-the-SHS-Program-v4-Slides (3) PPT2.pptx
PDF
Review of Related Literature & Studies.pdf
PPTX
PAIN PATHWAY & MANAGEMENT OF ACUTE AND CHRONIC PAIN SPEAKER: Dr. Rajasekhar ...
PPTX
ENGlishGrade8_Quarter2_WEEK1_LESSON1.pptx
PPTX
GW4 BioMed Candidate Support Webinar 2025
PPTX
principlesofmanagementsem1slides-131211060335-phpapp01 (1).ppt
PPSX
namma_kalvi_12th_botany_chapter_9_ppt.ppsx
PDF
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
PDF
Kalaari-SaaS-Founder-Playbook-2024-Edition-.pdf
PPTX
Copy of ARAL Program Primer_071725(1).pptx
PDF
FYJC - Chemistry textbook - standard 11.
PDF
GIÁO ÁN TIẾNG ANH 7 GLOBAL SUCCESS (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) NĂM HỌ...
PDF
English 2nd semesteNotesh biology biopsy results from the other day and I jus...
Laparoscopic Imaging Systems at World Laparoscopy Hospital
Chevening Scholarship Application and Interview Preparation Guide
THEORY AND PRACTICE ASSIGNMENT SEMESTER MAY 2025.docx
anganwadi services for the b.sc nursing and GNM
climate change of delhi impacts on climate and there effects
Unleashing the Potential of the Cultural and creative industries
FAMILY PLANNING (preventative and social medicine pdf)
Key-Features-of-the-SHS-Program-v4-Slides (3) PPT2.pptx
Review of Related Literature & Studies.pdf
PAIN PATHWAY & MANAGEMENT OF ACUTE AND CHRONIC PAIN SPEAKER: Dr. Rajasekhar ...
ENGlishGrade8_Quarter2_WEEK1_LESSON1.pptx
GW4 BioMed Candidate Support Webinar 2025
principlesofmanagementsem1slides-131211060335-phpapp01 (1).ppt
namma_kalvi_12th_botany_chapter_9_ppt.ppsx
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
Kalaari-SaaS-Founder-Playbook-2024-Edition-.pdf
Copy of ARAL Program Primer_071725(1).pptx
FYJC - Chemistry textbook - standard 11.
GIÁO ÁN TIẾNG ANH 7 GLOBAL SUCCESS (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) NĂM HỌ...
English 2nd semesteNotesh biology biopsy results from the other day and I jus...

Basic Linux commands

  • 2.  File Handling  Text Processing  System Administration  Process Management  Archival  Network  File Systems  Advanced Commands www.atozknowledge.com
  • 3.  mkdir – make directories Usage: mkdir [OPTION] DIRECTORY... eg. mkdir hadoop  ls – list directory contents Usage: ls [OPTION]... [FILE]... eg. ls, ls l, ls hadoop  cd – changes directories Usage: cd [DIRECTORY] eg. cd prabhat www.atozknowledge.com
  • 4.  pwd – print name of current working directory Usage: pwd  vim –Vi Improved, a programmers text editor Usage: vim [OPTION] [file]... eg. vim file1.txt www.atozknowledge.com
  • 5.  cp – copy files and directories Usage: cp [OPTION]... SOURCE DEST eg. cp sample.txt sample_copy.txt cp sample_copy.txt target_dir  mv – move (rename) files Usage: mv [OPTION]... SOURCE DEST eg. mv source.txt target_dir mv old.txt new.txt www.atozknowledge.com
  • 6.  rm – remove files or directories Usage: rm [OPTION]... FILE... eg. rm file1.txt , rm rf some_dir  history – prints recently used commands www.atozknowledge.com
  • 7.  cat – concatenate files and print on the standard output Usage: cat [OPTION] [FILE]... eg. cat file1.txt file2.txt  echo – display a line of text Usage: echo [OPTION] [string] ... eg. echo I love India echo $HOME www.atozknowledge.com
  • 8.  grep – print lines matching a pattern Usage: grep [OPTION] PATTERN [FILE]... eg. grep -i apple sample.txt  wc - print the number of newlines, words, and bytes in files Usage: wc [OPTION]... [FILE]... eg. wc file1.txt  sort – sort lines of text files Usage: sort [OPTION]... [FILE]... eg. sort file1.txt sort – r file1.txt www.atozknowledge.com
  • 9.  chmod – change file accesspermissions Usage: chmod [OPTION] [MODE] [FILE] eg. chmod 744 calculate.sh  chown – change file owner and group Usage: chown [OPTION]... OWNER[:[GROUP]] FILE... eg. chown remo myfile.txt www.atozknowledge.com
  • 10.  Numeric Permissions: CHMOD can also to attributed by using Numeric Permissions:  400 read by owner 040 read by group 004 read by anybody (other) 200 write by owner 020 write by group 002 write by anybody 100 execute by owner 010 execute by group 001 execute by anybody www.atozknowledge.com
  • 11.  su – change user ID or become superuser Usage: su [OPTION] [LOGIN] eg. su remo, su  passwd – update a user’s authentication tokens(s) Usage: passwd [OPTION] eg. Passwd  who – show who is logged on Usage: who [OPTION] eg. who , who -b, who -q www.atozknowledge.com
  • 12.  ps – report a snapshot of the currentprocesses Usage: ps [OPTION] eg. ps  kill – to kill a process(using signal mechanism) Usage: kill [OPTION] pid eg. Kill -9 2275 www.atozknowledge.com
  • 13.  du – estimate file space usage Usage: du [OPTION]... [FILE]... eg. du  df – report filesystem disk space usage Usage: df [OPTION]... [FILE]... eg. df www.atozknowledge.com
  • 14.  tar – to archive a file Usage: tar [OPTION] DEST SOURCE eg. tar cvf/home/archive.tar /home/original tar xvf/home/archive.tar  zip – package and compress (archive) files Usage: zip [OPTION] DEST SOURSE eg. zip original.zip original  unzip – list, test and extract compressed files in a ZIP archive Usage: unzip filename eg. unzip original.zip www.atozknowledge.com
  • 15.  ssh – SSH client (remote login program) “ssh is a program for logging into aremote machine and for executing commands on a remote machine” Usage: ssh [options] [user]@hostname eg. ssh -X [email protected] www.atozknowledge.com
  • 16.  reboot – reboot the system Usage: reboot [OPTION] eg. reboot  poweroff – power off the system Usage: poweroff [OPTION] eg. poweroff www.atozknowledge.com