SlideShare a Scribd company logo
File Commands System Commands
File Searching Commands
File Encryption and Compression
Linux Command Line
Cheatsheet
Make Tech Easier
Uncomplicating the complicated
ls - List the content of the current directory uname -a - Show system and kernel
ls -R - List the subdirectories recursively head -n1 /etc/issue - Show distribution
ls -a - List all the content, including hidden files mount - Show mounted filesystems
ls -l - List the content and its information date - Show system date
pwd - Output the current directory that you are in uptime - Show system uptime
cd folder1 – Change the working directory to folder1 whoami - Show your username
cd - Return to the $Home directory w - Display who is online
cd .. - Go up a directory man command - Show manual for command
cd - - Return to the previous directory
mount -o loop cdrom.iso /mnt/dir - Mount cdrom.iso at
/mnt/dircp source destination – Copy source to destination
cp -r source destination – Copy a folder recursively from
source to destination
cat /proc/partitions - Show all partitions registered on the
system
mv source destination - Move (or rename) a file from source to
destination
grep MemTotal /proc/meminfo - Show RAM total seen by the
system
rm file1 - Remove file1 grep "model name" /proc/cpuinfo - Show CPU(s) info
rm -f file1 - Remove file1 without prompt lspci -tv - Show PCI info
rm -r folder - Remove a folder and its content recursively lsusb -tv - Show USB info
mkdir foldername – Create a new folder foldername !! - Repeat the last command
rmdir foldername – Remove an empty folder exit – Log out of current session
file file1 – Show the file type of file1
cat file1 file2 – Concatenate file1 to file 2
cat > file1 – Concatenate standard input to file1 grep pattern files - Search for pattern in files
less file1 - View and paginate file1 grep -i - Case insensitive search
head file1 - Show first 10 lines of file1 grep -r - Recursive search
tail file1 - Show last 10 lines of file1 grep -v - Inverted search
chmod 777 file - Change file permission of file to 777 grep -o - Show matched part of file only
chown user:group file - Change ownership of file to user and
group group
locate file1 - Find file1
whereis command - Find binary/source /manual for command
ln -s source destination – Create a symbolic link from source to
destination
which app – Locate a command for the app
look string file1 - Display any lines in file1 which contain string
as a prefix.
find /dir/ -user name - Find files owned by name in dir
gpg -c file - Encrypt file
find /dir/ -mmin num - Find files modifed less than num
minutes ago in dirgpg file.gpg - Decrypt file.gpg
tar -cf archive.tar foo bar - Create archive.tar from files foo
and bar
find /dir/ -name name* - Find files starting with name in dir
tar -xf archive.tar - Extract all files from archive.tar.
Process Management
Keyboard Shortcuts
SSH
Disk Space
Package Installation
Do you like this cheat sheet?
tar -czf archive.tar.gz foo bar - Create archive.tar.gz from files
foo and bar, with Gzip compression
ps - Show snapshot of processes
tar -xzf archive.tar.gz - Extract a tar using Gzip top - Show real time processes
tar -cjf archive.tar.bz2 foo bar - Create archive.tar.bz2 from
files foo and bar, using Bzip2 compression.
kill pid - Kill process with id pid
pkill name - Kill process with name name
tar -xjf archive.tar.bz2 – Extract a tar using Bzip2 killall name - Kill all processes with names beginning name
gzip file1 – Compress file1 and rename it to file1.gz
gzip -d file1.gz – Decompress file1.gz
Ctrl + Shift + c - Copy a highlighted text
Ctrl + Shift + v – Paste a copied text
ssh $USER@$HOST – Connect to $Host as $USER Ctrl + z - Sleep program
ssh $USER@$HOST command - Run command on $HOST as
$USER
Ctrl + c – Stop current command
Ctrl + r – Start a search
ssh $USER@$HOST -p 1234 – Connect to $HOST as $USER
on port 1234
Ctrl + u – Cut from start of line
Ctrl + k – Cut to end of line
scp file1 $USER@$HOST:file1 – Secure copy file1 from local
machine to file1 at remote $HOST
Ctrl + a – Go to start of line
Ctrl + e – Go to end of line
scp $USER@$HOST:file1 file1– Secure copy file1 from remote
$HOST to file1 at local machine
scp -r foo $USER@$HOST:/bar – Secure copy the folder foo
from local machine to the folder bar at remote $HOST
df -h - Show free space on mounted filesystems
df -i - Show free inodes on mounted filesystems
du -h folder – Show file usage of each folder in folder
du -sh folder – Show the total file size of folder
dpkg -i package.deb - Install a deb package fdisk -l - Show disks partitions sizes and types (run as root)
rpm -Uvh package.rpm – Install a rpm package free – Show memory and swap usage
Visit MakeTechEasier.com for more useful tech tutorials, tips and tricks
Ad

More Related Content

What's hot (20)

Yum (Linux)
Yum (Linux) Yum (Linux)
Yum (Linux)
Raghu nath
 
RPM (LINUX)
RPM (LINUX)RPM (LINUX)
RPM (LINUX)
Raghu nath
 
Input output redirection linux
Input output redirection linuxInput output redirection linux
Input output redirection linux
Tanishq Soni
 
package mangement
package mangementpackage mangement
package mangement
ARYA TM
 
Red Hat Linux cheat sheet
Red Hat Linux cheat sheetRed Hat Linux cheat sheet
Red Hat Linux cheat sheet
Rafael Montesinos Muñoz
 
Course 102: Lecture 22: Package Management
Course 102: Lecture 22: Package Management Course 102: Lecture 22: Package Management
Course 102: Lecture 22: Package Management
Ahmed El-Arabawy
 
Selinux
SelinuxSelinux
Selinux
Ankit Raj
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
Hanan Nmr
 
Linux Package Management.pptx
Linux Package Management.pptxLinux Package Management.pptx
Linux Package Management.pptx
HussienEndris1
 
OverlayFS as a Docker Storage Driver
OverlayFS as a Docker Storage DriverOverlayFS as a Docker Storage Driver
OverlayFS as a Docker Storage Driver
Tomoya Akase
 
Basic commands of linux
Basic commands of linuxBasic commands of linux
Basic commands of linux
shravan saini
 
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
 
Unix Cheat Sheet
Unix Cheat SheetUnix Cheat Sheet
Unix Cheat Sheet
Loiane Groner
 
Linux File System
Linux File SystemLinux File System
Linux File System
Anil Kumar Pugalia
 
Introduction To SELinux
Introduction To SELinuxIntroduction To SELinux
Introduction To SELinux
Rene Cunningham
 
Course 102: Lecture 26: FileSystems in Linux (Part 1)
Course 102: Lecture 26: FileSystems in Linux (Part 1) Course 102: Lecture 26: FileSystems in Linux (Part 1)
Course 102: Lecture 26: FileSystems in Linux (Part 1)
Ahmed El-Arabawy
 
RPM (Red Hat Package Manager)
RPM (Red Hat Package Manager)RPM (Red Hat Package Manager)
RPM (Red Hat Package Manager)
skalaivanibutp
 
Course 102: Lecture 5: File Handling Internals
Course 102: Lecture 5: File Handling Internals Course 102: Lecture 5: File Handling Internals
Course 102: Lecture 5: File Handling Internals
Ahmed El-Arabawy
 
Storage Management in Linux OS.ppt
Storage Management in Linux OS.pptStorage Management in Linux OS.ppt
Storage Management in Linux OS.ppt
Rakesh Kadu
 
Bash shell scripting
Bash shell scriptingBash shell scripting
Bash shell scripting
VIKAS TIWARI
 
Input output redirection linux
Input output redirection linuxInput output redirection linux
Input output redirection linux
Tanishq Soni
 
package mangement
package mangementpackage mangement
package mangement
ARYA TM
 
Course 102: Lecture 22: Package Management
Course 102: Lecture 22: Package Management Course 102: Lecture 22: Package Management
Course 102: Lecture 22: Package Management
Ahmed El-Arabawy
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
Hanan Nmr
 
Linux Package Management.pptx
Linux Package Management.pptxLinux Package Management.pptx
Linux Package Management.pptx
HussienEndris1
 
OverlayFS as a Docker Storage Driver
OverlayFS as a Docker Storage DriverOverlayFS as a Docker Storage Driver
OverlayFS as a Docker Storage Driver
Tomoya Akase
 
Basic commands of linux
Basic commands of linuxBasic commands of linux
Basic commands of linux
shravan saini
 
Course 102: Lecture 26: FileSystems in Linux (Part 1)
Course 102: Lecture 26: FileSystems in Linux (Part 1) Course 102: Lecture 26: FileSystems in Linux (Part 1)
Course 102: Lecture 26: FileSystems in Linux (Part 1)
Ahmed El-Arabawy
 
RPM (Red Hat Package Manager)
RPM (Red Hat Package Manager)RPM (Red Hat Package Manager)
RPM (Red Hat Package Manager)
skalaivanibutp
 
Course 102: Lecture 5: File Handling Internals
Course 102: Lecture 5: File Handling Internals Course 102: Lecture 5: File Handling Internals
Course 102: Lecture 5: File Handling Internals
Ahmed El-Arabawy
 
Storage Management in Linux OS.ppt
Storage Management in Linux OS.pptStorage Management in Linux OS.ppt
Storage Management in Linux OS.ppt
Rakesh Kadu
 
Bash shell scripting
Bash shell scriptingBash shell scripting
Bash shell scripting
VIKAS TIWARI
 

Similar to Linux command line (20)

3.1.a linux commands reference
3.1.a linux commands reference3.1.a linux commands reference
3.1.a linux commands reference
Acácio Oliveira
 
14.Linux Command
14.Linux Command14.Linux Command
14.Linux Command
Export Promotion Bureau
 
The Linux Command Cheat Sheet
The Linux Command Cheat SheetThe Linux Command Cheat Sheet
The Linux Command Cheat Sheet
Tola LENG
 
Basic unix
Basic unixBasic unix
Basic unix
Raghu nath
 
Linux commands
Linux commandsLinux commands
Linux commands
Manish Bothra
 
Directories description
Directories descriptionDirectories description
Directories description
Dr.M.Karthika parthasarathy
 
Basic shell commands by Jeremy Sanders
Basic shell commands by Jeremy SandersBasic shell commands by Jeremy Sanders
Basic shell commands by Jeremy Sanders
Devanand Gehlot
 
Unix slideshare
Unix slideshareUnix slideshare
Unix slideshare
Mohan Krishna Kona
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
Teja Bheemanapally
 
Linux ppt
Linux pptLinux ppt
Linux ppt
Sanmuga Nathan
 
linuxcommands.pdf
linuxcommands.pdflinuxcommands.pdf
linuxcommands.pdf
SatishReddy212
 
Unix/Linux Command Reference - File Commands and Shortcuts
Unix/Linux Command Reference - File Commands and ShortcutsUnix/Linux Command Reference - File Commands and Shortcuts
Unix/Linux Command Reference - File Commands and Shortcuts
Jason J Pulikkottil
 
Linuxcommands
LinuxcommandsLinuxcommands
Linuxcommands
Lokendra Tiwari
 
some title
some titlesome title
some title
PlanetExpressATX
 
Raspberry Pi - Lecture 2 Linux OS
Raspberry Pi - Lecture 2 Linux OSRaspberry Pi - Lecture 2 Linux OS
Raspberry Pi - Lecture 2 Linux OS
Mohamed Abdallah
 
Basic unix commands_1
Basic unix commands_1Basic unix commands_1
Basic unix commands_1
thakor bharati
 
Information about linux operating system
Information about linux operating systemInformation about linux operating system
Information about linux operating system
PriyankaMate4
 
Information about linux operating system
Information about linux operating systemInformation about linux operating system
Information about linux operating system
PriyankaMate4
 
Linux command line cheatsheet
Linux command line cheatsheetLinux command line cheatsheet
Linux command line cheatsheet
We Ihaveapc
 
Examples -partII
Examples -partIIExamples -partII
Examples -partII
Kedar Bhandari
 
Ad

Recently uploaded (19)

project_based_laaaaaaaaaaearning,kelompok 10.pptx
project_based_laaaaaaaaaaearning,kelompok 10.pptxproject_based_laaaaaaaaaaearning,kelompok 10.pptx
project_based_laaaaaaaaaaearning,kelompok 10.pptx
redzuriel13
 
Computers Networks Computers Networks Computers Networks
Computers Networks Computers Networks Computers NetworksComputers Networks Computers Networks Computers Networks
Computers Networks Computers Networks Computers Networks
Tito208863
 
IT Services Workflow From Request to Resolution
IT Services Workflow From Request to ResolutionIT Services Workflow From Request to Resolution
IT Services Workflow From Request to Resolution
mzmziiskd
 
highend-srxseries-services-gateways-customer-presentation.pptx
highend-srxseries-services-gateways-customer-presentation.pptxhighend-srxseries-services-gateways-customer-presentation.pptx
highend-srxseries-services-gateways-customer-presentation.pptx
elhadjcheikhdiop
 
(Hosting PHising Sites) for Cryptography and network security
(Hosting PHising Sites) for Cryptography and network security(Hosting PHising Sites) for Cryptography and network security
(Hosting PHising Sites) for Cryptography and network security
aluacharya169
 
Smart Mobile App Pitch Deck丨AI Travel App Presentation Template
Smart Mobile App Pitch Deck丨AI Travel App Presentation TemplateSmart Mobile App Pitch Deck丨AI Travel App Presentation Template
Smart Mobile App Pitch Deck丨AI Travel App Presentation Template
yojeari421237
 
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHostingTop Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
steve198109
 
White and Red Clean Car Business Pitch Presentation.pptx
White and Red Clean Car Business Pitch Presentation.pptxWhite and Red Clean Car Business Pitch Presentation.pptx
White and Red Clean Car Business Pitch Presentation.pptx
canumatown
 
Best web hosting Vancouver 2025 for you business
Best web hosting Vancouver 2025 for you businessBest web hosting Vancouver 2025 for you business
Best web hosting Vancouver 2025 for you business
steve198109
 
APNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC Update, presented at NZNOG 2025 by Terry SweetserAPNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC
 
Determining Glass is mechanical textile
Determining  Glass is mechanical textileDetermining  Glass is mechanical textile
Determining Glass is mechanical textile
Azizul Hakim
 
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC
 
DNS Resolvers and Nameservers (in New Zealand)
DNS Resolvers and Nameservers (in New Zealand)DNS Resolvers and Nameservers (in New Zealand)
DNS Resolvers and Nameservers (in New Zealand)
APNIC
 
Perguntas dos animais - Slides ilustrados de múltipla escolha
Perguntas dos animais - Slides ilustrados de múltipla escolhaPerguntas dos animais - Slides ilustrados de múltipla escolha
Perguntas dos animais - Slides ilustrados de múltipla escolha
socaslev
 
Reliable Vancouver Web Hosting with Local Servers & 24/7 Support
Reliable Vancouver Web Hosting with Local Servers & 24/7 SupportReliable Vancouver Web Hosting with Local Servers & 24/7 Support
Reliable Vancouver Web Hosting with Local Servers & 24/7 Support
steve198109
 
OSI TCP IP Protocol Layers description f
OSI TCP IP Protocol Layers description fOSI TCP IP Protocol Layers description f
OSI TCP IP Protocol Layers description f
cbr49917
 
Understanding the Tor Network and Exploring the Deep Web
Understanding the Tor Network and Exploring the Deep WebUnderstanding the Tor Network and Exploring the Deep Web
Understanding the Tor Network and Exploring the Deep Web
nabilajabin35
 
5-Proses-proses Akuisisi Citra Digital.pptx
5-Proses-proses Akuisisi Citra Digital.pptx5-Proses-proses Akuisisi Citra Digital.pptx
5-Proses-proses Akuisisi Citra Digital.pptx
andani26
 
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
Mobile database for your company telemarketing or sms marketing campaigns. Fr...Mobile database for your company telemarketing or sms marketing campaigns. Fr...
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
DataProvider1
 
project_based_laaaaaaaaaaearning,kelompok 10.pptx
project_based_laaaaaaaaaaearning,kelompok 10.pptxproject_based_laaaaaaaaaaearning,kelompok 10.pptx
project_based_laaaaaaaaaaearning,kelompok 10.pptx
redzuriel13
 
Computers Networks Computers Networks Computers Networks
Computers Networks Computers Networks Computers NetworksComputers Networks Computers Networks Computers Networks
Computers Networks Computers Networks Computers Networks
Tito208863
 
IT Services Workflow From Request to Resolution
IT Services Workflow From Request to ResolutionIT Services Workflow From Request to Resolution
IT Services Workflow From Request to Resolution
mzmziiskd
 
highend-srxseries-services-gateways-customer-presentation.pptx
highend-srxseries-services-gateways-customer-presentation.pptxhighend-srxseries-services-gateways-customer-presentation.pptx
highend-srxseries-services-gateways-customer-presentation.pptx
elhadjcheikhdiop
 
(Hosting PHising Sites) for Cryptography and network security
(Hosting PHising Sites) for Cryptography and network security(Hosting PHising Sites) for Cryptography and network security
(Hosting PHising Sites) for Cryptography and network security
aluacharya169
 
Smart Mobile App Pitch Deck丨AI Travel App Presentation Template
Smart Mobile App Pitch Deck丨AI Travel App Presentation TemplateSmart Mobile App Pitch Deck丨AI Travel App Presentation Template
Smart Mobile App Pitch Deck丨AI Travel App Presentation Template
yojeari421237
 
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHostingTop Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
steve198109
 
White and Red Clean Car Business Pitch Presentation.pptx
White and Red Clean Car Business Pitch Presentation.pptxWhite and Red Clean Car Business Pitch Presentation.pptx
White and Red Clean Car Business Pitch Presentation.pptx
canumatown
 
Best web hosting Vancouver 2025 for you business
Best web hosting Vancouver 2025 for you businessBest web hosting Vancouver 2025 for you business
Best web hosting Vancouver 2025 for you business
steve198109
 
APNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC Update, presented at NZNOG 2025 by Terry SweetserAPNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC
 
Determining Glass is mechanical textile
Determining  Glass is mechanical textileDetermining  Glass is mechanical textile
Determining Glass is mechanical textile
Azizul Hakim
 
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC
 
DNS Resolvers and Nameservers (in New Zealand)
DNS Resolvers and Nameservers (in New Zealand)DNS Resolvers and Nameservers (in New Zealand)
DNS Resolvers and Nameservers (in New Zealand)
APNIC
 
Perguntas dos animais - Slides ilustrados de múltipla escolha
Perguntas dos animais - Slides ilustrados de múltipla escolhaPerguntas dos animais - Slides ilustrados de múltipla escolha
Perguntas dos animais - Slides ilustrados de múltipla escolha
socaslev
 
Reliable Vancouver Web Hosting with Local Servers & 24/7 Support
Reliable Vancouver Web Hosting with Local Servers & 24/7 SupportReliable Vancouver Web Hosting with Local Servers & 24/7 Support
Reliable Vancouver Web Hosting with Local Servers & 24/7 Support
steve198109
 
OSI TCP IP Protocol Layers description f
OSI TCP IP Protocol Layers description fOSI TCP IP Protocol Layers description f
OSI TCP IP Protocol Layers description f
cbr49917
 
Understanding the Tor Network and Exploring the Deep Web
Understanding the Tor Network and Exploring the Deep WebUnderstanding the Tor Network and Exploring the Deep Web
Understanding the Tor Network and Exploring the Deep Web
nabilajabin35
 
5-Proses-proses Akuisisi Citra Digital.pptx
5-Proses-proses Akuisisi Citra Digital.pptx5-Proses-proses Akuisisi Citra Digital.pptx
5-Proses-proses Akuisisi Citra Digital.pptx
andani26
 
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
Mobile database for your company telemarketing or sms marketing campaigns. Fr...Mobile database for your company telemarketing or sms marketing campaigns. Fr...
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
DataProvider1
 
Ad

Linux command line

  • 1. File Commands System Commands File Searching Commands File Encryption and Compression Linux Command Line Cheatsheet Make Tech Easier Uncomplicating the complicated ls - List the content of the current directory uname -a - Show system and kernel ls -R - List the subdirectories recursively head -n1 /etc/issue - Show distribution ls -a - List all the content, including hidden files mount - Show mounted filesystems ls -l - List the content and its information date - Show system date pwd - Output the current directory that you are in uptime - Show system uptime cd folder1 – Change the working directory to folder1 whoami - Show your username cd - Return to the $Home directory w - Display who is online cd .. - Go up a directory man command - Show manual for command cd - - Return to the previous directory mount -o loop cdrom.iso /mnt/dir - Mount cdrom.iso at /mnt/dircp source destination – Copy source to destination cp -r source destination – Copy a folder recursively from source to destination cat /proc/partitions - Show all partitions registered on the system mv source destination - Move (or rename) a file from source to destination grep MemTotal /proc/meminfo - Show RAM total seen by the system rm file1 - Remove file1 grep "model name" /proc/cpuinfo - Show CPU(s) info rm -f file1 - Remove file1 without prompt lspci -tv - Show PCI info rm -r folder - Remove a folder and its content recursively lsusb -tv - Show USB info mkdir foldername – Create a new folder foldername !! - Repeat the last command rmdir foldername – Remove an empty folder exit – Log out of current session file file1 – Show the file type of file1 cat file1 file2 – Concatenate file1 to file 2 cat > file1 – Concatenate standard input to file1 grep pattern files - Search for pattern in files less file1 - View and paginate file1 grep -i - Case insensitive search head file1 - Show first 10 lines of file1 grep -r - Recursive search tail file1 - Show last 10 lines of file1 grep -v - Inverted search chmod 777 file - Change file permission of file to 777 grep -o - Show matched part of file only chown user:group file - Change ownership of file to user and group group locate file1 - Find file1 whereis command - Find binary/source /manual for command ln -s source destination – Create a symbolic link from source to destination which app – Locate a command for the app look string file1 - Display any lines in file1 which contain string as a prefix. find /dir/ -user name - Find files owned by name in dir gpg -c file - Encrypt file find /dir/ -mmin num - Find files modifed less than num minutes ago in dirgpg file.gpg - Decrypt file.gpg tar -cf archive.tar foo bar - Create archive.tar from files foo and bar find /dir/ -name name* - Find files starting with name in dir tar -xf archive.tar - Extract all files from archive.tar.
  • 2. Process Management Keyboard Shortcuts SSH Disk Space Package Installation Do you like this cheat sheet? tar -czf archive.tar.gz foo bar - Create archive.tar.gz from files foo and bar, with Gzip compression ps - Show snapshot of processes tar -xzf archive.tar.gz - Extract a tar using Gzip top - Show real time processes tar -cjf archive.tar.bz2 foo bar - Create archive.tar.bz2 from files foo and bar, using Bzip2 compression. kill pid - Kill process with id pid pkill name - Kill process with name name tar -xjf archive.tar.bz2 – Extract a tar using Bzip2 killall name - Kill all processes with names beginning name gzip file1 – Compress file1 and rename it to file1.gz gzip -d file1.gz – Decompress file1.gz Ctrl + Shift + c - Copy a highlighted text Ctrl + Shift + v – Paste a copied text ssh $USER@$HOST – Connect to $Host as $USER Ctrl + z - Sleep program ssh $USER@$HOST command - Run command on $HOST as $USER Ctrl + c – Stop current command Ctrl + r – Start a search ssh $USER@$HOST -p 1234 – Connect to $HOST as $USER on port 1234 Ctrl + u – Cut from start of line Ctrl + k – Cut to end of line scp file1 $USER@$HOST:file1 – Secure copy file1 from local machine to file1 at remote $HOST Ctrl + a – Go to start of line Ctrl + e – Go to end of line scp $USER@$HOST:file1 file1– Secure copy file1 from remote $HOST to file1 at local machine scp -r foo $USER@$HOST:/bar – Secure copy the folder foo from local machine to the folder bar at remote $HOST df -h - Show free space on mounted filesystems df -i - Show free inodes on mounted filesystems du -h folder – Show file usage of each folder in folder du -sh folder – Show the total file size of folder dpkg -i package.deb - Install a deb package fdisk -l - Show disks partitions sizes and types (run as root) rpm -Uvh package.rpm – Install a rpm package free – Show memory and swap usage Visit MakeTechEasier.com for more useful tech tutorials, tips and tricks