All posts

Linux Basics: Why Every Tech Career Touches the Command Line

By Fola Oladipupo, Techera · · 7 min read

Linux basics for beginners start with one idea: most of the internet runs on Linux, and the main way people work with it is the command line. Websites, apps, databases and cloud services very often run on Linux servers. If you work in tech, sooner or later you will need to type commands into a terminal.

That can feel intimidating at first. A black screen with a blinking cursor gives you no buttons to click. But the basics are learnable in a few focused weeks, and a small set of commands covers most of what beginners need. This guide explains why Linux matters for different tech careers, the commands to learn first and how to practise safely, even on a Windows laptop.

What is Linux?

Linux is a free, open-source operating system kernel, first released by Linus Torvalds in 1991. Combined with other software, it forms complete operating systems called distributions, such as Ubuntu, Debian, Fedora and Red Hat Enterprise Linux.

You probably use Linux already without knowing it. Android is built on the Linux kernel, and a large share of web servers and cloud machines run Linux distributions.

Why does every tech career touch the command line?

Servers usually have no screen or mouse attached. Engineers connect to them remotely and manage them by typing commands. Even on your own computer, many developer tools are designed to be run from a terminal.

Here is how it shows up across roles:

  • Backend engineers deploy and debug applications on Linux servers, read logs and run tools from the terminal.
  • DevOps and SRE engineers live in the command line: configuring servers, writing scripts, managing containers and responding to incidents.
  • Security engineers use Linux for analysing systems, reviewing logs and running security tools.
  • Data analysts and ML engineers often run scripts, manage environments and work on remote machines.
  • QA engineers run automated test suites from the terminal and check logs to understand failures.
  • Frontend developers use the terminal to install packages, run development servers and use Git.
  • Technical support staff, especially at higher tiers, connect to servers to check logs and diagnose problems.

You do not need to become a Linux expert for every role. But being comfortable with the basics makes you faster, more independent and more credible in interviews. If you enjoy this kind of work, DevOps may suit you; read what a DevOps engineer does to find out more, or take the free TechDNA assessment to see how well DevOps fits your thinking style.

How can you practise Linux on a Windows laptop?

You do not need to replace Windows. Some safe options:

  • WSL (Windows Subsystem for Linux). Lets you run a Linux distribution like Ubuntu inside Windows 10 or 11. Microsoft's documentation explains how to install it.
  • A virtual machine. Free tools like VirtualBox let you run a full Linux system in a window.
  • An old laptop. Install Ubuntu or another beginner-friendly distribution on a spare machine.
  • Browser-based labs. Some learning sites, including TryHackMe's free tier, provide Linux machines you can use in the browser. These need a stable internet connection.

WSL or a virtual machine are good choices if data is expensive, because once installed, you can practise offline.

What are the basic Linux commands to learn first?

Open a terminal and try these. Text after # is a comment explaining the command; you do not need to type it.

Finding your way around

pwd                 # print the folder you are in
ls                  # list files in the current folder
ls -la              # list all files, including hidden ones, with details
cd Documents        # move into the Documents folder
cd ..               # move up one folder
cd ~                # go to your home folder

Working with files and folders

mkdir projects            # create a folder
touch notes.txt           # create an empty file
cp notes.txt backup.txt   # copy a file
mv backup.txt old.txt     # rename (or move) a file
rm old.txt                # delete a file

Be careful with rm. Files deleted this way do not go to a recycle bin.

Reading files

cat notes.txt              # print a whole file
less /var/log/syslog       # scroll through a long file (press q to quit)
head -n 20 notes.txt       # show the first 20 lines
tail -f app.log            # follow a log file as new lines are added

The exact log files available depend on your distribution, so /var/log/syslog may not exist on every system.

Searching

grep "error" app.log       # find lines containing "error"
find . -name "*.py"        # find Python files under the current folder

Permissions and administrator access

ls -l script.sh            # see who can read, write or run a file
chmod +x script.sh         # make a script executable
sudo apt update            # run a command as administrator (Debian/Ubuntu)

sudo gives a command full administrator power. Read what a command does before running it with sudo, especially commands copied from the internet.

Getting help

man ls                     # read the manual page for ls
ls --help                  # a shorter summary of options

What should you learn after the basics?

Once moving around and handling files feels natural, add these concepts gradually:

  1. Users, groups and permissions in more depth.
  2. Processes: seeing what is running with ps and top, and stopping programs with kill.
  3. Package management: installing software with tools like apt or dnf.
  4. Networking basics: checking connections with ping, curl and ssh.
  5. Pipes and redirection: combining commands with | and saving output with >.
  6. Shell scripting: writing simple Bash scripts to automate repeated tasks.

Learn these by doing small tasks, not by memorising lists. The commands stick when you use them for something real.

Small practice projects

  • Organise a messy folder of files using only the terminal.
  • Write a backup script that copies a folder into a dated backup folder.
  • Host a simple web page on a local web server inside WSL or a virtual machine.
  • Explore log files: use grep and tail to find errors in an application's logs.
  • Set up a development environment for a language you are learning, entirely from the command line.

Put your scripts on GitHub with a short README. Our guide to Git and GitHub for beginners shows how.

Where can you learn Linux for free?

  • Linux Journey, a beginner-friendly site that explains concepts step by step.
  • TryHackMe's free tier, which includes introductory Linux rooms.
  • Harvard CS50, which uses a terminal throughout the course.
  • roadmap.sh, especially the DevOps and Linux roadmaps, to see what to learn next.
  • TechLearnX, Techera's learning platform, has a free foundation course on Linux at techlearnx.techera.ng, alongside free courses on computing, programming, Git and DevOps.

Common mistakes beginners make with Linux

  • Running commands you do not understand, especially with sudo.
  • Trying to memorise everything. Look things up; professionals do it all the time.
  • Avoiding the terminal by always using graphical tools. Comfort only comes from practice.
  • Giving up after the first confusing error. Read the message slowly. It usually says what went wrong.
  • Practising on an important machine. Use a virtual machine or WSL so mistakes do not cost you real files.

Frequently asked questions

Do I need to learn Linux to get a tech job?

For many technical roles, basic Linux skills are expected or strongly helpful, especially in backend, DevOps, security and data engineering. For roles like product management, it is less critical. Either way, knowing the basics helps you work more independently.

Which Linux distribution should a beginner use?

Ubuntu is a popular, beginner-friendly choice with lots of online help, and it is commonly available in WSL and on cloud servers. Once you understand the basics, the skills transfer to other distributions.

Is the Linux command line the same as the Windows command prompt?

No. Windows Command Prompt and PowerShell use different commands and conventions. However, many developer tools behave similarly across systems, and WSL lets you use a real Linux command line on Windows.

How long does it take to learn basic Linux commands?

Navigating folders and handling files can become comfortable after a few weeks of regular practice. Deeper skills such as scripting and system administration take longer and grow with real use.

Linux matters in many tech roles, but some lean on it much more than others. Take the free TechDNA assessment to see which of nine roles suit how you think, from DevOps to data analysis.

Discover your TechDNA

7-minute AI assessment · 9 tech roles · One survival score

Start Free Assessment

Keep reading