Shell commands in Linux

$echo $HISTSIZE                                     (  — To find out history size, by default it will be 1000)

histsize

$echo $USER                                           ( — To find out user logged in)

user

$echo $BASH                                          (– To find full path name of BASH cmd)

bash

$echo $HISTFILE                                   (– To find file location of history of current user)

history

$echo $HISTCMD                                (– To find number of history contents of current user)

histcmd

$echo $MAIL                                         (– To find out location of mail-folder of current user)

mail

 

 

Advertisements