Linux Command Cheat Sheet
Linux Command Cheat Sheet
https://www.guru99.com/linux-commands-cheat-sheet.html 1/9
10/25/24, 2:59 AM Linux Command Cheat Sheet
Command Description
cat > filename Creates a new file
cat file1 file2 > Joins two files (file1, file2) and stores the output in a
file3 new file (file3)
mv filename
Renames the file to a new filename
new_file_name
mv Renames a directory
https://www.guru99.com/linux-commands-cheat-sheet.html 2/9
10/25/24, 2:59 AM Linux Command Cheat Sheet
Command Description
apt-get Command used to install and update packages
mail -s 'subject'
-c 'cc-address'
Command to send email
-b 'bcc-address'
'to-address'
mail -s "Subject"
to-address < Command to send email with attachment
Filename
EXPLORE MORE
What to bring to a JOB
Interview: Interview
Tips
01:50
01:00
00:00 01:50
Test Strategy in
Software Testing
r read permission
w write permission
x execute permission
-= no permission
https://www.guru99.com/linux-commands-cheat-sheet.html 3/9
10/25/24, 2:59 AM Linux Command Cheat Sheet
Command Description
Chown user:group change the user as well as group for a file or
filename directory
https://www.guru99.com/linux-commands-cheat-sheet.html 4/9
10/25/24, 2:59 AM Linux Command Cheat Sheet
RELATED ARTICLES
→ Linux Command Line Tutorial: Manipulate Terminal with CD Commands
→ Basics Linux/Unix Commands with Examples & Syntax (List)
Networking command
Command Description
SSH username@ip-address or login into a remote Linux machine using
hostname SSH
quit Logout
https://www.guru99.com/linux-commands-cheat-sheet.html 5/9
10/25/24, 2:59 AM Linux Command Cheat Sheet
Process command
Command Description
bg To send a process to the background
VI Editing Commands
https://www.guru99.com/linux-commands-cheat-sheet.html 6/9
10/25/24, 2:59 AM Linux Command Cheat Sheet
Command Description
i Insert at cursor (goes into insert mode)
dd Delete line
Delete contents of a line after the cursor and insert new text.
C
Press ESC key to end insertion.
dw Delete word
cw Change word
r Replace character
https://www.guru99.com/linux-commands-cheat-sheet.html 7/9
10/25/24, 2:59 AM Linux Command Cheat Sheet
How
How to Unzip Files Top 60 Linux
Basics
Basics Linux/Unix in Linux
Linux and
and Interview
Commands with… Ubuntu
Ubuntu Questions and…
50 Shell
Shell Scripting
Interview…
About
About Us
https://www.guru99.com/linux-commands-cheat-sheet.html 8/9
10/25/24, 2:59 AM Linux Command Cheat Sheet
Advertise with Us
Contact Us
Career Suggestion
SAP Career Suggestion Tool
Software Testing as a Career
Xero
RemotePC
Textline
Interesting
eBook
Blog
Quiz
SAP eBook
Privacy Manager
https://www.guru99.com/linux-commands-cheat-sheet.html 9/9