Cheat sheet Ubuntu (14.04+) terminal commands

Cheat sheet Ubuntu terminal commands

This cheat sheet is created for people who want to learn the Ubuntu terminal commands. This small overview of common commands might help you with your ‘adventure’ of learning the ropes. Or maybe if you’re a forgetful person like me you can use an overview like this because otherwise you might forget it. Let me know if you find it useful or if you think there any any commands missing.

If you want to start using Ubuntu, you can download it from their website. Choosing a linux distro can be hard, I can really recommend Ubuntu as it has a large (helping)community, there’s a lot of documentation available if you require.

Cheat Sheet CentOS 7
Command Description Comments (optional)
sudo Runs a commands as Super User A very important commands as it allows you to do literally everything.
yum Lets you install software and packages Often used with the sudo commands.
ls List Directory Contents Lists everything in the current directory.
cd Change Directory Used to switch directories.
pwd Present working directory Displays the current pathname.
mv Rename or move files Moves/renames files or directories.
cp Copy files or directory
mkdir Make Directory Create a folder in your current directory.
rm(dir) Delete files or folders
who Checks who is logged on Shows all online users.
clear Clear terminal window Clears the complete window of your terminal.
systemctl (start/stop/enable/disable) Manages OS services and start-ups
firewall-cmd CentOS Firewall Critical system function (security).
touch Create new file
del Delete file
nano Text editor Not installed with minimum install.
vi<filename> Edit file with vi editor vi is more advanced compared to nano.
tar Unzips tar archives(+more)
unzip Unzips an archived folder Commonly used with .zip files.
chmod Change file permissions
chown Changes owner of a file or folder