How to Learn the Linux Command Line: A Beginner’s Roadmap

Linux runs most of the world’s servers, cloud platforms and containers. Whether you aim for IT support, DevOps, cloud engineering or cybersecurity, comfort with the Linux command line is one of the most valuable skills you can build. Here is a practical roadmap for beginners.

Step 1: get a Linux environment

  • Install a beginner-friendly distribution such as Ubuntu in a virtual machine.
  • On Windows, use the Windows Subsystem for Linux (WSL).
  • On macOS, the Terminal already gives you a Unix-like shell for most basics.
  • A small cloud server on a free tier is also a great playground.

Step 2: learn navigation and files

Start with the commands you will use every day: pwd, ls, cd, mkdir, cp, mv, rm, cat, less and nano. Understand absolute vs relative paths and the Linux directory structure (/home, /etc, /var).

Step 3: permissions and users

Learn how read, write and execute permissions work, how to read ls -l output, and how to use chmod, chown and sudo. Permissions are behind many real-world problems and interview questions.

Step 4: text processing

Master grep, find, sort, uniq, wc, head, tail, pipes (|) and redirection (>, >>). Practise by searching log files.

Step 5: processes, packages and services

  • Processes: ps, top, kill.
  • Packages: apt or dnf.
  • Services: systemctl and journalctl.

Step 6: networking basics

Learn ip, ping, curl, ssh and scp. Connecting to a remote server with SSH keys is a core skill for cloud and DevOps work.

Step 7: Bash scripting

Write small scripts with variables, loops and conditions to automate backups or clean up files. Combine this with Git to version your scripts.

A 6-week plan

  1. Week 1: setup and navigation.
  2. Week 2: files, editors and permissions.
  3. Week 3: text processing and pipes.
  4. Week 4: processes, packages, services.
  5. Week 5: networking and SSH.
  6. Week 6: Bash scripting project.

Certifications

Once comfortable, entry-level certifications such as CompTIA Linux+ or the Linux Foundation’s LFCS can validate your skills for Canadian employers. They pair well with cloud certifications.

Where it leads

Linux skills open doors to IT support, system administration, DevOps and cloud roles. Explore our career guides to see which path fits you.

Sponsored · Our featured partnerCode Labs Academy – Launch Your Tech Career, Change Your Life