Basic Commands in Linux

To work in a Linux command, The user should select ‘Terminal’ mode.
(open: CLT+ALT+F1 close: CLT+ALT+F7)

In Linux # indicates admin(root) user and $ indicates the default/normal user.

  • $logname : This command display the current username.

  • $pwd : This command display the present working directory.

  • $clear : This command clears the screen.

  • $logout : This command logout used from the current user.

  • $date : This command displays date and time.

  • $who am i : This command use to display current username, terminal number, date and time at which you logged in the system.

  • $who : This commnad display information about all users who logged into the system.

i.e each username, ternimal number, date and time at which the users logged into the system.

  • $finger : It displays complete information about all users who logged into the system.

  • $cal : This command display previous/current calender.

$cal year 
usage : $cal 2013
$cal month year
usage: $cal 3 2012

  • $init : This command is use to change the system behaviour at run level.

#init 1 : This command bring the system to single usermode.
#init 2 : This command brings the system to multi usermode.
#init 3 : This command brings the system to multiuser mode with resource shared.
#init 6 : This command hunts and reboot the system to default run level.

Leave a Reply

Your email address will not be published. Required fields are marked *