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
  • PrintPrint
Share this Page URL
Help

2. A Shell Primer > Entering Commands

Entering Commands

To enter a command, type it and press the RETURN key. Some commands are simple enough that you can run them by typing just their name. Here are a few:

% date                          Display current date and time
% who                           Show who is logged in
% ls                            List contents of your current directory
% mail                          Read your mail
% clear                         Clear the screen
% logout                        (or exit) Terminate your login session

You’ll get an error message if the shell can’t find a command (errors usually occur when the command is nonexistent or you spelled its name incorrectly):

% glarbl                       Nonexistent command
glarbl: Command not found.
% dtae                         Misspelling of date
dtae: Command not found.

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

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

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint