Linux Commands for Beginners--which and whatis commands

来源:互联网 发布:程序员的电脑桌 编辑:程序博客网 时间:2024/05/17 06:52
          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

原创粉丝点击