Linux commands presentation topic discrete structure.ppt

akshitabansal1815 30 views 17 slides Sep 09, 2024
Slide 1
Slide 1 of 17
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17

About This Presentation

Presentation


Slide Content

Linux Commands Basic commands used to interact with the Linux operating system. Essential for navigating and managing files, directories, and system processes.

ls Command Description: Lists files and directories in the current directory. Example: `ls` – Lists all files and directories. `ls -l` – Provides detailed information including permissions, owner, size, and modification date.

mkdir Command Description: Creates a new directory. Example: `mkdir my_directory` – Creates a directory named 'my_directory'.

rmdir Command Description: Removes an empty directory. Example: `rmdir my_directory` – Removes 'my_directory' if it's empty.

cd Command Description: Changes the current directory. Example: `cd /home/user` – Changes to the '/home/user' directory. `cd ..` – Moves up one level in the directory hierarchy.

cat Command Description: Displays the content of a file. Example: `cat file.txt` – Displays the content of 'file.txt'.

figlet Command Description: Prints text in large ASCII art. Example: ` figlet Welcome` – Prints 'Welcome' in large characters.

touch Command Description: Creates an empty file or updates the timestamp of an existing file. Example: `touch newfile.txt` – Creates a file named 'newfile.txt'.

file Command Description: Determines the type of a file. Example: `file myfile.txt` – Displays the type of 'myfile.txt' (e.g., ASCII text).

wc Command Description: Counts lines, words, and characters in a file. Example: `wc file.txt` – Displays the number of lines, words, and characters in 'file.txt'.

sort Command Description: Sorts lines in a file. Example: `sort file.txt` – Sorts the lines of 'file.txt' alphabetically.

cut Command Description: Cuts sections from each line of a file. Example: `cut -d':' -f1 file.txt` – Cuts the first field (delimited by colon) from each line of 'file.txt'.

grep Command Description: Searches for a pattern in a file. Example: ` grep 'pattern' file.txt` – Finds all lines containing 'pattern' in 'file.txt'.

dd Command Description: Converts and copies files. Example: `dd if=/dev/sda of=/backup.img` – Creates a backup of the disk '/dev/sda'.

df Command Description: Shows disk space usage. Example: `df -h` – Displays disk usage in a human-readable format.

du Command Description: Estimates file and directory space usage. Example: `du -sh /home/user` – Displays the size of the '/home/user' directory.

ulimit Command Description: Sets user limits for system resources. Example: `ulimit -n 1024` – Sets the maximum number of open files to 1024.
Tags