In this tutorial, I talk about the which and whatis commands.
1.COMMAND:
which
DESCRIPTION:
locate a command
SYNOPSIS
which commandName
Example:
piniheaven@fish:~$ which ls
/bin/ls
piniheaven@fish:~$ which nano
/usr/bin/nano
2.COMMAND:
whatis
DESCRIPTION:
display manual page descriptions
SYNOPSIS
whatis commandName
Example:
piniheaven@fish:~$ whatis firefox
firefox (1) - a free and open source web browser from Mozilla
piniheaven@fish:~$ whatis ls
ls (1) - list directory contents
没有评论:
发表评论