General Purpose Commands: Syntax: $date
General Purpose Commands: Syntax: $date
1. date command
Syntax : $date
The date command can also be used with the following format specification
Format Purpose
$date +%m To display only month
$date +%h To display month name
$date +%y To display last two digits of the year
$date +%H To display Hours
$date +%M To display Minutes
$date +%S To display Seconds
2. (i)who command
This command gives us the details of who all have logged into the
UNIX system currently.
Syntax: $who
(ii) $who i am
It is used to identify the user and list out the username, terminal
number and login time
Syntax: $ who am i
(iii) tty
Syntax: $tty
(iv) nl
It is used to add line number to file and display the file. It does not
provide any access to the file.
3. man command
4.$cal
Syntax: $cal
5.$clear
Syntax : $clear
6.$echo
1. cat
It is used to create a file
2. cat filename:
It is used to display the content of the file
4.cp
It copies the content of one file to another with in the own or access
directory.
5. rm
6. mv
It is used to rename a file
Cat ram
Rose
Jasmine
Lotus
7. wc
8.wc –l filename:
It displays number of line alone
9. wc –w file name:
11.ls –a
12.ls –i
13.ls –l
14.ls –r
It displays the regressive list of all files in all sub directory
15.ls –c
16.ls ?
17.ls ??
18.ls *
It displays all files including sub directories