Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

I. Learning the Shell > 5. Working with Commands

Chapter 5. Working with Commands

Up to this point, we have seen a series of mysterious commands, each with its own mysterious options and arguments. In this chapter, we will attempt to remove some of that mystery and even create some of our own commands. The commands introduced in this chapter are these:

  • type—Indicate how a command name is interpreted.

  • which—Display which executable program will be executed.

  • man—Display a command’s manual page.

  • apropos—Display a list of appropriate commands.

  • info—Display a command’s info entry.

  • whatis—Display a very brief description of a command.

  • alias—Create an alias for a command.

What Exactly Are Commands?

A command can be one of four things:

  • An executable program like all those files we saw in /usr/bin. Within this category, programs can be compiled binaries, such as programs written in C and C++, or programs written in scripting languages, such as the shell, Perl, Python, Ruby, and so on.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial