Communication Oriented Commands
Communication Oriented Commands
04/01/2020 Bhatvijetha
General format is
Write <RecipientLoginName>
<message>
^d
Mail
This command offers offline communication.
General format is,
Mail <username>
<message>
^d
04/01/2020 Bhatvijetha
Wall
Usually this wall command (write all) command is used by the super user
to send a message to all the users who were logged on the system.
General format is,
Wall
<message>
<press [ctrl+d] at the end]
Example
$wall
Meeting at 14.00hrs
^d
The specified message “meeting 14.00hrs” will be displayed on
everyone’s terminal with a beep sound like write message .
04/01/2020 Bhatvijetha
General purpose commands
Date
This command displays the system’s date and time.
General format is,
Date +<format>
Where <format> can be,
%H hour 00 to23
%I hour 00 to 12
%M minute 00 to 59
%S second 00 to 59
%D Date MM/DD/YY
%T Time HH:MM:SS
%w day of the week
%r time in AM/PM
%y last two digits of the year
04/01/2020 Bhatvijetha
Who
Linux is a multi user operating system where several user can work on
the system.
This command is used to display the users who are logged on the
system currently.
General format is,
Who
04/01/2020 Bhatvijetha
Who am I
This command tells you who you are.
(working on the current terminal)
04/01/2020 Bhatvijetha
Man
This man command displays the syntax and details usage of
the linux command which is supplied as an argument.
Man <linuxcommand>
04/01/2020 Bhatvijetha
Cal
This command will display calendar for the specified month
and year.
04/01/2020 Bhatvijetha
Lpr
This command is used to print one or more files on the printer.
General format is,
Lpr [options] <filename> <filename2>..<filenameN>
Where options can be,
r removes files from one directory after printing.
m Mail inform you when printing is over
04/01/2020 Bhatvijetha
Tee
This command does the operation of pipe and redirection.
It will send the output of a command into standard output as
well to specified file.
04/01/2020 Bhatvijetha
Script
This command stores login session into a specific file.
All the operations that you have done are stored on that file.
Start the login session by issuing the following command.
$script
Then do you operations and finally use the exit command to
end script.then all the operation in between script and exit
will be stored on a file named type script.
04/01/2020 Bhatvijetha
Tput
This command with clear option can be used to clear thee
screen content.
Tput clear
You can also use clear command for this purpose.
04/01/2020 Bhatvijetha
Expr
This command is used to perform arithematic operations on
integers.
A white space must be used on either side of an operator.
$ x=5
$y=2
Then,
$ expr $X + $y
$ expr $x - $y
04/01/2020 Bhatvijetha
Bc
This command is used to perform arithematic operations on
integers as well as on floats.
Type the arithematic expression in a line and press key.
Then the answer will be displayed on the next line.
After you have finished work,press control d to end up.
Example:
Add 10 and 20
$bc
10 + 20
30
Ctrl+d(to end)
04/01/2020 Bhatvijetha
Continued in part5..
04/01/2020 Bhatvijetha