0% found this document useful (0 votes)
19 views8 pages

Operating System Prac-1

This document provides a practical overview of basic Linux commands, detailing their functions and usage. Key commands include 'ls' for listing files, 'mkdir' for creating directories, and 'rm' for removing files. Additional commands such as 'date', 'top', and 'cat' are also explained for various system and file management tasks.

Uploaded by

janhavi957
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)
19 views8 pages

Operating System Prac-1

This document provides a practical overview of basic Linux commands, detailing their functions and usage. Key commands include 'ls' for listing files, 'mkdir' for creating directories, and 'rm' for removing files. Additional commands such as 'date', 'top', and 'cat' are also explained for various system and file management tasks.

Uploaded by

janhavi957
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
You are on page 1/ 8

Practical – 01

Aim:-study of basic command of linux.

ls

• Lists all of the files and directories of in the given directory

touch

•Creates an empty file if it doesn't exist

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.

You might also like