Friday, 26 April 2019

basic unix

Find the disk usage
du

Note: In hp-UX bdf command we have to use.


Find exit Status of a unix command
Following the execution of a pipe, a $? gives the exit status of the last command executed. After a script terminates, a $? from the command-line gives the exitstatus of the script, that is, the last command executed in the script, which is, by convention, 0 on success or an integer in the range 1 - 255 on error.

command to find current working directory in unix
pwd 



No comments:

Post a Comment