0% found this document useful (0 votes)
196 views1 page

Linux Command Cheat Sheet

This document provides a cheat sheet of common Linux commands organized into categories including console commands, user commands, navigation commands, folder/file manipulation commands, package management commands, and network management commands. For each command, a brief description of its functionality is given. The cheat sheet is intended to help users learn the basic commands and operations available in the Linux operating system.

Uploaded by

dani drumer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
196 views1 page

Linux Command Cheat Sheet

This document provides a cheat sheet of common Linux commands organized into categories including console commands, user commands, navigation commands, folder/file manipulation commands, package management commands, and network management commands. For each command, a brief description of its functionality is given. The cheat sheet is intended to help users learn the basic commands and operations available in the Linux operating system.

Uploaded by

dani drumer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Linux Command Cheat Sheet

Use [command] --help if you want to know all of the available options for each command!

Console
Command / Action Result
Press Shift+Page Up / Page Down Scroll the console up or down
Up / Down arrows Will enter the last used commands
Press Tab Will autocomplete your text where possible (remember Linux is case sensitive on
EVERYTHING)
clear Clears the screen of all text
--help Shows help for current command – usage example: “shutdown --help”
shutdown Shuts down the server – usage example: “shutdown -r now” or “shutdown now”
logout Logs the current user out of the system
grep Filter for text

User Commands
Command Result
sudo Elevated permissions
su Switch user – sudo su – su user2 – etc…
adduser username Create a user account
deluser username Delete a user account
passwd username Reset a user account password

Navigation
Command Result
ls List all of the folders / files in current directory (use ls –a) to show hidden files
cd Change Directory – usage example: “cd ..”; “cd /”; “cd /home/desktop” etc…

Folder / File Manipulation


Command Result
mkdir Create a directory… “mkdir test_directory”
rm Delete file
rm -r Delete a folder
cat Outputs contents a file – usage example: “cat [filename]”; “cat config.conf”
nano / vi Edit a text file with the Nano or VI text editor – usage example: “nano config.conf”

Package Management
Command Result
apt-get install [package name] Install a package (apache for example)
apt-get purge [package name] Uninstall program
dpkg –l List installed packages

Network Management
Command Result
ifconfig -a List all network information
Ifconfig eth0 10.0.0.20 Set the IP of eth0 to 10.0.0.20

Paul Hill | www.ITFlee.com/subscribe | Udemy Instructor

You might also like