Linux Commands

Linux offers a wide range of commands for managing files, directories, and processes.

Here’s a table of some essential commands:

CommandDescriptionExample
manProvides access to the user manual.man ls
lsLists files and directories.$ lsDocuments Downloads
pwdPrints the current working directory.$ pwd/home/user
cdChanges the current directory.$ cd Documents → Navigate to Documents.
mkdirCreates a new directory.$ mkdir new_folder
rmdirRemoves an empty directory.$ rmdir new_folder
touchCreates an empty file.$ touch file.txt
rmRemoves files or directories.$ rm file.txt
cpCopies files or directories.$ cp file.txt /path/to/destination
mvMoves or renames files.$ mv old_name.txt new_name.txt
catDisplays file content.$ cat file.txtHello, World!
nano/vimEdits files in terminal.$ nano file.txt or $ vim file.txt
chmodChanges file permissions.$ chmod 755 script.sh
chownChanges file ownership.$ chown user:group file.txt
psDisplays running processes.$ ps
killTerminates a process using its PID.$ kill 1234
dfShows disk usage.$ df -h
topMonitors system resources in real-time.$ top
wgetDownloads files from the internet.$ wget http://example.com/file.zip
tarCompresses or extracts tar archives.$ tar -cvf archive.tar folder_name
sudoExecutes commands as a superuser.$ sudo apt update

man linux command

#linux

What is the man Command ?

Read more →

January 8, 2025

ls linux command

#linux

What is the ls command?

Read more →

January 8, 2025

pwd linux command

#linux

What is the pwd command?

Read more →

January 9, 2025

cd linux command

#linux

What is the cd command?

Read more →

January 9, 2025