Here we have listed all linux commands which are used to get some information.These commands provide information about your login, environment, terminal, machine, and system. They also allow you to make some changes to these states. These are listed in alphabetic order, not in order of importance.
| date | to display the current date and time | |
|---|---|---|
| kill | to kill (or destroy) the process with a given pid (process identification number) as argument | |
| logout | to log out from the Unix system | |
| man | to get information on a Unix command; to look up the page in the online manual for that command |
|
| man CC | shows the pages of the Unix manual referring to the C++ compiler (CC) on the screen. | |
| nslookup | to find the address of a given machine | |
| nslookup yourmach | returns the name and address of the machine yourmach, along with the name and address of its server. | |
| passwd | to change your current password | |
| printenv | to show the current environment setting | |
| ps | to list your current processes by their pid (process identification number) | |
| setenv | to change an environment setting | |
| setenv DISPLAY yourmach:0 | tells the Xserver that the Xterminal named yourmach is where any windows created are to be displayed. | |
| setenv PRINTER xxx | makes xxx be the default printer for any lpr or enscript commands. | |
| source | to reexecute a source shell script file | |
| source .login | re-executes your .login file (normally executed when you log in); useful after making changes to the .login file (removing the need to exit and re-login); |
|
| time | to time the execution of a given command | |
| time anyunixcommand | executes anyunixcommand and returns the user, system, and total time taken for the execution | |
| who | to list the users currently logged in to given machine; to find out who is logged in |
|
| whoami | to display login of user currently logged onto given terminal; to answer the question: “Who am I?” |
|