The Linux Terminal for Beginners

Programming

The terminal looks intimidating, but it is simply a text interface to your computer. On Ubuntu, press Ctrl+Alt+T to open it. This guide covers the commands beginners use most often.

Navigating the filesystem

  • pwd — print current directory
  • ls -la — list files with details
  • cd Documents — change directory; cd .. goes up one level

Working with files

  • cp source dest — copy
  • mv old new — move or rename
  • rm file — delete (use rm -i for confirmation)
  • mkdir projects — create folder

Permissions and ownership

Use ls -l to see permissions. chmod +x script.sh makes a file executable; chown user:group file changes owner (with sudo).

Installing software

sudo apt update
sudo apt install htop

APT is Ubuntu's package manager. Prefer it over random download sites when possible.

Getting help

Append --help to commands or run man ls for manual pages. Practice in a test folder until commands feel natural — the terminal becomes faster than clicking through menus for many tasks.