SlideShare une entreprise Scribd logo
1  sur  1
FILE PERMISSION RELATED
chmod octal file-name =>Change the permissions of file to octal
Example
chmod 777 /data/test.c =>Set rwx permission for owner,group,world
chmod 755 /data/test.c =>Set rwx permission for owner,rx for group
and world
chown owner-user file =>Change owner of the file
chown owner-user:owner-group file-name =>Change owner and group
owner of the file
chown owner-user:owner-group directory =>Change owner and group
owner of the directory
NETWORK
ip addr show =>Display all network interfaces and ip address
(a iproute2 command,powerful than ifconfig)
ip address add 192.168.0.1 dev eth0 =>Set ip address
ethtool eth0 =>Linux tool to show ethernet status
mii-tool eth0 =>Linux tool to show ethernet status
ping host =>Send echo request to test connection
whois domain =>Get who is information for domain
dig domain =>Get DNS information for domain
dig -x host =>Reverse lookup host
host google.com =>Lookup DNS ip address for the name
hostname –i =>Lookup local ip address
wget file =>Download file
netstat -tupl =>Listing all active listening ports
COMPRESSION / ARCHIVES
tar cf home.tar home =>Create tar named home.tar containing home/
tar xf file.tar =>Extract the files from file.tar
tar czf file.tar.gz files =>Create a tar with gzip compression
gzip file =>Compress file and renames it to file.gz
INSTALL PACKAGE
rpm -i pkgname.rpm =>Install rpm based package
rpm -e pkgname =>Remove package
INSTALL FROM SOURCE
./configure
make
make install
SEARCH
grep pattern files =>Search for pattern in files
grep -r pattern dir =>Search recursively for pattern in dir
locate file =>Find all instances of file
find /home/tom -name 'index*' =>Find files names that start with "index"
find /home -size +10000k =>Find files larger than 10000k in /home
LOGIN (SSH AND TELNET)
ssh user@host =>Connect to host as user
ssh -p port user@host =>Connect to host using specific port
telnet host =>Connect to the system using telnet port
FILE TRANSFER
scp
scp file.txt server2:/tmp =>Secure copy file.txt to remote host /tmp folder
rsync
rsync -a /home/apps /backup/ =>Synchronize source to destination
DISK USAGE
df –h =>Show free space on mounted filesystems
df -i =>Show free inodes on mounted filesystems
fdisk -l =>Show disks partitions sizes and types
du -ah =>Display disk usage in human readable form
du -sh =>Display total disk usage on the current directory
findmnt =>Displays target mount point for all filesystem
mount device-path mount-point =>Mount a device
DIRECTORY TRAVERSE
cd .. =>To go up one level of the directory tree
cd =>Go to $HOME directory
cd /test =>Change to /test directory
SYSTEM
uname -a =>Displaylinux system information
uname -r =>Display kernel release information
uptime =>Show how long the system has been running + load
hostname =>Show system host name
hostname -i =>Display the IP address of the host
last reboot =>Show system reboot history
date =>Show the current date and time
cal =>Show this month calendar
w =>Display who is online
whoami =>Who you are logged in as
finger user =>Display information about user
HARDWARE
dmesg =>Detected hardware and boot messages
cat /proc/cpuinfo =>CPU model
cat /proc/meminfo =>Hardware memory
cat /proc/interrupts =>Lists the number of interrupts per CPU per I/O device
lshw =>Displays information on hardware configuration of
the system
lsblk =>Displays block device related information in Linux
free -m =>Used and free memory (-m for MB)
lspci -tv =>Show PCI devices
lsusb -tv =>Show USB devices
dmidecode =>Show hardware info from the BIOS
hdparm -i /dev/sda =>Show info about disk sda
hdparm -tT /dev/sda =>Do a read speed test on disk sda
badblocks -s /dev/sda =>Test for unreadable blocks on disk sda
USERS
id =>Show the active user id with login and group
last =>Show last logins on the system
who =>Show who is logged on the system
groupadd admin =>Add group "admin"
useradd -c "Sam Tomshi" =>g admin -m sam #Create user "sam"
userdel sam =>Delete user sam
adduser sam =>Add user "sam"
usermod =>Modify user information
FILE COMMANDS
ls –al =>Display all information about files/ directories
pwd =>Show the path of current directory
mkdir directory-name =>Create a directory
rm file-name =>Delete file
rm -r directory-nam =>Delete directory recursively
rm -f file-name =>Forcefully remove file
rm -rf directory-name =>Forcefully remove directory recursively
cp file1 file2 =>Copy file1 to file2
cp -r dir1 dir2 =>Copy dir1 to dir2, create dir2 if it doesn’t exist
mv file1 file2 =>Rename source to dest / move source to directory
ln –s /path/to/file-name link-name #Create symbolic link to file-name
touch file =>Create or update file
cat > file =>Place standard input into file
more file =>Output contents of file
head file =>Output first 10 lines of file
tail file =>Output last 10 lines of file
tail -f file =>Output contents of file as it grows starting with the
last 10 lines
gpg -c file =>Encrypt file
gpg file.gpg =>Decrypt file
wc =>print the number of bytes, words, and lines in files
xargs =>Execute command lines from standard input
PROCESS RELATED
ps =>Display your currently active processes
ps aux | grep 'telnet' =>Find all process id related to telnet process
pmap =>Memory map of process
top =>Display all running processes
kill pid =>Kill process with mentioned pid id
killall proc =>Kill all processes named proc
pkill process-name =>Send signal to a process with its name
bg =>Resumes suspended jobs without bringing them to
foreground
fg =>Brings the most recent job to foreground
fg n =>Brings job n to the foreground
MORE DETAILED : HTTP://LINOXIDE.COM/GUIDE/LINUX-COMMAND-SHELF.HTML

Contenu connexe

Tendances

Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commandsswtjerin4u
 
Perintah perintah dasar linux Operating Sistem
Perintah perintah dasar linux Operating SistemPerintah perintah dasar linux Operating Sistem
Perintah perintah dasar linux Operating SistemRoziq Bahtiar
 
Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersDavide Ciambelli
 
50 Perintah Dasar pada linux
50 Perintah Dasar pada linux50 Perintah Dasar pada linux
50 Perintah Dasar pada linuxReskyRian
 
Linux commands
Linux commandsLinux commands
Linux commandsshekhar70
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overviewAmeer Sameer
 
Unix commands in etl testing
Unix commands in etl testingUnix commands in etl testing
Unix commands in etl testingGaruda Trainings
 
Using the command line on macOS
Using the command line on macOSUsing the command line on macOS
Using the command line on macOSAdamFallon4
 
linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014Peter Martin
 
Most frequently used unix commands for database administrator
Most frequently used unix commands for database administratorMost frequently used unix commands for database administrator
Most frequently used unix commands for database administratorDinesh jaisankar
 
Anandha ganesh linux1.ppt
Anandha ganesh linux1.pptAnandha ganesh linux1.ppt
Anandha ganesh linux1.pptanandha ganesh
 
Unix Commands
Unix CommandsUnix Commands
Unix CommandsDr.Ravi
 

Tendances (17)

Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commands
 
Perintah perintah dasar linux Operating Sistem
Perintah perintah dasar linux Operating SistemPerintah perintah dasar linux Operating Sistem
Perintah perintah dasar linux Operating Sistem
 
Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for Beginners
 
50 Perintah Dasar pada linux
50 Perintah Dasar pada linux50 Perintah Dasar pada linux
50 Perintah Dasar pada linux
 
Basics of unix
Basics of unixBasics of unix
Basics of unix
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overview
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Unix commands in etl testing
Unix commands in etl testingUnix commands in etl testing
Unix commands in etl testing
 
Using the command line on macOS
Using the command line on macOSUsing the command line on macOS
Using the command line on macOS
 
linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014
 
Apache1.ppt
Apache1.pptApache1.ppt
Apache1.ppt
 
Linux class 9 15 oct 2021-5
Linux class 9   15 oct 2021-5Linux class 9   15 oct 2021-5
Linux class 9 15 oct 2021-5
 
Most frequently used unix commands for database administrator
Most frequently used unix commands for database administratorMost frequently used unix commands for database administrator
Most frequently used unix commands for database administrator
 
Linux class 10 15 oct 2021-6
Linux class 10   15 oct 2021-6Linux class 10   15 oct 2021-6
Linux class 10 15 oct 2021-6
 
Anandha ganesh linux1.ppt
Anandha ganesh linux1.pptAnandha ganesh linux1.ppt
Anandha ganesh linux1.ppt
 
Unix Commands
Unix CommandsUnix Commands
Unix Commands
 

Similaire à Linux Commandos Cheat

Similaire à Linux Commandos Cheat (20)

Termux commands-list
Termux commands-listTermux commands-list
Termux commands-list
 
Unixcommandsinetltesting 130712050932-phpapp01
Unixcommandsinetltesting 130712050932-phpapp01Unixcommandsinetltesting 130712050932-phpapp01
Unixcommandsinetltesting 130712050932-phpapp01
 
Unix / Linux Command Reference
Unix / Linux Command ReferenceUnix / Linux Command Reference
Unix / Linux Command Reference
 
Bash cheat sheet
Bash cheat sheetBash cheat sheet
Bash cheat sheet
 
Bash cheat sheet
Bash cheat sheetBash cheat sheet
Bash cheat sheet
 
Linux cheat sheet
Linux cheat sheetLinux cheat sheet
Linux cheat sheet
 
Unix cmd
Unix cmdUnix cmd
Unix cmd
 
Terminal linux commands_ Fedora based
Terminal  linux commands_ Fedora basedTerminal  linux commands_ Fedora based
Terminal linux commands_ Fedora based
 
3.1.a linux commands reference
3.1.a linux commands reference3.1.a linux commands reference
3.1.a linux commands reference
 
List command linux fidora
List command linux fidoraList command linux fidora
List command linux fidora
 
Basics of Unix Adminisration
Basics  of Unix AdminisrationBasics  of Unix Adminisration
Basics of Unix Adminisration
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
 
Linux command line
Linux command lineLinux command line
Linux command line
 
14.Linux Command
14.Linux Command14.Linux Command
14.Linux Command
 
Basics of Linux
Basics of LinuxBasics of Linux
Basics of Linux
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Linux lecture5
Linux lecture5Linux lecture5
Linux lecture5
 
Introduction to linux day-3
Introduction to linux day-3Introduction to linux day-3
Introduction to linux day-3
 

Plus de Alvaro Gomes

Museu nacional de história natural e da ciência
Museu nacional de história natural e da ciênciaMuseu nacional de história natural e da ciência
Museu nacional de história natural e da ciênciaAlvaro Gomes
 
Luís Vaz de Camões Vida e Obras
Luís Vaz de Camões Vida e Obras Luís Vaz de Camões Vida e Obras
Luís Vaz de Camões Vida e Obras Alvaro Gomes
 
Ética Deontológica Técnico Administrativo
Ética Deontológica Técnico AdministrativoÉtica Deontológica Técnico Administrativo
Ética Deontológica Técnico AdministrativoAlvaro Gomes
 
Revolução Industrial - O Ponto de Viragem
Revolução Industrial - O Ponto de ViragemRevolução Industrial - O Ponto de Viragem
Revolução Industrial - O Ponto de ViragemAlvaro Gomes
 
Flash android using livesuit
Flash android using livesuitFlash android using livesuit
Flash android using livesuitAlvaro Gomes
 
13 Things the Government doesn´t want you to know
13 Things the Government doesn´t want you to know13 Things the Government doesn´t want you to know
13 Things the Government doesn´t want you to knowAlvaro Gomes
 
Hackeando facebook com wireshark e cookie injector
Hackeando facebook com wireshark e cookie injectorHackeando facebook com wireshark e cookie injector
Hackeando facebook com wireshark e cookie injectorAlvaro Gomes
 
Como transformar o router thomson num print server
Como transformar o router thomson num print serverComo transformar o router thomson num print server
Como transformar o router thomson num print serverAlvaro Gomes
 
Drivers ADB Android
Drivers ADB AndroidDrivers ADB Android
Drivers ADB AndroidAlvaro Gomes
 
ROM china original (Shenzhen)
ROM china original (Shenzhen)ROM china original (Shenzhen)
ROM china original (Shenzhen)Alvaro Gomes
 
Reinstalar actualizar el sistema operativo android
Reinstalar actualizar el sistema operativo androidReinstalar actualizar el sistema operativo android
Reinstalar actualizar el sistema operativo androidAlvaro Gomes
 
Hackeando facebook com wireshark e cookie injector
Hackeando facebook com wireshark e cookie injectorHackeando facebook com wireshark e cookie injector
Hackeando facebook com wireshark e cookie injectorAlvaro Gomes
 
H4dummies (translated to portuguese)
H4dummies (translated to portuguese)H4dummies (translated to portuguese)
H4dummies (translated to portuguese)Alvaro Gomes
 
Algoritmos e estructura de dados
Algoritmos e estructura de dadosAlgoritmos e estructura de dados
Algoritmos e estructura de dadosAlvaro Gomes
 
Html - capitulo 12
Html - capitulo 12Html - capitulo 12
Html - capitulo 12Alvaro Gomes
 

Plus de Alvaro Gomes (20)

Museu nacional de história natural e da ciência
Museu nacional de história natural e da ciênciaMuseu nacional de história natural e da ciência
Museu nacional de história natural e da ciência
 
Luís Vaz de Camões Vida e Obras
Luís Vaz de Camões Vida e Obras Luís Vaz de Camões Vida e Obras
Luís Vaz de Camões Vida e Obras
 
Ética Deontológica Técnico Administrativo
Ética Deontológica Técnico AdministrativoÉtica Deontológica Técnico Administrativo
Ética Deontológica Técnico Administrativo
 
Revolução Industrial - O Ponto de Viragem
Revolução Industrial - O Ponto de ViragemRevolução Industrial - O Ponto de Viragem
Revolução Industrial - O Ponto de Viragem
 
Flash android using livesuit
Flash android using livesuitFlash android using livesuit
Flash android using livesuit
 
Websearch
WebsearchWebsearch
Websearch
 
13 Things the Government doesn´t want you to know
13 Things the Government doesn´t want you to know13 Things the Government doesn´t want you to know
13 Things the Government doesn´t want you to know
 
Hackeando facebook com wireshark e cookie injector
Hackeando facebook com wireshark e cookie injectorHackeando facebook com wireshark e cookie injector
Hackeando facebook com wireshark e cookie injector
 
Como transformar o router thomson num print server
Como transformar o router thomson num print serverComo transformar o router thomson num print server
Como transformar o router thomson num print server
 
Drivers ADB Android
Drivers ADB AndroidDrivers ADB Android
Drivers ADB Android
 
ROM china original (Shenzhen)
ROM china original (Shenzhen)ROM china original (Shenzhen)
ROM china original (Shenzhen)
 
Reinstalar actualizar el sistema operativo android
Reinstalar actualizar el sistema operativo androidReinstalar actualizar el sistema operativo android
Reinstalar actualizar el sistema operativo android
 
Hackeando facebook com wireshark e cookie injector
Hackeando facebook com wireshark e cookie injectorHackeando facebook com wireshark e cookie injector
Hackeando facebook com wireshark e cookie injector
 
H4dummies (translated to portuguese)
H4dummies (translated to portuguese)H4dummies (translated to portuguese)
H4dummies (translated to portuguese)
 
Algoritmos e estructura de dados
Algoritmos e estructura de dadosAlgoritmos e estructura de dados
Algoritmos e estructura de dados
 
HTML - Guia5
HTML - Guia5HTML - Guia5
HTML - Guia5
 
HTML - Guia4
HTML - Guia4HTML - Guia4
HTML - Guia4
 
HTML - Guia 3
HTML - Guia 3HTML - Guia 3
HTML - Guia 3
 
HTML - Guia 1 e 2
HTML - Guia 1 e 2HTML - Guia 1 e 2
HTML - Guia 1 e 2
 
Html - capitulo 12
Html - capitulo 12Html - capitulo 12
Html - capitulo 12
 

Dernier

ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17Celine George
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
CHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptxCHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptxAneriPatwari
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
ARTERIAL BLOOD GAS ANALYSIS........pptx
ARTERIAL BLOOD  GAS ANALYSIS........pptxARTERIAL BLOOD  GAS ANALYSIS........pptx
ARTERIAL BLOOD GAS ANALYSIS........pptxAneriPatwari
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...Nguyen Thanh Tu Collection
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6Vanessa Camilleri
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Celine George
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptxmary850239
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 

Dernier (20)

ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
CHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptxCHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptx
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
ARTERIAL BLOOD GAS ANALYSIS........pptx
ARTERIAL BLOOD  GAS ANALYSIS........pptxARTERIAL BLOOD  GAS ANALYSIS........pptx
ARTERIAL BLOOD GAS ANALYSIS........pptx
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 

Linux Commandos Cheat

  • 1. FILE PERMISSION RELATED chmod octal file-name =>Change the permissions of file to octal Example chmod 777 /data/test.c =>Set rwx permission for owner,group,world chmod 755 /data/test.c =>Set rwx permission for owner,rx for group and world chown owner-user file =>Change owner of the file chown owner-user:owner-group file-name =>Change owner and group owner of the file chown owner-user:owner-group directory =>Change owner and group owner of the directory NETWORK ip addr show =>Display all network interfaces and ip address (a iproute2 command,powerful than ifconfig) ip address add 192.168.0.1 dev eth0 =>Set ip address ethtool eth0 =>Linux tool to show ethernet status mii-tool eth0 =>Linux tool to show ethernet status ping host =>Send echo request to test connection whois domain =>Get who is information for domain dig domain =>Get DNS information for domain dig -x host =>Reverse lookup host host google.com =>Lookup DNS ip address for the name hostname –i =>Lookup local ip address wget file =>Download file netstat -tupl =>Listing all active listening ports COMPRESSION / ARCHIVES tar cf home.tar home =>Create tar named home.tar containing home/ tar xf file.tar =>Extract the files from file.tar tar czf file.tar.gz files =>Create a tar with gzip compression gzip file =>Compress file and renames it to file.gz INSTALL PACKAGE rpm -i pkgname.rpm =>Install rpm based package rpm -e pkgname =>Remove package INSTALL FROM SOURCE ./configure make make install SEARCH grep pattern files =>Search for pattern in files grep -r pattern dir =>Search recursively for pattern in dir locate file =>Find all instances of file find /home/tom -name 'index*' =>Find files names that start with "index" find /home -size +10000k =>Find files larger than 10000k in /home LOGIN (SSH AND TELNET) ssh user@host =>Connect to host as user ssh -p port user@host =>Connect to host using specific port telnet host =>Connect to the system using telnet port FILE TRANSFER scp scp file.txt server2:/tmp =>Secure copy file.txt to remote host /tmp folder rsync rsync -a /home/apps /backup/ =>Synchronize source to destination DISK USAGE df –h =>Show free space on mounted filesystems df -i =>Show free inodes on mounted filesystems fdisk -l =>Show disks partitions sizes and types du -ah =>Display disk usage in human readable form du -sh =>Display total disk usage on the current directory findmnt =>Displays target mount point for all filesystem mount device-path mount-point =>Mount a device DIRECTORY TRAVERSE cd .. =>To go up one level of the directory tree cd =>Go to $HOME directory cd /test =>Change to /test directory SYSTEM uname -a =>Displaylinux system information uname -r =>Display kernel release information uptime =>Show how long the system has been running + load hostname =>Show system host name hostname -i =>Display the IP address of the host last reboot =>Show system reboot history date =>Show the current date and time cal =>Show this month calendar w =>Display who is online whoami =>Who you are logged in as finger user =>Display information about user HARDWARE dmesg =>Detected hardware and boot messages cat /proc/cpuinfo =>CPU model cat /proc/meminfo =>Hardware memory cat /proc/interrupts =>Lists the number of interrupts per CPU per I/O device lshw =>Displays information on hardware configuration of the system lsblk =>Displays block device related information in Linux free -m =>Used and free memory (-m for MB) lspci -tv =>Show PCI devices lsusb -tv =>Show USB devices dmidecode =>Show hardware info from the BIOS hdparm -i /dev/sda =>Show info about disk sda hdparm -tT /dev/sda =>Do a read speed test on disk sda badblocks -s /dev/sda =>Test for unreadable blocks on disk sda USERS id =>Show the active user id with login and group last =>Show last logins on the system who =>Show who is logged on the system groupadd admin =>Add group "admin" useradd -c "Sam Tomshi" =>g admin -m sam #Create user "sam" userdel sam =>Delete user sam adduser sam =>Add user "sam" usermod =>Modify user information FILE COMMANDS ls –al =>Display all information about files/ directories pwd =>Show the path of current directory mkdir directory-name =>Create a directory rm file-name =>Delete file rm -r directory-nam =>Delete directory recursively rm -f file-name =>Forcefully remove file rm -rf directory-name =>Forcefully remove directory recursively cp file1 file2 =>Copy file1 to file2 cp -r dir1 dir2 =>Copy dir1 to dir2, create dir2 if it doesn’t exist mv file1 file2 =>Rename source to dest / move source to directory ln –s /path/to/file-name link-name #Create symbolic link to file-name touch file =>Create or update file cat > file =>Place standard input into file more file =>Output contents of file head file =>Output first 10 lines of file tail file =>Output last 10 lines of file tail -f file =>Output contents of file as it grows starting with the last 10 lines gpg -c file =>Encrypt file gpg file.gpg =>Decrypt file wc =>print the number of bytes, words, and lines in files xargs =>Execute command lines from standard input PROCESS RELATED ps =>Display your currently active processes ps aux | grep 'telnet' =>Find all process id related to telnet process pmap =>Memory map of process top =>Display all running processes kill pid =>Kill process with mentioned pid id killall proc =>Kill all processes named proc pkill process-name =>Send signal to a process with its name bg =>Resumes suspended jobs without bringing them to foreground fg =>Brings the most recent job to foreground fg n =>Brings job n to the foreground MORE DETAILED : HTTP://LINOXIDE.COM/GUIDE/LINUX-COMMAND-SHELF.HTML