JavaScript seems to be disabled in your browser.

You must have JavaScript enabled in your browser to utilize the functionality of this website. Click here for instructions on enabling javascript in your browser.

Essential Linux Commands List for Desktop Users and Beginners

Mastering the command line makes your Linux desktop experience powerful and efficient, this can be new to users coming from Windows. Here's a collection of the most useful commands to get you started.

Downloadable PDF Cheat Sheet

Want a quick-reference tutorial guide of what is here? Download a printable Linux Commands Cheat Sheet PDF at the following link: https://thelinuxshop.co.uk/LinuxCommandsCheatSheet.pdf

Cheat Sheet with Examples

File and Directory Management

  • ls - List directory contents
  • cd - Change directory (e.g., cd Documents)
  • pwd - Print the current working directory path
  • mkdir - Create a new directory (e.g., mkdir Photos)
  • rmdir - Remove an empty directory (e.g., rmdir old_folder)
  • touch - Create an empty file (e.g., touch notes.txt)
  • cp - Copy files (e.g., cp report.doc backup_report.doc)
  • mv - Move/rename files (e.g., mv old_notes.txt Notes/)
  • rm - Remove files and directories (e.g., rm junk.txt)

Text Manipulation

  • cat - Display file contents (e.g., cat shopping_list.txt)
  • less - View file contents with scrolling (e.g., less long_document.txt)
  • head - Display the first few lines of a file (e.g., head top_lines.txt)
  • tail - Display the last few lines of a file (e.g., tail updates.log)
  • grep - Search for text patterns in files (e.g., grep "error" system.log)
  • nano - Simple command-line text editor (e.g., nano mynotes.txt)

System Information

  • uname -a - Print detailed system information
  • whoami - Show the current username
  • df -h - Display disk space usage (human-readable)
  • free -h - Show memory (RAM) usage (human-readable)
  • date - Show the current date and time
  • cal - Display a calendar of the current month

Process Management

  • ps - List running processes
  • top - Show real-time view of running processes
  • kill - Send a signal to a process (e.g., kill -9 1234)

Permissions

  • chmod - Change file/directory permissions (e.g., chmod 755 script.sh)
  • chown - Change file/directory ownership (e.g., chown newuser:newgroup file.txt)

Networking

  • ping - Check connectivity to a host (e.g., ping google.com)
  • ifconfig - View and configure network interfaces
  • wget - Download files from the internet (e.g., wget https://example.com/image.jpg)

Finding Things

  • find - Search for files based on various criteria (e.g., find . -name 'report*')
  • locate - Quickly find files by name (might need to update the locate database first)

Compression and Archiving

  • tar - Create and extract archives (e.g., tar -cvzf backup.tar.gz Documents)
  • gzip - Compress files (e.g., gzip bigfile.txt)
  • gunzip - Decompress files (e.g., gunzip bigfile.txt.gz)

If you are getting started with Linux and want a physical copy of our Linux Starter Pack, here at TheLinuxShop we have been a reliable source to buy Linux on DVD and USB for over 20 years. We often have special offers and bundles on Linux Packs.

Buy a Linux Starter Pack



Distributors
Debian Pack
Debian Pack
£34.95
£24.99