SlideShare a Scribd company logo
Linux Commands
Top linux commands for basic usage and pentesters
mkdir :
• Use mkdir command to make a new directory — if you type mkdir
Music it will create a directory called Music. There are extra mkdir
commands as well:
• To generate a new directory inside another directory, use this Linux
basic command mkdir Music/Newfile
rmdir :
• If you need to delete a directory, use the rmdir command. However,
rmdir only allows you to delete empty directories.
ps
• ps for viewing information related with the processes on a system
which stands as abbreviation for “Process Status”
whoami
• It displays the username of the current user when this command is
invoked.
df
• Use df command to get a report on the system’s disk space usage,
shown in percentage and KBs. If you want to see the report in
megabytes, type df -m.
date
• date command is used to display the system date and time
ping
• Use the ping command to check your connectivity status to a server.
For example, by simply entering ping google.com, the command will
check whether you’re able to connect to Google and also measure
the response time
wget
• The Linux command line is super useful — you can even download
files from the internet with the help of the wget command. To do so,
simply type wget followed by the download link.
whois
• The whois system is a listing of records that contains details about both the ownership of domains
and the owners.
• A typical whois record will contain the following information:
 The name and contact information of the registrant: The owner of the domain.
 The name and contact information of the registrar: The organization that registered
the domain name.
 The registration date.
 When the information was last updated.
 The expiration date.
cd
• To navigate through the Linux files and directories, use the cd
command. It requires either the full path or the name of the
directory, depending on the current working directory that you’re in
• cd .. (with two dots) to move one directory up
ls
• The ls command is used to view the contents of a directory. By default, this
command will display the contents of your current working directory. If you
want to see the content of other directories, type ls and then the directory’s
path. For example, enter ls /home/username/Documents to view the content
of Documents.
There are variations you can use with the ls command:
 ls -R will list all the files in the sub-directories as well
 ls -a will show the hidden files
 ls -al will list the files and directories with detailed information
like the permissions, size, owner, etc
man
• man command in Linux is used to display the user manual of any
command that we can run on the terminal. It provides a detailed view
of the command which includes NAME, SYNOPSIS, DESCRIPTION,
OPTIONS, EXIT STATUS, RETURN VALUES, ERRORS, FILES, VERSIONS
Cat
• Display text file on screen
• Read text file
cp
• Use the cp command to copy files from the current directory to a
different directory. For instance, the command cp scenery.jpg
/home/username/Pictures would create a copy of scenery.jpg (from
your current directory) into the Pictures directory
mv
• The primary use of the mv command is to move files, although it can
also be used to rename files. The arguments in mv are similar to the
cp command. You need to type mv, the file’s name, and the
destination’s directory. For example: mv file.txt
/home/username/Documents. To rename files, the Linux command is
mv oldname.ext newname.ext
rm
• rm command is used to remove objects such as files, directories,
symbolic links and so on from the file system like UNIX
touch
• The touch command allows you to create a blank new file through the
Linux command line. As an example, enter touch
/home/username/Documents/Web.html to create an HTML file
entitled Web under the Documents directory.
Grep
• Another basic Linux command that is undoubtedly helpful for
everyday use is grep. It lets you search through all the text in a given
file. To illustrate, grep blue notepad.txt will search for the word blue
in the notepad file. Lines that contain the searched word will be
displayed fully.
sudo
• Short for “SuperUser Do”, this command enables you to perform tasks
that require administrative or root permissions.
head
• The head command is used to view the first lines of any text file. By
default, it will show the first ten lines, but you can change this
number to your liking. For example, if you only want to show the first
five lines, type head -n 5 filename.ext
tail
• This one has a similar function to the head command, but instead of
showing the first lines, the tail command will display the last ten lines
of a text file. For example, tail -n filename.ext
Histroy
• history command is used to view the previously executed
command
Chmod
• chmod is another Linux command, used to change the read,
write, and execute permissions of files and directories.
Some More Commands :
• w : w command in Linux is used to show
who is logged on and what they are
doing. This command shows the
information about the users currently on
the machine and their processes
• ps : It provides useful commands for
investigating process IDs, shows the
status of a running process. Use this
command to determine a running
application or confirm an expected
process
• Ifconfig : ifconfig is used to
configure, or view the
configuration of, a network
interface.
• Dig : The dig command in Linux
is used to gather DNS
information.
Ad

More Related Content

What's hot (20)

Linux commands
Linux commandsLinux commands
Linux commands
Balakumaran Arunachalam
 
Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
kalyanineve
 
Linux commands
Linux commands Linux commands
Linux commands
debashis rout
 
Unix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell ScriptUnix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell Script
sbmguys
 
Basic commands of linux
Basic commands of linuxBasic commands of linux
Basic commands of linux
shravan saini
 
Linux file system
Linux file systemLinux file system
Linux file system
Md. Tanvir Hossain
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux
Harish R
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
Shakeel Shafiq
 
Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
Rohit Kumar
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013
Wave Digitech
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
MohanKumar Palanichamy
 
Know the UNIX Commands
Know the UNIX CommandsKnow the UNIX Commands
Know the UNIX Commands
Brahma Killampalli
 
Bash shell scripting
Bash shell scriptingBash shell scripting
Bash shell scripting
VIKAS TIWARI
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File System
Sadia Bashir
 
UNIX Operating System ppt
UNIX Operating System pptUNIX Operating System ppt
UNIX Operating System ppt
OECLIB Odisha Electronics Control Library
 
Linux basics
Linux basicsLinux basics
Linux basics
Santosh Khadsare
 
Linux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell ScriptingLinux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell Scripting
Emertxe Information Technologies Pvt Ltd
 
Linux architecture
Linux architectureLinux architecture
Linux architecture
mcganesh
 
Linux basic commands with examples
Linux basic commands with examplesLinux basic commands with examples
Linux basic commands with examples
abclearnn
 
Process management in linux
Process management in linuxProcess management in linux
Process management in linux
Mazenetsolution
 

Similar to Linux commands (20)

various shell commands in unix operating system.pptx
various shell commands in unix operating system.pptxvarious shell commands in unix operating system.pptx
various shell commands in unix operating system.pptx
ssuserc26f8f
 
Unix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxUnix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptx
Rajesh Kumar
 
Group13
Group13Group13
Group13
21MX213OMRAJUV
 
Linux week 2
Linux week 2Linux week 2
Linux week 2
Vinoth Sn
 
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
Priyadarshini648418
 
linux-lecture4.pptuyhbjhbiibihbiuhbbihbi
linux-lecture4.pptuyhbjhbiibihbiuhbbihbilinux-lecture4.pptuyhbjhbiibihbiuhbbihbi
linux-lecture4.pptuyhbjhbiibihbiuhbbihbi
YajnadattaPattanayak
 
Linux Commands all presentation file .pptx
Linux Commands all  presentation  file .pptxLinux Commands all  presentation  file .pptx
Linux Commands all presentation file .pptx
AshutoshPrajapati30
 
linux-lecture4.ppt
linux-lecture4.pptlinux-lecture4.ppt
linux-lecture4.ppt
LuigysToro
 
Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structure
Sreenatha Reddy K R
 
managing-the-linux-file-system_suse_.ppt
managing-the-linux-file-system_suse_.pptmanaging-the-linux-file-system_suse_.ppt
managing-the-linux-file-system_suse_.ppt
submarinoaguadulce1
 
managing-the-linux-file-system________________________
managing-the-linux-file-system________________________managing-the-linux-file-system________________________
managing-the-linux-file-system________________________
saurabhbquest
 
linux command1234_LINUX COMMANDS _1.pptx
linux command1234_LINUX COMMANDS _1.pptxlinux command1234_LINUX COMMANDS _1.pptx
linux command1234_LINUX COMMANDS _1.pptx
ubalearchana6
 
linuxcommands-140828081047-phpapp01.pptx
linuxcommands-140828081047-phpapp01.pptxlinuxcommands-140828081047-phpapp01.pptx
linuxcommands-140828081047-phpapp01.pptx
HarshaVardhanbale1
 
LinuxCommands (1).pdf
LinuxCommands (1).pdfLinuxCommands (1).pdf
LinuxCommands (1).pdf
AnkitKushwaha792697
 
linux commands that might be helpful.pptx
linux commands that might be helpful.pptxlinux commands that might be helpful.pptx
linux commands that might be helpful.pptx
MeghrajPatil11
 
linuxcommands-140828081047-phgpapp01.pdf
linuxcommands-140828081047-phgpapp01.pdflinuxcommands-140828081047-phgpapp01.pdf
linuxcommands-140828081047-phgpapp01.pdf
harshavardhanbale15b
 
linux cmds.pptx
linux cmds.pptxlinux cmds.pptx
linux cmds.pptx
divyanshianand3
 
Linux Basics.pptx
Linux Basics.pptxLinux Basics.pptx
Linux Basics.pptx
RanjitKumarPanda5
 
Linux administration training
Linux administration trainingLinux administration training
Linux administration training
iman darabi
 
TERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEM
TERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEMTERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEM
TERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEM
pssafvan97
 
various shell commands in unix operating system.pptx
various shell commands in unix operating system.pptxvarious shell commands in unix operating system.pptx
various shell commands in unix operating system.pptx
ssuserc26f8f
 
Unix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxUnix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptx
Rajesh Kumar
 
Linux week 2
Linux week 2Linux week 2
Linux week 2
Vinoth Sn
 
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
Priyadarshini648418
 
linux-lecture4.pptuyhbjhbiibihbiuhbbihbi
linux-lecture4.pptuyhbjhbiibihbiuhbbihbilinux-lecture4.pptuyhbjhbiibihbiuhbbihbi
linux-lecture4.pptuyhbjhbiibihbiuhbbihbi
YajnadattaPattanayak
 
Linux Commands all presentation file .pptx
Linux Commands all  presentation  file .pptxLinux Commands all  presentation  file .pptx
Linux Commands all presentation file .pptx
AshutoshPrajapati30
 
linux-lecture4.ppt
linux-lecture4.pptlinux-lecture4.ppt
linux-lecture4.ppt
LuigysToro
 
Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structure
Sreenatha Reddy K R
 
managing-the-linux-file-system_suse_.ppt
managing-the-linux-file-system_suse_.pptmanaging-the-linux-file-system_suse_.ppt
managing-the-linux-file-system_suse_.ppt
submarinoaguadulce1
 
managing-the-linux-file-system________________________
managing-the-linux-file-system________________________managing-the-linux-file-system________________________
managing-the-linux-file-system________________________
saurabhbquest
 
linux command1234_LINUX COMMANDS _1.pptx
linux command1234_LINUX COMMANDS _1.pptxlinux command1234_LINUX COMMANDS _1.pptx
linux command1234_LINUX COMMANDS _1.pptx
ubalearchana6
 
linuxcommands-140828081047-phpapp01.pptx
linuxcommands-140828081047-phpapp01.pptxlinuxcommands-140828081047-phpapp01.pptx
linuxcommands-140828081047-phpapp01.pptx
HarshaVardhanbale1
 
linux commands that might be helpful.pptx
linux commands that might be helpful.pptxlinux commands that might be helpful.pptx
linux commands that might be helpful.pptx
MeghrajPatil11
 
linuxcommands-140828081047-phgpapp01.pdf
linuxcommands-140828081047-phgpapp01.pdflinuxcommands-140828081047-phgpapp01.pdf
linuxcommands-140828081047-phgpapp01.pdf
harshavardhanbale15b
 
Linux administration training
Linux administration trainingLinux administration training
Linux administration training
iman darabi
 
TERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEM
TERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEMTERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEM
TERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEM
pssafvan97
 
Ad

More from penetration Tester (20)

Maven
MavenMaven
Maven
penetration Tester
 
Jenkins
JenkinsJenkins
Jenkins
penetration Tester
 
Jenkins
JenkinsJenkins
Jenkins
penetration Tester
 
Sonar qube
Sonar qubeSonar qube
Sonar qube
penetration Tester
 
Owasp zap
Owasp zapOwasp zap
Owasp zap
penetration Tester
 
Sonarlint
SonarlintSonarlint
Sonarlint
penetration Tester
 
Shift left
Shift leftShift left
Shift left
penetration Tester
 
Deployment Strategies
Deployment StrategiesDeployment Strategies
Deployment Strategies
penetration Tester
 
DSOMM
DSOMMDSOMM
DSOMM
penetration Tester
 
Devops
DevopsDevops
Devops
penetration Tester
 
Shift left
Shift leftShift left
Shift left
penetration Tester
 
Lfi
LfiLfi
Lfi
penetration Tester
 
Directory traversal
Directory traversalDirectory traversal
Directory traversal
penetration Tester
 
Burp documentation
Burp documentationBurp documentation
Burp documentation
penetration Tester
 
7 layer OSI model
7 layer OSI model7 layer OSI model
7 layer OSI model
penetration Tester
 
Virtual box
Virtual boxVirtual box
Virtual box
penetration Tester
 
Tcp IP OSI
Tcp IP OSITcp IP OSI
Tcp IP OSI
penetration Tester
 
Burp repeater
Burp repeaterBurp repeater
Burp repeater
penetration Tester
 
Burp intruder
Burp intruderBurp intruder
Burp intruder
penetration Tester
 
Hippa
Hippa Hippa
Hippa
penetration Tester
 
Ad

Recently uploaded (20)

Cultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptxCultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptx
UmeshTimilsina1
 
Overview Well-Being and Creative Careers
Overview Well-Being and Creative CareersOverview Well-Being and Creative Careers
Overview Well-Being and Creative Careers
University of Amsterdam
 
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Leonel Morgado
 
How to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo SlidesHow to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo Slides
Celine George
 
The History of Kashmir Karkota Dynasty NEP.pptx
The History of Kashmir Karkota Dynasty NEP.pptxThe History of Kashmir Karkota Dynasty NEP.pptx
The History of Kashmir Karkota Dynasty NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)
Mohamed Rizk Khodair
 
How To Maximize Sales Performance using Odoo 18 Diverse views in sales module
How To Maximize Sales Performance using Odoo 18 Diverse views in sales moduleHow To Maximize Sales Performance using Odoo 18 Diverse views in sales module
How To Maximize Sales Performance using Odoo 18 Diverse views in sales module
Celine George
 
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
Dr. Nasir Mustafa
 
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFAMEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
Dr. Nasir Mustafa
 
Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...
parmarjuli1412
 
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and GuestsLDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDM Mia eStudios
 
Cultivation Practice of Onion in Nepal.pptx
Cultivation Practice of Onion in Nepal.pptxCultivation Practice of Onion in Nepal.pptx
Cultivation Practice of Onion in Nepal.pptx
UmeshTimilsina1
 
Drugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdfDrugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdf
crewot855
 
Ancient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian HistoryAncient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian History
Virag Sontakke
 
*"Sensing the World: Insect Sensory Systems"*
*"Sensing the World: Insect Sensory Systems"**"Sensing the World: Insect Sensory Systems"*
*"Sensing the World: Insect Sensory Systems"*
Arshad Shaikh
 
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
Celine George
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
Myopathies (muscle disorders) for undergraduate
Myopathies (muscle disorders) for undergraduateMyopathies (muscle disorders) for undergraduate
Myopathies (muscle disorders) for undergraduate
Mohamed Rizk Khodair
 
Cultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptxCultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptx
UmeshTimilsina1
 
Overview Well-Being and Creative Careers
Overview Well-Being and Creative CareersOverview Well-Being and Creative Careers
Overview Well-Being and Creative Careers
University of Amsterdam
 
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Redesigning Education as a Cognitive Ecosystem: Practical Insights into Emerg...
Leonel Morgado
 
How to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo SlidesHow to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo Slides
Celine George
 
spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)
Mohamed Rizk Khodair
 
How To Maximize Sales Performance using Odoo 18 Diverse views in sales module
How To Maximize Sales Performance using Odoo 18 Diverse views in sales moduleHow To Maximize Sales Performance using Odoo 18 Diverse views in sales module
How To Maximize Sales Performance using Odoo 18 Diverse views in sales module
Celine George
 
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
Dr. Nasir Mustafa
 
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFAMEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
Dr. Nasir Mustafa
 
Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...
parmarjuli1412
 
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and GuestsLDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDM Mia eStudios
 
Cultivation Practice of Onion in Nepal.pptx
Cultivation Practice of Onion in Nepal.pptxCultivation Practice of Onion in Nepal.pptx
Cultivation Practice of Onion in Nepal.pptx
UmeshTimilsina1
 
Drugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdfDrugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdf
crewot855
 
Ancient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian HistoryAncient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian History
Virag Sontakke
 
*"Sensing the World: Insect Sensory Systems"*
*"Sensing the World: Insect Sensory Systems"**"Sensing the World: Insect Sensory Systems"*
*"Sensing the World: Insect Sensory Systems"*
Arshad Shaikh
 
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
How to Clean Your Contacts Using the Deduplication Menu in Odoo 18
Celine George
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
Myopathies (muscle disorders) for undergraduate
Myopathies (muscle disorders) for undergraduateMyopathies (muscle disorders) for undergraduate
Myopathies (muscle disorders) for undergraduate
Mohamed Rizk Khodair
 

Linux commands

  • 1. Linux Commands Top linux commands for basic usage and pentesters
  • 2. mkdir : • Use mkdir command to make a new directory — if you type mkdir Music it will create a directory called Music. There are extra mkdir commands as well: • To generate a new directory inside another directory, use this Linux basic command mkdir Music/Newfile
  • 3. rmdir : • If you need to delete a directory, use the rmdir command. However, rmdir only allows you to delete empty directories.
  • 4. ps • ps for viewing information related with the processes on a system which stands as abbreviation for “Process Status”
  • 5. whoami • It displays the username of the current user when this command is invoked.
  • 6. df • Use df command to get a report on the system’s disk space usage, shown in percentage and KBs. If you want to see the report in megabytes, type df -m.
  • 7. date • date command is used to display the system date and time
  • 8. ping • Use the ping command to check your connectivity status to a server. For example, by simply entering ping google.com, the command will check whether you’re able to connect to Google and also measure the response time
  • 9. wget • The Linux command line is super useful — you can even download files from the internet with the help of the wget command. To do so, simply type wget followed by the download link.
  • 10. whois • The whois system is a listing of records that contains details about both the ownership of domains and the owners. • A typical whois record will contain the following information:  The name and contact information of the registrant: The owner of the domain.  The name and contact information of the registrar: The organization that registered the domain name.  The registration date.  When the information was last updated.  The expiration date.
  • 11. cd • To navigate through the Linux files and directories, use the cd command. It requires either the full path or the name of the directory, depending on the current working directory that you’re in • cd .. (with two dots) to move one directory up
  • 12. ls • The ls command is used to view the contents of a directory. By default, this command will display the contents of your current working directory. If you want to see the content of other directories, type ls and then the directory’s path. For example, enter ls /home/username/Documents to view the content of Documents. There are variations you can use with the ls command:  ls -R will list all the files in the sub-directories as well  ls -a will show the hidden files  ls -al will list the files and directories with detailed information like the permissions, size, owner, etc
  • 13. man • man command in Linux is used to display the user manual of any command that we can run on the terminal. It provides a detailed view of the command which includes NAME, SYNOPSIS, DESCRIPTION, OPTIONS, EXIT STATUS, RETURN VALUES, ERRORS, FILES, VERSIONS
  • 14. Cat • Display text file on screen • Read text file
  • 15. cp • Use the cp command to copy files from the current directory to a different directory. For instance, the command cp scenery.jpg /home/username/Pictures would create a copy of scenery.jpg (from your current directory) into the Pictures directory
  • 16. mv • The primary use of the mv command is to move files, although it can also be used to rename files. The arguments in mv are similar to the cp command. You need to type mv, the file’s name, and the destination’s directory. For example: mv file.txt /home/username/Documents. To rename files, the Linux command is mv oldname.ext newname.ext
  • 17. rm • rm command is used to remove objects such as files, directories, symbolic links and so on from the file system like UNIX
  • 18. touch • The touch command allows you to create a blank new file through the Linux command line. As an example, enter touch /home/username/Documents/Web.html to create an HTML file entitled Web under the Documents directory.
  • 19. Grep • Another basic Linux command that is undoubtedly helpful for everyday use is grep. It lets you search through all the text in a given file. To illustrate, grep blue notepad.txt will search for the word blue in the notepad file. Lines that contain the searched word will be displayed fully.
  • 20. sudo • Short for “SuperUser Do”, this command enables you to perform tasks that require administrative or root permissions.
  • 21. head • The head command is used to view the first lines of any text file. By default, it will show the first ten lines, but you can change this number to your liking. For example, if you only want to show the first five lines, type head -n 5 filename.ext
  • 22. tail • This one has a similar function to the head command, but instead of showing the first lines, the tail command will display the last ten lines of a text file. For example, tail -n filename.ext
  • 23. Histroy • history command is used to view the previously executed command
  • 24. Chmod • chmod is another Linux command, used to change the read, write, and execute permissions of files and directories.
  • 25. Some More Commands : • w : w command in Linux is used to show who is logged on and what they are doing. This command shows the information about the users currently on the machine and their processes • ps : It provides useful commands for investigating process IDs, shows the status of a running process. Use this command to determine a running application or confirm an expected process • Ifconfig : ifconfig is used to configure, or view the configuration of, a network interface. • Dig : The dig command in Linux is used to gather DNS information.
  翻译: