Linux Commands 1
Linux Commands 1
CONTENTS
• INTRODUCTION
• DIRECTORY COMMANDS
INTRODUCTION
NUX PROGRAMMING INVOLVES WRITING SOFTWARE FOR THE LINUX OPERATING SYSTEM.
HIS TYPICALLY MEANS USING PROGRAMMING LANGUAGES LIKE C OR PYTHON TO CREATE APPLICATIONS, TO
OR SYSTEM UTILITIES THAT RUN ON LINUX,
OFTEN INCLUDES INTERACTING WITH THE LINUX KERNEL, WORKING WITH SYSTEM CALLS, AND MANAGING
PROCESS AND FILES WITHIN THE LINUX ENVIRONMENT
COMMUNICATION ORIENTED COMMANDS
• WRITE
This command allows one user to send a message directly to another user's terminal. It’s
useful for real-time communication. When a user receives a message via write, it appears
immediately on their terminal.
The format is: write <username>
The mail command is used for sending and receiving email within a Unix/Linux system. It's
used to send more formal or longer messages that the recipient can check at their convenience.
The format is: mail <recipient>
After entering the subject and message, the mail is sent. Users can also check their inbox using
mail.
• WALL
The wall command sends a message to all users logged into the system. It’s typically used by
system administrators to broadcast important messages, such as notifications about system
maintenance.
FILE ACCESS COMMANDS
• CHOWN
Used for copying and converting data between files or devices, often used for disk cloning
or backup.
Format: ls
• TOUCH
Displays the contents of a file in a reverse order, starting from the last line
Format: tac<file-name>
• HEAD
• TAIL
• WC
Stands for "word count," and it shows the number of lines, words, and characters in a file.
Format: wc <filename>
• CAT
• CP
• MV
• RMDIR
Removes an empty directory.
Format: rmdir <directory_name>
• CD
Changes the current working directory.
Format: cd <directory_path>
• PWD
Displays the current working directory (Print Working Directory).
Format: pwd
• DU
Displays the disk usage of files and directories.
Format: du <directory_or_file>
• DF
Displays the available disk space on the file system.
Format: df
• WHO
Shows a list of users currently logged into the system.
Format: who
• WHOAMI
Displays the username of the current user.
Format: whoami
• TY
Shows the terminal device you're using.
Format: tty
• DATE
Displays or sets the system date and time.
Format: date
• CAL
Displays a calendar for the current month or a specific year.
Format: cal
O U
K Y
A N
T H BLESSITA SHARON KANMANI
23BIT08
ANCELIN BESSIE
23BIT04
AKSHATA CHANDAN
23BIT01