UNIX Command Line Arguments / Special Unix variables and its description:
- $0 – Shows value of the command itself (program name)
- $1 – First command line argument
- $2 – Second command line argument
- . .
- . .
- . .
- $9 – Ninth command line argument
- ${10} – Tenth command line argument
- $# – Total number of command line arguments
- $* – A space-separated list of command line arguments
Ex:
$? – To check the exit status of the command which was last executed. If the last command executed successfully then it will return the output as 0 else it would be non-zero.
Ex:
OTHER ADVANCED UNIX COMMANDS:
Below are the list of advanced UNIX commands used in UNIX operation system.
1 .GREP Command in Unix
2.Whoami Command in Unix
3.Passwd Command in Unix
4.Kill Command in Unix
5.Ps -Ef Command in Unix
6.Df -k Command in Unix
7.Bdf Command in Unix
8.ftp Command in Unix
9.Find Command in Unix
10.Date Command in Unix
11.Uptime Command in Unix
12.Clear Command in Unix
13.Shift Command in Unix
14.Sort Command in Unix
15.Crontab Command in Unix
16.Unix Command Line Arguments