Command Path in Shell

Level 110 keystrokes

which shows the full path of a command.

Shell code

# Searches the directories in $PATH for the node executable
# Prints the first match, the one the shell would run: /usr/bin/node
1which node

Output

/usr/bin/node
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

More Shell examples at level 1

← Shell typing practice