Popular in linux shell

Below is the list of popular linux commands.
  • man – prints manual page of the command
  • whereis – prints the location of command
  • which – prints the location of the command
  • type – prints the location of command
  • echo – prints the string, variable or file
  • mail – used to send an email
  • logout – log off from the system
  • date – prints system time stamp
  • cal – shows the calendar

zdump command

zdump command is used to display time in different time zone. For example – If you want to see the time in GMT, you can use below command. zdump GMT

dirname command

dirname command is used to get the name of directory in which file is stored. For example if the full path of file is /usr/home/f1.txt, then dirname will be /usr/home

basename command

basename command is used to get only main name of file. For example if the full path of file is /usr/home/f1.txt, then basename will be f1.txt

sleep command

sleep command is used to wait for fixed amount of seconds. For example to sleep for 2 seconds, use below syntax.
 
sleep 2

Web development and Automation testing

solutions delivered!!