23+ Basic Linux Commands for Every User

Learn 23+ basic Linux commands with easy examples. This guide covers important Linux commands, useful operating system commands, and daily Linux command usage for beginners.

28 Jan 2026 · 7 min read · Brillica Services
bacis-linux-commands-for-every-user
28 Jan 2026

Linux is one of the most popular operating systems in the world. It is used in servers, cloud platforms, DevOps tools, cybersecurity, and even mobile devices. If you want to work in IT, cloud computing, or DevOps, learning Linux commands is not optional. It is a basic skill.


In this guide, you will learn basic Linux commands that every user should know. These Linux basic commands help you work faster, manage files, control the system, and understand how Linux works.


What Are Linux Commands?


Linux commands are instructions given to the Linux operating system using the terminal. These commands tell the system what to do, like creating files, deleting folders, checking memory, or managing users.


In simple words, a Linux command is a way to talk to the operating system.


Why Learning Basic Linux Commands Is Important


Here are some reasons why basic commands in Linux are important:

  • Linux is widely used in servers and cloud systems
  • DevOps tools depend heavily on Linux
  • Most automation scripts run on Linux
  • Many IT interviews ask Linux command questions
  • Linux commands save time and increase productivity


If you understand important Linux commands, you can work confidently with any Linux-based system.


23+ Basic Linux Commands with Examples


Below is a basic Linux commands list that every beginner should learn.


1. pwd

Shows your current location in the system.

Example:

pwd

Use: Helps you know where you are working.


2. ls

Lists files and folders in a directory.

Example:

ls

Useful options:

ls -l for detailed view

ls -a to show hidden files


3. cd

Used to change directory.

Example:

cd Documents

Use: Move from one folder to another.


4. mkdir

Creates a new folder.

Example:

mkdir testfolder

Use: Organize files properly.


5. rmdir

Deletes an empty folder.

Example:

rmdir testfolder


6. touch

Creates an empty file.

Example:

touch file.txt


7. rm

Deletes files or folders.

Example:

rm file.txt

rm -r foldername

Be careful while using this command.


8. cp

Copies files or folders.

Example:

cp file.txt backup.txt


9. mv

Moves or renames files.

Example:

mv oldname.txt newname.txt


10. cat

Displays file content.

Example:

cat file.txt

Also used to create files.


11. nano

Simple text editor in Linux.

Example:

nano file.txt

Very useful for beginners.


12. vi or vim

Advanced text editor.

Example:

vi file.txt

Mostly used by professionals.


13. head

Shows the first lines of a file.

Example:

head file.txt


14. tail

Shows the last lines of a file.

Example:

tail file.txt

Very useful for logs.


15. chmod

Changes file permissions.

Example:

chmod 755 file.sh

This is one of the most important Linux commands.


16. chown

Changes file owner.

Example:

chown user file.txt


17. df

Shows disk space usage.

Example:

df -h


18. du

Shows folder size.

Example:

du -sh foldername


19. top

Displays running processes.

Example:

top


20. ps

Shows active processes.

Example:

ps aux


21. uname

Displays system information.

Example:

uname -a


22. whoami

Shows current logged-in user.

Example:

whoami


23. history

Shows previously used commands.

Example:

history


24. clear

Clears the terminal screen.

Example:

clear


25. grep

Searches text inside files.

Example:

grep "error" logfile.txt

Use: Find errors or specific words quickly.


26. find

Searches files and folders in the system.

Example:

find /home -name file.txt

Use: Locate files when you do not know the exact path.


27. wget

Downloads files from the internet.

Example:

wget https://example.com/file.zip

Use: Common in servers without browsers.


28. curl

Transfers data from or to a server.

Example:

curl https://example.com

Use: Test APIs and check server responses.


29. tar

Compresses and extracts files.

Example:

tar -cvf backup.tar foldername

tar -xvf backup.tar

Use: Backup and file transfer.


30. zip

Compresses files.

Example:

zip data.zip file.txt


31. unzip

Extracts zip files.

Example:

unzip data.zip


32. ping

Checks network connectivity.

Example:

ping google.com

Use: Test internet or server connection.


33. ifconfig

Shows network details.

Example:

ifconfig

Note: In new systems, ip a is used instead.


34. ip

Modern network command.

Example:

ip a

Use: View IP address and network interfaces.


35. netstat

Shows network connections.

Example:

netstat -tuln

Use: Check open ports.


36. ss

Replaces netstat in modern Linux.

Example:

ss -tuln


37. uptime

Shows how long the system is running.

Example:

uptime

Use: Monitor server stability.


38. free

Displays memory usage.

Example:

free -h

Use: Check RAM usage.


39. shutdown

Shuts down the system.

Example:

shutdown now

Use with caution.


40. reboot

Restarts the system.

Example:

reboot


41. passwd

Changes user password.

Example:

passwd


42. useradd

Creates a new user.

Example:

useradd username


43. userdel

Deletes a user.

Example:

userdel username


44. groups

Shows user groups.

Example:

groups


45. sudo

Runs commands with admin permission.

Example:

sudo apt update

Very important command in Linux.


46. apt

Package manager for Ubuntu systems.

Example:

apt install nginx


47. yum

Package manager for CentOS systems.

Example:

yum install httpd


48. systemctl

Manages system services.

Example:

systemctl start nginx

systemctl status nginx

Used in almost every server.


49. service

Older service management command.

Example:

service nginx start


50. crontab

Schedules tasks.

Example:

crontab -e

Used for automation jobs.


Useful Linux Commands for Daily Work


These useful Linux commands are commonly used in real projects:

  • grep – search text inside files
  • find – locate files
  • wget – download files
  • curl – test APIs
  • tar – compress files


They are very helpful in automation and DevOps tasks.


Linux Commands and Operating System Basics


Linux commands are also called operating system commands. They help you:

  • Manage files and users
  • Monitor system performance
  • Control permissions
  • Automate tasks
  • Work with servers


Learning commands in Linux gives you full control of the system.


Linux Commands for Beginners: Best Practice


If you are new, follow these tips:

  • Practice commands daily
  • Use help option like command --help
  • Learn command options slowly
  • Avoid copying commands blindly
  • Understand what a command does before running it


This habit builds strong fundamentals.


Linux Commands with Examples Help You Learn Faster


When you learn Linux commands with examples, you understand real usage. Examples make learning easy and practical, especially for beginners.


FAQs 


What are basic commands in Linux?

Basic commands in Linux are simple instructions used to perform daily tasks like creating files, listing folders, checking system status, and managing users. Examples include ls, cd, mkdir, rm, and pwd.


What does chmod mean in Linux?

chmod stands for change mode. It is used to change file permissions in Linux. With chmod, you control who can read, write, or execute a file.


Why are Linux commands important for IT jobs?

Linux commands are important because most servers, cloud platforms, and DevOps tools run on Linux. Employers expect basic Linux knowledge.


How many Linux commands should a beginner learn?

A beginner should start with 20 to 30 basic Linux commands. This is enough to understand the system and perform daily tasks.


Are Linux commands same for all distributions?

Yes, most basic Linux commands work the same on Ubuntu, CentOS, Debian, and other Linux distributions.


Can I learn Linux commands without coding?

Yes. Linux commands do not require coding knowledge. They are simple instructions typed in the terminal.


Are Linux commands used in cloud and DevOps?

Yes. Linux commands are heavily used in cloud computing, DevOps, automation, and server management.


Final Thoughts


Learning basic Linux commands is the first step to working with servers, cloud platforms, and DevOps tools. These important Linux commands build a strong base and make your IT journey easier.


Start with this Linux commands list, practice daily, and slowly move to advanced commands. Linux becomes simple when you understand how to talk to the operating system.


If you master these basic commands in Linux, you are already ahead of many beginners.

Want to learn this with mentors, projects and placement support? See the Agentic AI program →

Not sure which course fits you?

Book a free 20-minute call with a Brillica career expert. Get a personalised roadmap, batch dates and an EMI plan.

WhatsApp us