Syntax : $ CommandName <-Options> <Arguments>
Command Name : Operation to be performed Lower Case.
<-Options> : Controls O/p of Command as well as operation
<Arguments> : Data processed to command
Options always start with hyphen (-)
1] Command Name: uname => Displays the OS name
$ uname
Displays the OS name
$ uname –v
Displays release date of OS
$ uname –r
Displays version of the OS
2] Command Name: who => Displays all the logged users of UNIX.
$ who
Displays all logged in users, login name & time of login.
$ whoami
user 2
Displays the user login name
3] finger: List all the logged user in details
$ finger
Details of all the users are listed like, login name, actual name, phone, emailed, Office.
4] pwd: (Print working directory): Prints the current working directory path.
$ pwd
/home/demo/batch2/class3
No comments:
Post a Comment