AMITIAE - Monday 17 September 2012


Command Line Work: New Users and Terminal (4) -- Lists and Manuals


apple and chopsticks



advertisement


By Graham K. Rogers


Terminal


Ever since the first Macs appeared, they have been known for the graphical user interface (GUI): icons instead of command line work which before the mid-1980s was the norm. Paradoxically, the arrival of OS X brought with it easy access to the command line should users ever want this, although it is possible to use the computer without ever needing to work at the command line at all.


There are 1,384 commands on my Mac in Terminal. I may add to these later, but that is enough for now. In the BASH shell, we are able to discover this information by pressng the TAB key, then pressing TAB a second time.

A message appears on the screen, Display all 1384 possibilities? (y or n). Pressing n, will return the screen to the command line. Pressing y brings up a list of all the commands -- several pages long -- that are available. These are displayed one screen at a time and when the screen is full, at the bottom left is --More--

Pressing the space bar once will reveal the next page. When finished, the user will be returned to the command line.


But what do they all do?

Many of the entries have a manual installed. This is revealed by typing man followed by a space and then the name of the command we want to know more about, for example, man ls (a command that this series looked at earlier).


Terminal - Manuals


There may be more information than we need to know, but this will indicate how flexible and powerful Unix is. In those entries, we can see that a lower case character is not the same as an upper case one.


Some manuals are long and while scrolling is done with the space bar, note the : to the left side of the screen, near the bottom. This allows a user to enter a command for the manual, such as q to Quit or h for help.

When the manual has completed scrolling, a bold (END) appears at the bottom left. To return to the command line, a user types in a colon -- : -- and the letter q.

There is much that can be done with the Unix in Terminal, but, especially if working in an Admin account, danger lurks if you are not sure what you are doing. If in any doubt, Don't.

I will examine some simple commands in the near future.


To be continued. . . .



See Also -

  • New Users and Terminal (1) -- A Quick Look Round
  • New Users and Terminal (2) -- Basic Navigation
  • New Users and Terminal (3) -- Shell Basics
  • New Users and Terminal (5) -- Internet Use
  • New Users and Terminal (6) -- Questions of Identity
  • New Users and Terminal (7) -- A Little More Discovery
  • New Users and Terminal (8) -- File Commands and More
  • New Users and Terminal (9) -- Process Identification and Termination
  • New Users and Terminal (10) -- Browsing the Web using Unix
  • New Users and Terminal (11) -- Unix Tricks from OS X Daily
  • New Users and Terminal (12) -- Installed Text Editors - emacs, nano, pico, vi and vim
  • New Users and Terminal (13) -- Installing and Using the Utility, WGET
  • New Users and Terminal (14) -- Passwords, Purging and Closing Notes
  • New Users and Terminal (15) -- Permissions and chmod


    Graham K. Rogers teaches at the Faculty of Engineering, Mahidol University in Thailand. He wrote in the Bangkok Post, Database supplement on IT subjects. For the last seven years of Database he wrote a column on Apple and Macs.


  • advertisement



    Google


    Made on Mac

    For further information, e-mail to

    information Tag information Tag

    Back to eXtensions
    Back to Home Page