Linux is a powerful operating system that is widely used in various computing environments,
from servers to desktop machines. Understanding basic Linux commands is essential for
effectively navigating and managing the system. This guide covers some of the fundamental
commands that every Linux user should know.
Table of Contents
1. Basic Navigation
o pwd
o ls
o cd
2. File Operations
o touch
o cat
o cp
o mv
o rm
3. Directory Operations
o mkdir
o rmdir
4. Viewing and Editing Files
o nano
o vi
o less
5. System Information
o uname
o df
o du
6. Permissions
o chmod
o chown
7. Process Management
o ps
o top
o kill
8. Networking
o ping
o ifconfig
o netstat
1. Basic Navigation
pwd (Print Working Directory)
The pwd command displays the current working directory.
, ls (List Directory Contents)
The ls command lists the files and directories in the current directory.
Options:
-l : Long format
-a : Include hidden files
cd (Change Directory)
The cd command changes the current directory to the specified path.
2. File Operations
touch (Create a File)
The touch command creates an empty file or updates the timestamp of an existing file.