Unix

Unix
Caution!!

Sunday, 22 June 2014

Unix General Purpose Commands.

In this topic of discussion we would cover the following Unix General Purpose Commands.

  1. man
  2. cal
  3. echo
  4. bc
  5. rev

1.MAN:-manual help of unix.


  • How to get help for a command in unix os?
>man ps

(this will give you the manual help of how ps(process staus) command should be used in unix.it will also have the syntax of the command usage.)

2.CAL:- the calendar


This command is used to give the calender of a particluar month or year.

>cal [month] [year]

where [month] and [year] are optional.

>cal 03 2014
gives the calender of march 2014

>cal 

gives the calender of the current month

3.ECHO:-Displays a message

This command is used to display a particular message in unix.

>echo "message"
message

>echo $$
gives the currently running process.

4.BC:-Binary calculator

>bc 10+20
30

5.REV:- gives the reverse of the output.(Important asked in several interviews)

> echo "unix" | rev

xinu






No comments:

Post a Comment