Linux Commands

Linux uses a command-line interface (CLI) for system management, file operations, and network administration. Below are essential Linux commands for beginners.

File & Directory Commands

CommandDescriptionExample
lsLists files in a directoryls /home
ls -lLists files in detaills -l
cdChanges directorycd Documents
cd ..Moves up one levelcd ..
pwdDisplays current directorypwd
mkdirCreates a new directorymkdir NewFolder
rmdirDeletes an empty directoryrmdir OldFolder
rm -rDeletes a directory & filesrm -r FolderName

File Management Commands

CommandDescriptionExample
touchCreates an empty filetouch file.txt
cpCopies a filecp file1.txt /backup/
mvMoves or renames a filemv file1.txt Documents/
rmDeletes a filerm file.txt
catDisplays file contentcat file.txt
nanoOpens file in Nano editornano file.txt
headDisplays first 10 lines of a filehead file.txt
tailShows last 10 lines of a filetail file.txt

User & Permission Commands

CommandDescriptionExample
whoLists logged-in userswho
idDisplays user ID (UID, GID)id
chmodChanges file permissionschmod 755 file.sh
chownChanges file ownershipchown user:group file.txt
passwdChanges user passwordpasswd

Process Management Commands

CommandDescriptionExample
psShows running processesps aux
topDisplays system resource usagetop
killKills a processkill PID
pkillKills a process by namepkill firefox
htopInteractive process managerhtop (install required)
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2025 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz