Operating System Prac-1
Operating System Prac-1
ls
touch
date
• Displays the current date and time.
Can format the output according to user preferences.
df
Displays the amount of disk space used and available on the system.
echo
Prints text or variables to the terminal.
Tail
Displays the last few lines of a file.
head
Displays the first few lines of a file.
Useful for previewing the start of a large file
rmdir
Removes empty directories.
Will fail if the directory contains files or other directories.
mkdir
Creates a new directory in the specified path.
Can create multiple directories at once with the -p option.
History
The `history` command displays a list of previously executed commands in the terminal.
Netsat
The netstat command displays network connections, routing tables, interface statistics, and
more.
Top
The top command displays real-time system information
Vim
The `vim` command opens the Vim text editor, which is used for creating and editing text files.
WC
The `wc` command counts the number of lines, words, and characters in a file.
Who
The `who` command displays a list of users currently logged into the system.
whoami
The `whoami` command displays the current logged-in user's username.
Uname
The uname command displays system information, such as the operating system name
rm
The rm command is used to remove files or directories from the filesystem.
touch
The touch command is used to create an empty file
route
The `route` command displays and manipulates the IP routing table.
ps
The `ps` command displays information about currently running processes on the system.
uniq
The `uniq` command filters out repeated lines in a file, displaying only unique lines.
sort
The `sort` command arranges the lines of a text file in alphabetical or numerical order.
Du
The `du` command estimates and displays the disk usage of files and directories.
cat
The `cat` command concatenates and displays the content of files.