0% found this document useful (0 votes)
23 views2 pages

Essential Linux Commands Guide

This document provides a list of essential Linux commands for beginners, including their functions and examples of usage. Key commands include 'ls' for listing files, 'cd' for changing directories, and 'rm' for deleting files. Additional commands cover file manipulation, process monitoring, and system resource usage.

Uploaded by

studyhacks88
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views2 pages

Essential Linux Commands Guide

This document provides a list of essential Linux commands for beginners, including their functions and examples of usage. Key commands include 'ls' for listing files, 'cd' for changing directories, and 'rm' for deleting files. Additional commands cover file manipulation, process monitoring, and system resource usage.

Uploaded by

studyhacks88
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Linux Commands for Beginners

ls - Lists files and directories in the current directory. Example: ls -l shows

details.

cd - Changes the current directory. Example: cd /home navigates to the /home

directory.

pwd - Displays the current working directory.

mkdir - Creates a new directory. Example: mkdir project creates a folder named

'project'.

rm - Deletes files or directories. Example: rm [Link] deletes '[Link]'. Use rm -r for

directories.

cp - Copies files or directories. Example: cp [Link] [Link] copies [Link] to

[Link].

mv - Moves or renames files and directories. Example: mv [Link] [Link] renames

[Link] to [Link].

touch - Creates an empty file. Example: touch [Link] creates a blank '[Link]'.

cat - Displays file contents. Example: cat [Link] shows the content of '[Link]'.

echo - Displays a line of text. Example: echo 'Hello World!' outputs 'Hello World!'.

grep - Searches for patterns in files. Example: grep 'error' [Link] finds 'error' in

[Link].

find - Searches files and directories. Example: find / -name [Link] looks for '[Link]'.

chmod - Changes file permissions. Example: chmod 755 [Link] sets the file

permission.

ps - Displays current running processes. Example: ps aux shows all processes


with details.

top - Displays real-time system resource usage and running processes.

df - Displays disk space usage. Example: df -h shows human-readable disk

usage.

du - Shows directory size. Example: du -sh /home gives the size of /home.

tar - Archives files. Example: tar -cvf [Link] [Link] creates an archive.

curl - Fetches data from URLs. Example: curl [Link] downloads the

page content.

scp - Securely copies files between servers. Example: scp [Link] user@host:/path

transfers [Link].

You might also like