some more unix commands

Upload: sourabh-bhandari

Post on 10-Apr-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/8/2019 Some More Unix Commands

    1/1

    SOME MORE UNIX COMMANDS

    LOCATING COMMANDS

    The location where a command or an executable program is stored is found by using

    the type command. Suppose we want to know the location of ls command, then we

    use type command like this :

    $ type ls [press Enter]

    ls is /bin/ls

    It shows that ls command is located in the file ls in the bin directory of root directory.

    PATH

    The path is a variable that contains the specification of sequence of directories thatshell searches to look for a command. Its value can be displayed by using with echo

    command :

    $ echo $PATH [press Enter]

    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

    Copyright Sourabh Bhandari http://sourabhandari.in