Skip to main content

15 Basic Linux Commands Every IT Student Should Learn in 2026

Updated 27 min readMarkdown
15 Basic Linux Commands Every IT Student Should Learn in 2026

A Linux web server suddenly stops responding. The application was working earlier, but now users cannot access the website. The IT support team needs to determine whether the problem involves storage, a missing process, incorrect permissions, or network connectivity.

Where should the investigation begin?

An experienced administrator might inspect system logs, check running processes, examine disk usage, and verify the network configuration. Most of these tasks can be performed directly from a Linux terminal.

For beginners, the challenge is knowing which commands to use and understanding what their output means.

Learning 15 basic Linux commands can provide a practical foundation for navigating the filesystem, managing files, understanding permissions, searching logs, and troubleshooting common system problems.

Linux command-line knowledge remains relevant in 2026 because Linux is widely used across cloud computing, web hosting, cybersecurity, networking, software development, and DevOps environments.

You do not need to memorize hundreds of commands to start learning Linux. A smaller collection of essential commands can help you understand how the operating system works and build confidence through regular practice.

This guide explains 15 Linux commands every IT student should know, including their syntax, examples, common options, and practical applications.

You'll also complete a hands-on Linux troubleshooting exercise that combines several commands into one realistic workflow.

Why Should IT Students Learn Linux Commands?

Linux is an operating system used in many technical environments, including servers, virtual machines, containers, development systems, and network infrastructure.

Although graphical interfaces are available for many tasks, the terminal provides a direct and repeatable way to interact with the operating system.

For example, a cloud engineer may need to inspect the IP configuration of a Linux virtual machine, while a security analyst may search an authentication log for unusual activity.

A system administrator might check available disk space or determine whether a service process is running.

These activities often rely on command-line tools.

Where Linux Command Skills Are Useful

IT Field Practical Application
System Administration Managing files, permissions, processes, and storage
Cloud Computing Inspecting Linux-based cloud servers
Cybersecurity Reviewing logs and system configurations
Networking Examining interfaces and routing information
DevOps Supporting automation and deployment workflows
IT Support Investigating operating system problems
Software Development Managing project files and environments

The commands in this guide are commonly available on Linux distributions such as Ubuntu, Debian, Fedora, and Red Hat-based systems.

However, some utilities and supported options may differ between distributions or minimal container environments.

The examples assume a Bash-compatible Linux terminal.

Understanding Basic Linux Command Syntax

Before learning individual commands, it helps to understand how Linux terminal instructions are written.

A typical command follows this pattern:

command [options] [arguments]

For example:

ls -l /home

Here:

  • ls identifies the command.
  • -l is an option requesting a detailed listing.
  • /home identifies the directory being inspected.

Options modify command behavior, while arguments specify the files, directories, or values involved.

Absolute and Relative Paths

An absolute path starts at the filesystem root.

For example:

/home/student/Documents

A relative path is interpreted from the current working directory.

For example:

Documents/report.txt

The character ~ commonly represents the current user's home directory in Bash.

Linux filenames are generally case-sensitive.

Therefore, Report.txt and report.txt are different names.

Understanding these rules helps prevent common file-management mistakes.

1. pwd — Display Your Current Directory

The pwd command means print working directory.

It displays your current location in the filesystem.

Run:

pwd

Example output:

/home/student

This indicates that the current terminal session is working inside the student's home directory.

When Is pwd Useful?

Suppose you're working with several nested project directories.

Before copying or deleting files, you should confirm which directory is active.

Running pwd helps ensure that relative paths are interpreted from the location you expect.

Practical tip: Use pwd before file operations when you're unsure of your current directory.

2. ls — List Files and Directories

The ls command displays directory contents.

Without arguments, it normally lists visible files and directories in the current location.

ls

For a detailed listing:

ls -l

To include hidden entries:

ls -a

A frequently useful combination is:

ls -lah

Common ls Options

Option Purpose
-l Display detailed information
-a Include hidden entries
-h Display readable file sizes with suitable listing formats
-t Sort by modification time
-R List directories recursively

A detailed listing can show file permissions, ownership, sizes, and modification times.

Practical Example

A system administrator wants to check whether a configuration file exists and inspect its permissions.

They can navigate to the relevant authorized directory and use:

ls -lah

This provides a quick overview of its contents.

Practical tip: Use ls -lah when inspecting unfamiliar project folders, especially when hidden configuration files may be present.

3. cd — Change Directories

The cd command changes the current working directory.

In Bash, cd is a shell built-in rather than a separate external executable.

To enter a directory:

cd ~/Documents

To move one level upward:

cd ..

To return to your home directory:

cd

To switch back to the previous working directory:

cd -

Understanding Directory Navigation

Consider this example structure:

/home/student/
├── Documents/
├── Downloads/
└── projects/
    └── website/

From /home/student, you can enter the website directory using:

cd projects/website

Verify the location:

pwd

Practical tip: Remember that directory names are case-sensitive. Documents and documents may refer to different paths.

4. mkdir — Create New Directories

The mkdir command creates directories.

It's useful when organizing coursework, preparing project folders, or creating a workspace for an administration exercise.

Create a directory:

mkdir linux-practice

Create nested directories:

mkdir -p projects/linux/labs

The -p option creates missing parent directories and avoids an error solely because a specified directory already exists.

Practical Example

Suppose you're organizing your Linux coursework.

You might create:

mkdir -p ~/linux-study/notes
mkdir -p ~/linux-study/labs

Your home directory now contains separate locations for learning material and practical exercises.

Practical tip: Directory creation doesn't automatically grant every user access. Actual access depends on permissions and other security controls.

5. cp — Copy Files and Directories

The cp command copies files or directories.

It helps create working copies, organize information, and preserve files before making changes.

Copy a file:

cp notes.txt notes-backup.txt

Copy a file into another directory:

cp notes.txt ~/Documents/

Copy a directory recursively:

cp -r project project-backup

Avoid Accidentally Overwriting Files

On GNU systems, the -i option requests confirmation before overwriting an existing destination.

cp -i notes.txt notes-backup.txt

This can be helpful when practicing file operations.

Practical Example

Before editing an important configuration file, an administrator may create a copy in an authorized backup location.

However, a local copy does not replace a complete backup strategy.

Practical tip: Check the destination before copying files, especially when existing files could be overwritten.

6. mv — Move or Rename Files

The mv command moves or renames files and directories.

Unlike cp, it does not normally leave the original file at its previous location.

Rename a file:

mv report-draft.txt report-final.txt

Move the file:

mv report-final.txt ~/Documents/

Request confirmation before overwriting an existing destination:

mv -i report-draft.txt report-final.txt

cp vs. mv

Command Main Behavior Example
cp Copies data to another location Duplicate a configuration file
mv Moves or renames the original Rename a completed report

Practical Example

A developer wants to rename a project configuration file after reviewing it.

The mv command allows the file to be renamed without creating an unnecessary second copy.

Practical tip: Be careful when moving files across directories or filesystems. The destination and overwrite behavior should be verified first.

7. rm — Remove Files and Directories

The rm command removes files and, with additional options, directories.

It is useful for cleaning temporary project data, but it requires care.

Remove a file:

rm temporary.txt

Request confirmation:

rm -i temporary.txt

Remove a directory and its contents recursively:

rm -r old-project

Why rm Requires Extra Attention

The rm command does not ordinarily move files into a desktop recycle bin.

Deleted data may be difficult or impossible to recover.

This is particularly important when working on servers or production systems.

Safer Practices

Before removing files, inspect the target directory and confirm the complete path.

Use rm -i when practicing with unfamiliar filenames.

Avoid using broad recursive deletion operations with elevated permissions unless you understand their effects.

Practical tip: Never use rm against an unfamiliar directory merely because a tutorial suggests cleaning up files.

8. cat — Display and Combine Text Files

The cat command displays file contents and can concatenate text from multiple files.

It's useful for reviewing short configuration files, notes, and log entries.

Display a file:

cat notes.txt

Display two files sequentially:

cat introduction.txt summary.txt

The contents are written to the terminal in the supplied order.

Practical Example

An IT support technician wants to review a small application log.

They can use:

cat application.log

For short files, this provides a quick way to inspect the information.

However, very large logs may produce too much terminal output.

Interactive tools such as less are usually more suitable for browsing long files.

Practical tip: Use cat for small files and simple output inspection rather than displaying very large logs all at once.

9. grep — Search for Text Inside Files

The grep command searches text for lines matching a specified pattern.

It's especially useful for log analysis and troubleshooting.

Suppose a log contains hundreds of messages, but you only want to find entries containing ERROR.

Run:

grep "ERROR" application.log

To ignore differences in letter case:

grep -i "error" application.log

To display matching line numbers:

grep -n "ERROR" application.log

To search through files in a directory recursively:

grep -r "ERROR" ./logs

Common grep Options

Option Purpose
-i Ignore letter case
-n Display matching line numbers
-r Search recursively
-v Select nonmatching lines
-c Count matching lines

Practical Example

A web application reports intermittent failures.

The administrator searches its log:

grep -n "ERROR" application.log

The output identifies relevant messages and their line numbers.

However, an error message doesn't automatically reveal the root cause.

The engineer still needs to inspect surrounding events and related system information.

Practical tip: Learning grep is particularly valuable for IT support, cybersecurity, DevOps, and Linux administration.

10. find — Locate Files and Directories

The find command searches the filesystem for entries matching specified criteria.

It can locate files by name, type, and other supported properties.

Find a file called report.txt:

find . -name "report.txt"

Find regular files ending in .log:

find . -type f -name "*.log"

Find directories named backup:

find . -type d -name "backup"

The . represents the current directory.

The -type f condition matches regular files, while -type d matches directories.

Why Should You Quote Wildcards?

In the command:

find . -name "*.log"

the quotation marks prevent the shell from expanding *.log before find receives it.

This makes the search behave as intended.

grep vs. find

Requirement Command
Locate a file by name find
Find all .log files find
Search for an error message inside a file grep
Search a log directory for matching text grep

Practical tip: find locates filesystem objects, while grep searches text. Understanding this difference makes troubleshooting faster.

11. chmod — Change File Permissions

Linux uses permissions to control access to files and directories.

The chmod command changes permission bits.

For example:

chmod 600 private-notes.txt

This sets permission bits allowing the owner to read and write while granting no permission bits to the group or others.

Another example is:

chmod 755 script.sh

This allows the owner to read, write, and execute, while the group and others receive read and execute permission bits.

Understanding Numeric Permissions

Value Permission
4 Read
2 Write
1 Execute
7 Read, write, execute
6 Read, write
5 Read, execute

For a mode such as 755, the three digits describe owner, group, and other permission bits.

Practical Example

A private file contains information that should not be accessible through ordinary group or other permission bits.

An administrator may set:

chmod 600 private-notes.txt

Then inspect the result:

ls -l private-notes.txt

On a typical Linux filesystem, the displayed permission bits begin with:

-rw-------

Security Consideration

Permissions also depend on ownership, ACLs, directory access, and other system controls.

Avoid using chmod 777 as a general solution to permission errors.

Practical tip: Investigate the actual access requirement before making permissions more permissive.

12. ps — Inspect Running Processes

A process is a running instance of a program.

The ps command displays process information.

Run:

ps

For a broader process listing:

ps -ef

To inspect processes associated with your current user:

ps -u "$USER"

Understanding Process Information

Field Meaning
PID Process identifier
PPID Parent process identifier
USER Process owner
CMD Command associated with the process
TIME Accumulated CPU time in relevant formats

Practical Example

A background application stops responding.

The administrator can inspect the process list to determine whether the expected application is running.

However, an existing process does not guarantee that an application is healthy.

The process may still be stuck, misconfigured, or unable to reach a dependency.

Practical tip: ps provides a snapshot. Interactive tools such as top are useful for observing process behavior over time.

13. df — Check Disk Space Usage

The df command displays filesystem capacity and usage.

This is important because applications may fail when their filesystems run out of available storage.

Run:

df -h

The -h option displays sizes using readable units.

To inspect the filesystem containing your current directory:

df -h .

Example Disk Usage

Metric Illustrative Value
Total size 100G
Used 72G
Available 28G
Use% 72%

Actual results depend on filesystem configuration and available capacity.

Practical Example

A Linux web application cannot write new log entries.

The administrator checks:

df -h

If the relevant filesystem is nearly full, insufficient available space may be contributing to the problem.

df vs. du

The df command reports filesystem-level space usage.

It does not directly measure the storage consumed by an individual directory.

The du utility is better suited to examining directory-level usage.

Practical tip: Check disk space when applications cannot write files, generate reports, or create temporary data.

14. ip — Inspect Network Configuration

The ip command is part of the iproute2 utilities.

It is commonly used to inspect and manage network interfaces, IP addresses, and routing information on Linux.

Show configured IP addresses:

ip address show

A shorter version is:

ip addr

Show routes:

ip route show

Inspect network interfaces:

ip link show

What Can You Learn?

These commands can reveal which interfaces exist, which IP addresses are assigned, and what routing information is configured.

Practical Example

A Linux server cannot reach another system.

The engineer checks whether the server has an appropriate network address:

ip addr

Then checks routing:

ip route

If the expected route is missing, the problem may involve network configuration.

However, valid addressing and routing do not guarantee that a remote service is reachable.

Firewalls, DNS, authentication, and service availability may also need investigation.

Practical tip: The inspection commands shown here are read-only. Other ip operations can modify live networking and should be used only in authorized environments.

15. sudo — Run Authorized Administrative Commands

The sudo command allows an authorized user to execute a command under another identity, commonly the root account, according to the system's configured policy.

This supports privilege separation in Linux administration.

Example: Inspect Sudo Permissions

sudo -l

Depending on the system, this may request authentication or display which commands the account is permitted to run.

Example: Update Package Metadata

On an authorized Ubuntu or Debian-based system:

sudo apt update

This refreshes package repository information.

It does not automatically install all available package upgrades.

Why Does sudo Matter?

Certain administrative actions involve protected system files, services, or settings.

Ordinary users should not automatically receive unrestricted access to those resources.

Using sudo helps enforce a permission-based administrative process.

Important Safety Practices

Use elevated permissions only when necessary.

Review unfamiliar commands before executing them.

Do not run untrusted scripts with administrative privileges.

A permission error is not always a reason to use sudo; the underlying ownership or access configuration may need to be corrected.

Practical tip: Learn what a command does before running it with elevated privileges.

Quick Reference: All 15 Basic Linux Commands

No. Command Main Purpose Example
1 pwd Display working directory pwd
2 ls List files ls -lah
3 cd Change directory cd ~/Documents
4 mkdir Create directories mkdir practice
5 cp Copy files cp file.txt backup.txt
6 mv Move or rename files mv old.txt new.txt
7 rm Remove files rm -i old.txt
8 cat Display file contents cat notes.txt
9 grep Search text grep -n "ERROR" app.log
10 find Locate files find . -name "*.log"
11 chmod Change permissions chmod 600 file.txt
12 ps Inspect processes ps -ef
13 df Inspect disk usage df -h
14 ip Inspect networking ip addr
15 sudo Run permitted administrative operations sudo -l

The best way to remember these commands is to use them together while solving actual problems.

Hands-On Linux Lab: Investigate a Simulated Application Error

Now let's apply several commands in one practical exercise.

Imagine you're supporting a Linux application that reports database connection failures.

You'll create a small workspace, generate a fictional log, identify error messages, preserve a backup, inspect permissions, and check basic system information.

Prerequisites

You'll need a Linux environment, Bash-compatible terminal, and permission to create files in your home directory.

The exercise doesn't require administrator access.

All practice files are created inside a dedicated directory.

Step 1: Create a Workspace

Run:

mkdir -p ~/linux-command-lab/reports
mkdir -p ~/linux-command-lab/backup
cd ~/linux-command-lab
pwd

The expected working directory ends with:

/linux-command-lab

Inspect the workspace:

ls -lah

You should see the reports and backup directories.

Step 2: Generate a Sample Application Log

Use Bash's printf utility and output redirection to create the fictional log:

printf 'INFO: application started\nERROR: database unavailable\nINFO: retrying\nERROR: connection timed out\n' > reports/app.log

Inspect the file:

cat reports/app.log

Expected content:

INFO: application started
ERROR: database unavailable
INFO: retrying
ERROR: connection timed out

These records are simulated and do not describe a real application incident.

Step 3: Search for Errors

Run:

grep -n "ERROR" reports/app.log

Expected output:

2:ERROR: database unavailable
4:ERROR: connection timed out

The line numbers identify where the matching messages appear in the file.

In a real investigation, the engineer would need to inspect surrounding events and determine whether the database connection problem relates to networking, authentication, or service availability.

Step 4: Create a Backup

Copy the file:

cp -i reports/app.log backup/app.log

Rename the copy:

mv -i backup/app.log backup/app-backup.log

Now locate the log files:

find . -type f -name "*.log"

Expected output:

./reports/app.log
./backup/app-backup.log

This confirms that the original and copied files exist.

Step 5: Restrict File Permissions

Set private permission bits on the backup:

chmod 600 backup/app-backup.log

Verify:

ls -l backup/

On a typical Linux filesystem, the permission bits should appear as:

-rw-------

This demonstrates a basic file security operation.

Step 6: Inspect System Processes

Run:

ps -ef

Examine the process listing.

You may see the current shell and other processes associated with your environment.

The exact output depends on the operating system and active applications.

Step 7: Inspect Filesystem Capacity

Run:

df -h .

This checks the filesystem containing the current directory.

Review the capacity and available space.

In a real application outage, low disk capacity might explain why an application cannot create logs or temporary files.

Step 8: Inspect Networking

Run:

ip addr

Then:

ip route

Inspect the available network interfaces and routing information.

The output depends on the local environment.

Minimal containers may not include the ip utility by default.

Step 9: Remove the Practice Files Safely

Confirm your location:

pwd

Ensure you're inside the intended practice directory.

Then remove the two lab files:

rm -i backup/app-backup.log
rm -i reports/app.log

Read the confirmation prompts carefully.

You can keep the empty workspace directories for future learning.

What Did You Learn?

Exercise Linux Skills
Create workspace mkdir, cd, pwd
Inspect directories ls
Read log messages cat
Find errors grep
Copy and rename cp, mv
Locate files find
Restrict permissions chmod
Inspect processes ps
Check storage df
Inspect networking ip
Clean up rm

This exercise demonstrates how individual commands become more useful when they form part of a troubleshooting workflow.

The file creation, searching, copying, renaming, permission modification, and file-finding operations were checked in a local Linux test environment. System-specific outputs may differ.

Real-World Scenario: Troubleshooting an Unavailable Linux Website

Consider a company running a web application on a Linux server.

Employees report that the website is unavailable.

A beginner might try restarting the server immediately.

A more systematic approach is to gather evidence before making changes.

Step 1: Check Available Storage

df -h

If the filesystem used by the application is full, storage may be contributing to the failure.

Step 2: Review Running Processes

ps -ef

Determine whether the expected application or server process is present.

An absent process may indicate that the software failed to start or terminated unexpectedly.

Step 3: Search Application Logs

If you know the correct log file path:

grep -i "error" application.log

Replace the example filename with the actual authorized log path.

Review related events rather than assuming the first error message is the cause.

Step 4: Inspect Network Configuration

ip addr
ip route

Check whether the server has the expected IP configuration and route information.

Step 5: Identify the Next Investigation

Suppose disk space is available, the network interface looks correctly configured, and the expected server process is missing.

That evidence suggests examining the application or service startup process next.

On a system using systemd, an authorized engineer might inspect the relevant service status and logs.

Troubleshooting Summary

Symptom Useful Command What It Helps Check
Application cannot write files df -h Filesystem capacity
Expected program seems absent ps -ef Running processes
Log contains failures grep Matching error messages
Cannot locate a log file find File location
Server connectivity problem ip addr, ip route Addressing and routing
Permission denied ls -l Basic ownership and permission information

These commands do not resolve every Linux problem.

However, they provide a useful starting point for identifying the area that needs further investigation.

Linux Command Best Practices for Beginners

Understanding command syntax is important, but safe operational habits are equally valuable.

Verify Your Working Directory

Run pwd before executing commands that use relative paths.

This helps prevent operations in the wrong location.

Check Before Deleting

Use appropriate file listings and review target paths before removing files.

Do not assume a deletion can easily be reversed.

Avoid Unnecessary Administrative Privileges

Use sudo only when the operation requires it and your account is authorized.

Elevated permissions can increase the consequences of mistakes.

Understand Permissions

Do not apply broad access settings merely to eliminate a permission error.

Examine ownership and the actual access requirement first.

Learn How to Read Documentation

The Linux terminal provides access to local command documentation where the relevant tools are installed.

For example:

man ls

Or:

ls --help

Not every command supports identical help options, and shell built-ins may require Bash's built-in help system.

For example:

help cd

Common Beginner Mistakes

Mistake Why It Matters Better Approach
Working in the wrong directory Operations affect unintended files Check pwd
Ignoring case sensitivity Commands or paths fail Verify filenames
Deleting without checking Can cause data loss Use rm -i
Applying chmod 777 Grants excessive permissions Use appropriate access settings
Using sudo unnecessarily Increases risk Apply least privilege
Confusing grep and find Produces incorrect searches Understand each tool's purpose
Assuming df measures folders Leads to incorrect storage analysis Learn filesystem vs. directory usage

Four-Week Linux Command Learning Roadmap

A structured learning plan can help beginners practice consistently.

Week Main Focus Commands
Week 1 Navigation pwd, ls, cd, mkdir
Week 2 File Management cp, mv, rm, cat
Week 3 Searching and Security grep, find, chmod
Week 4 System Inspection ps, df, ip, sudo

Suggested Daily Practice

A 30-minute daily session can include 10 minutes reviewing commands, 15 minutes completing an exercise, and five minutes recording mistakes or useful syntax.

By the end of four weeks, aim to work comfortably with directories, manage practice files, search logs, inspect permissions, and review basic system information.

The schedule is an introductory learning structure, not a guarantee of professional Linux administration proficiency.

How Linux Command Skills Support IT Careers

Basic Linux knowledge is relevant to several technical roles.

Career Path How Linux Commands Help
IT Support Technician Diagnose basic system problems
Linux Administrator Inspect system resources and configuration
Cloud Engineer Troubleshoot Linux workloads
Cybersecurity Analyst Review logs and system information
DevOps Engineer Support automation and deployment workflows
Network Engineer Inspect interfaces and network paths
Software Developer Manage project files and tools

These 15 commands are a starting point.

Professionals working with Linux also benefit from learning shell scripting, package management, SSH, service management, log analysis, and container fundamentals.

Conclusion: Learn Linux by Solving Practical Problems

Learning Linux commands is one of the most useful ways for IT students to understand how operating systems work.

Commands such as pwd, ls, and cd support filesystem navigation.

Tools such as cp, mv, rm, and cat help manage information, while grep and find make it easier to locate files and investigate logs.

The chmod command introduces permission management, and commands such as ps, df, and ip support basic system inspection.

Finally, sudo introduces the importance of administrative privileges and controlled access.

The practical lab demonstrates how these commands can work together during a simple troubleshooting investigation.

Instead of learning each command as an isolated definition, beginners should practice using them to solve realistic problems.

The real value of Linux command-line knowledge is not memorizing commands. It's understanding what each tool reveals about the system and knowing when to use it.

Start by practicing a few commands every day. Create a safe learning workspace, inspect files, search simulated logs, and document what you learn.

Over time, these habits will provide a foundation for more advanced work in Linux administration, cloud engineering, cybersecurity, networking, and DevOps.

Frequently Asked Questions

What Are the Most Important Linux Commands for Beginners?

Some of the most useful commands include pwd, ls, cd, mkdir, cp, mv, rm, cat, grep, find, chmod, ps, df, ip, and sudo. Together, they support everyday navigation, file handling, searching, permissions, and basic system inspection.

Do IT Students Need to Learn Linux Commands?

Linux command-line knowledge is valuable for students interested in system administration, cloud computing, cybersecurity, software development, networking, and DevOps.

What Is the Difference Between grep and find?

The grep command searches text for matching patterns, while find searches filesystem locations for matching files and directories.

Can I Learn Linux Without Programming Experience?

Yes. Basic Linux command-line tasks do not require programming knowledge. Beginners can start with navigation, file management, and system inspection before progressing to shell scripting and automation.

How Long Does It Take to Learn Basic Linux Commands?

Many beginners can become familiar with common commands after several weeks of consistent practice. Developing confidence in real troubleshooting and Linux administration requires additional hands-on experience.

Official Documentation and Further Reading

The following resources are official project documentation:

About the author

  • Aidan Cortes shares IT networking insights at Cert Empire, helping learners develop skills in Linux, Cisco, and network automation. He simplifies technical concepts and supports professionals preparing for certifications and real-world networking challenges. Email: aidan@certempire.com

No comments yet. Be the first to comment.

More from this blog