Skip to main content
ID Academia
Linux
Beginner15 minLast updated: Topic 2 of 2

Linux command table — from basics to advanced

34 commands in learning order: command plus a short explanation, no searching through text.

Not read

What you will learn here

  • 34 core commands in one table
  • Learning order: files, permissions, packages, services, networking
  • What each command does in one line

Worth reading first:Linux Essentials — getting started with Linux

Every command from the topic in one table: from the basics (where am I) to services, networking and scripts. Read top to bottom and try each command in your practice folder.

Command cheat sheet: from basics to advanced

CommandWhat it does
pwdShows which directory you are in
ls -laLists files, including hidden ones, with permissions and owner
cd ~/linux-practiceChanges directory; plain cd returns home
whoami / idCurrent user and their groups
uname -rLinux kernel version
cat /etc/os-releaseDistribution name and version
ls --help / man lsShort help / full manual for a command (q to quit)
mkdir -p a/bCreates a directory including parent folders
touch notes.txtCreates an empty file
cp a b / cp -r dir backup/Copies a file / a whole directory
mv old newMoves or renames
rm -i fileDeletes with confirmation; there is no recycle bin
cat / less filePrints a file / pages through a long file
nano fileSimple editor: Ctrl+O save, Ctrl+X exit
grep word fileFinds lines containing a word
echo text > f / >> f> replaces file content, >> appends
cmd1 | cmd2Passes one command's output to another
chmod 640 filePermissions: owner rw, group r, others none
chmod u+x script.shGives the owner execute permission
sudo commandRuns with admin rights — only when needed
sudo apt updateRefreshes the package list
sudo apt upgradeUpgrades installed packages
sudo apt install pkgInstalls a package
ps aux / topProcess list / live monitor (q to quit)
kill PIDAsks a process to stop by its ID
systemctl status sshService state: running or not, recent errors
sudo systemctl start / enable sshstart — run now; enable — at boot
journalctl -u sshEvent log of a service
ip aIP addresses of interfaces
ip routeRouting table and default gateway
ping -c 4 8.8.8.8Connectivity test: 4 requests
ss -tulpnWhich ports are open and who listens
ssh user@hostRemote login to another machine
./hello.shRuns a script from the current directory

Check yourself

Score: 0 of 0

Great! You got the material.

Was this page helpful?