0% found this document useful (0 votes)
6 views

Linux Commands 1

Uploaded by

veroniya1811
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Linux Commands 1

Uploaded by

veroniya1811
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

LINUX COMMANDS

CONTENTS

• INTRODUCTION

• COMMUNICATION ORIENTED COMMANDS

• FILE ACCESS COMMANDS

• 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>

After sending the message, you can end it with Ctrl+D.


• MAIL

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

Changes the ownership of a file or directory to a specified user and group.

Format: chown <user>:<group> <file>


• DD

Used for copying and converting data between files or devices, often used for disk cloning
or backup.

Format: dd if=<input_file> of=<output_file>


• IS

Lists the contents of a directory, showing files and directories.

Format: ls

• TOUCH

Creates an empty file or updates the timestamp of an existing file.

Format: touch <filename>


• TAC

Displays the contents of a file in a reverse order, starting from the last line

Format: tac<file-name>

• HEAD

Displays the first few lines (default is 10) of a file.

Format: head <filename>

• TAIL

Displays the last few lines (default is 10) of a file.

Format: tail <filename>

• WC

Stands for "word count," and it shows the number of lines, words, and characters in a file.

Format: wc <filename>
• CAT

Concatenates and displays the contents of files.

Format: cat <filename>

• CP

Copies files or directories.

Format: cp <source> <destination>

• MV

Moves or renames files or directories.

Format: mv <source> <destination>


DIRECTORY COMMANDS
• MKDIR
Creates a new directory.
Format: mkdir <directory_name>

• 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

You might also like