SlideShare uma empresa Scribd logo
1 de 17
Baixar para ler offline
Linux Basic Commands
lynxbee.com
What is Linux ?
Linux is an Operating System
lynxbee.com
Different Operating Systems
Desktop Operating Systems
● Linux
● Windows
● MacOS
Mobile Operating Systems
● Android
● iOS
● MacOS
● Symbian
● Bada
● Chrome OS
lynxbee.com
Linux Commands
● File Handling
● Text Processing
● System Administration
● Process Management
● Archival
● Network
● File Systems
● Advanced Commands
lynxbee.com
Learning more about any command
● man “command” => Shows manual pages of any command
For ex.
$ man ls
● “Command” --help => Shows command line arguments for specific command
For ex.
$ ls --help
● Info “command” => Shows details information of command
For ex.
$ info ls
lynxbee.com
File Handling Commands
● mkdir – make directories
Usage: mkdir [OPTION] DIRECTORY…
eg. mkdir hello
● ls – list directory contents
Usage: ls [OPTION]... [FILE]...
eg. ls, ls -al, ls hello
● cd – changes directories
Usage: cd [DIRECTORY]
eg. cd hello
● pwd - print name of current
working directory
Usage: pwd
● vim – Vi Improved, a programmers
text editor
Usage: vim [OPTION] [file]...
eg. vim file1.txt
lynxbee.com
File Handling Commands … continued
● 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
● rm - remove files or directories
Usage: rm [OPTION]... FILE…
eg. rm file1.txt , rm -rf some_dir
● find – search for files in a directory
hierarchy
Usage: find [OPTION] [path] [pattern]
eg. find file1.txt, find name file1.txt
● locate - helps to search files from
anyplace
Usage : locate [pattern]
● history – prints recently used commands
Usage: history
lynxbee.com
Pattern
A Pattern is an expression that describes a set of strings which is used to give a concise
description of a set, without having to list all elements.
eg. ab*cd matches anything that starts with ab and ends with cd etc.
ls *.txt – prints all text files
lynxbee.com
Text Processing
● cat – concatenate files and print on
The standard output
Usage: cat [OPTION] [FILE]...
eg. cat file1.txt file2.txt
cat file1.txt
● echo – display a line of text
Usage: echo [OPTION] [string] …
eg. echo “hello world”
echo $HOME
● 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
wc -L file1.txt
● sort – sort lines of text files
Usage: sort [OPTION]... [FILE]...
eg. sort file1.txt
sort r file1.txt
lynxbee.com
Linux File Permissions
● 3 types of file permissions – read, write, execute
● 10 bit format from 'ls l' command
1 2 3 4 5 6 7 8 9 10
file type owner group others
Eg. drwxrwr - means owner has all three permissions, group has read and write, others
have only read permission
● read permission – 4, write – 2, execute 1
eg. rwxrw-r-- = 764
673 = rw-rwx-wx
lynxbee.com
System Administration Commands
● chmod – change file access permissions
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
● su – change user ID or become superuser
Usage: su [OPTION] [LOGIN]
eg. su user1, 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
lynxbee.com
Process Management Commands
● ps – report a snapshot of the current processes
Usage: ps [OPTION]
eg. ps, ps -el
● kill – to kill a process(using signal mechanism)
Usage: kill [OPTION] pid
eg. kill -9 2275
lynxbee.com
Compress and Extract Commands
● tar – to archive a file
Usage: tar [OPTION] DEST SOURCE
eg. tar -cvjf /home/archive.tar.bz2 /home/directory_to_compress
tar xvf /home/archive.tar.bz2
● zip – package and compress (archive) files
Usage: zip [OPTION] DEST SOURCE
eg. zip original.zip original
● unzip – list, test and extract compressed files in a ZIP archive
Usage: unzip filename
eg. unzip original.zip
lynxbee.com
Network Commands
● ssh – SSH client (remote login program)
“ ssh is a program for logging into a
remote machine and for executing
commands on a remote machine ”
eg. ssh X guest@192.168.0.105
● scp – secure copy (remote file copy
program)
“scp copies files between hosts on a
network ”
eg. scp file1.txt
guest@192.168.0.105:~/Desktop/
● ping - ping helps to check if the
remote host is alive or if network if
available or not.
e.g. ping google.com / ping
192.168.1.1
● Ifconfig - allows to check and
configure
e.g. ifconfig -a
lynxbee.com
File System Commands
● fdisk – partition manipulator
eg. sudo fdisk -l
● mount – mount a file system
Usage: mount -t type device dir
eg. mount /dev/sda5 /media/target
● umount – unmount file systems
Usage: umount [OPTIONS] dir | device…
eg. umount /media/target
● du – estimate file space usage
eg. du, du -h, du -sh, du filename
● df – report filesystem disk space
usage
eg. df, df -h
lynxbee.com
Advanced Commands
● reboot – reboot the system
eg. sudo reboot
● poweroff – power off the system
eg. sudo poweroff
lynxbee.com
Visit
lynxbee.com

Mais conteúdo relacionado

Mais procurados

2.1.using the shell
2.1.using the shell2.1.using the shell
2.1.using the shell
donv214
 

Mais procurados (20)

Basic commands
Basic commandsBasic commands
Basic commands
 
Basic 50 linus command
Basic 50 linus commandBasic 50 linus command
Basic 50 linus command
 
Basic
BasicBasic
Basic
 
Useful linux-commands
Useful linux-commandsUseful linux-commands
Useful linux-commands
 
Introduction to-linux
Introduction to-linuxIntroduction to-linux
Introduction to-linux
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Linux system administration
Linux system administrationLinux system administration
Linux system administration
 
Tips and Tricks for Increased Development Efficiency
Tips and Tricks for Increased Development EfficiencyTips and Tricks for Increased Development Efficiency
Tips and Tricks for Increased Development Efficiency
 
Useful Linux and Unix commands handbook
Useful Linux and Unix commands handbookUseful Linux and Unix commands handbook
Useful Linux and Unix commands handbook
 
Unix slideshare
Unix slideshareUnix slideshare
Unix slideshare
 
Linux Getting Started
Linux Getting StartedLinux Getting Started
Linux Getting Started
 
Linux fundamental - Chap 03 file
Linux fundamental - Chap 03 fileLinux fundamental - Chap 03 file
Linux fundamental - Chap 03 file
 
BASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUXBASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUX
 
2.1.using the shell
2.1.using the shell2.1.using the shell
2.1.using the shell
 
Using the command line on macOS
Using the command line on macOSUsing the command line on macOS
Using the command line on macOS
 
Linux command for beginners
Linux command for beginnersLinux command for beginners
Linux command for beginners
 
Basic Linux day 6
Basic Linux day 6Basic Linux day 6
Basic Linux day 6
 
Productivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformaticsProductivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformatics
 
The structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsThe structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformatics
 
Linux Shell Basics
Linux Shell BasicsLinux Shell Basics
Linux Shell Basics
 

Semelhante a Linux basics and commands - from lynxbee.com

8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
southees
 
Linux: A Getting Started Presentation
Linux: A Getting Started PresentationLinux: A Getting Started Presentation
Linux: A Getting Started Presentation
Nap Ramirez
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linux
Dimas Prasetyo
 
Online Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in HyderabadOnline Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in Hyderabad
Ravikumar Nandigam
 
PowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programmingPowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programming
Priyadarshini648418
 

Semelhante a Linux basics and commands - from lynxbee.com (20)

Module 02 Using Linux Command Shell
Module 02 Using Linux Command ShellModule 02 Using Linux Command Shell
Module 02 Using Linux Command Shell
 
Linux commands
Linux commands Linux commands
Linux commands
 
Linux commands
Linux commandsLinux commands
Linux commands
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
Linux: A Getting Started Presentation
Linux: A Getting Started PresentationLinux: A Getting Started Presentation
Linux: A Getting Started Presentation
 
Linux
LinuxLinux
Linux
 
Linux administration training
Linux administration trainingLinux administration training
Linux administration training
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
LinuxCommands (1).pdf
LinuxCommands (1).pdfLinuxCommands (1).pdf
LinuxCommands (1).pdf
 
workshop_1.ppt
workshop_1.pptworkshop_1.ppt
workshop_1.ppt
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linux
 
Group13
Group13Group13
Group13
 
linux-lecture4.ppt
linux-lecture4.pptlinux-lecture4.ppt
linux-lecture4.ppt
 
linux cmds.pptx
linux cmds.pptxlinux cmds.pptx
linux cmds.pptx
 
Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structure
 
Linux tech talk
Linux tech talkLinux tech talk
Linux tech talk
 
Raj linux
Raj linux Raj linux
Raj linux
 
2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx
 
Online Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in HyderabadOnline Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in Hyderabad
 
PowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programmingPowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programming
 

Último

Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
masabamasaba
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 

Último (20)

AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 

Linux basics and commands - from lynxbee.com

  • 2. What is Linux ? Linux is an Operating System lynxbee.com
  • 3. Different Operating Systems Desktop Operating Systems ● Linux ● Windows ● MacOS Mobile Operating Systems ● Android ● iOS ● MacOS ● Symbian ● Bada ● Chrome OS lynxbee.com
  • 4. Linux Commands ● File Handling ● Text Processing ● System Administration ● Process Management ● Archival ● Network ● File Systems ● Advanced Commands lynxbee.com
  • 5. Learning more about any command ● man “command” => Shows manual pages of any command For ex. $ man ls ● “Command” --help => Shows command line arguments for specific command For ex. $ ls --help ● Info “command” => Shows details information of command For ex. $ info ls lynxbee.com
  • 6. File Handling Commands ● mkdir – make directories Usage: mkdir [OPTION] DIRECTORY… eg. mkdir hello ● ls – list directory contents Usage: ls [OPTION]... [FILE]... eg. ls, ls -al, ls hello ● cd – changes directories Usage: cd [DIRECTORY] eg. cd hello ● pwd - print name of current working directory Usage: pwd ● vim – Vi Improved, a programmers text editor Usage: vim [OPTION] [file]... eg. vim file1.txt lynxbee.com
  • 7. File Handling Commands … continued ● 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 ● rm - remove files or directories Usage: rm [OPTION]... FILE… eg. rm file1.txt , rm -rf some_dir ● find – search for files in a directory hierarchy Usage: find [OPTION] [path] [pattern] eg. find file1.txt, find name file1.txt ● locate - helps to search files from anyplace Usage : locate [pattern] ● history – prints recently used commands Usage: history lynxbee.com
  • 8. Pattern A Pattern is an expression that describes a set of strings which is used to give a concise description of a set, without having to list all elements. eg. ab*cd matches anything that starts with ab and ends with cd etc. ls *.txt – prints all text files lynxbee.com
  • 9. Text Processing ● cat – concatenate files and print on The standard output Usage: cat [OPTION] [FILE]... eg. cat file1.txt file2.txt cat file1.txt ● echo – display a line of text Usage: echo [OPTION] [string] … eg. echo “hello world” echo $HOME ● 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 wc -L file1.txt ● sort – sort lines of text files Usage: sort [OPTION]... [FILE]... eg. sort file1.txt sort r file1.txt lynxbee.com
  • 10. Linux File Permissions ● 3 types of file permissions – read, write, execute ● 10 bit format from 'ls l' command 1 2 3 4 5 6 7 8 9 10 file type owner group others Eg. drwxrwr - means owner has all three permissions, group has read and write, others have only read permission ● read permission – 4, write – 2, execute 1 eg. rwxrw-r-- = 764 673 = rw-rwx-wx lynxbee.com
  • 11. System Administration Commands ● chmod – change file access permissions 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 ● su – change user ID or become superuser Usage: su [OPTION] [LOGIN] eg. su user1, 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 lynxbee.com
  • 12. Process Management Commands ● ps – report a snapshot of the current processes Usage: ps [OPTION] eg. ps, ps -el ● kill – to kill a process(using signal mechanism) Usage: kill [OPTION] pid eg. kill -9 2275 lynxbee.com
  • 13. Compress and Extract Commands ● tar – to archive a file Usage: tar [OPTION] DEST SOURCE eg. tar -cvjf /home/archive.tar.bz2 /home/directory_to_compress tar xvf /home/archive.tar.bz2 ● zip – package and compress (archive) files Usage: zip [OPTION] DEST SOURCE eg. zip original.zip original ● unzip – list, test and extract compressed files in a ZIP archive Usage: unzip filename eg. unzip original.zip lynxbee.com
  • 14. Network Commands ● ssh – SSH client (remote login program) “ ssh is a program for logging into a remote machine and for executing commands on a remote machine ” eg. ssh X guest@192.168.0.105 ● scp – secure copy (remote file copy program) “scp copies files between hosts on a network ” eg. scp file1.txt guest@192.168.0.105:~/Desktop/ ● ping - ping helps to check if the remote host is alive or if network if available or not. e.g. ping google.com / ping 192.168.1.1 ● Ifconfig - allows to check and configure e.g. ifconfig -a lynxbee.com
  • 15. File System Commands ● fdisk – partition manipulator eg. sudo fdisk -l ● mount – mount a file system Usage: mount -t type device dir eg. mount /dev/sda5 /media/target ● umount – unmount file systems Usage: umount [OPTIONS] dir | device… eg. umount /media/target ● du – estimate file space usage eg. du, du -h, du -sh, du filename ● df – report filesystem disk space usage eg. df, df -h lynxbee.com
  • 16. Advanced Commands ● reboot – reboot the system eg. sudo reboot ● poweroff – power off the system eg. sudo poweroff lynxbee.com