Commonly used · Understanding the workspace
which: Find external command location
Syntax
which command…Examples
which lsUsage and sandbox support
Query only external commands that can be practiced; built-in commands use type.
Hands-on exercises
- Find the program path of lsEveryday
Related commands
pwdShow current locationlsList files and directoriescdSwitch working directorytreeObserve the directory structuremanQuery command manualhelpView support scoperealpathParse absolute pathstypeIdentify built-in and external commandslocateFind a file in the indexupdatedbUpdate file indexpushdEnter the directory and push onto the directory stackpopdPop directory stackdirsShow directory stack