Mac Os X: really basic Unix commands
 
02/12/2005 - 18:54 (Category: Linux/Mac Os X)

Are you aware of the Unix system beneath Mac Os X? Nope? Then you are missing something really useful. Let's see some really basic Unix commands you can type in Terminal (Applications -> Utilities -> Terminal.app). Open Terminal and type:

1) pwd (meaning Print Working Directory) to know the current directory's name
2) cd .. (meaning Change Directory) to move to the directory above of the current directory
3) cd name_of_any_directory to move to the name_of_any_directory directory
4) cd to move to the home directory
5) cd ~ to move to the home directory (the same as cd alone)
6) cd / to move to the root directory
7) ls (meaning List) to list files inside of current directory
8) man name_of_command (meaning MANual, the online manual explaining any Unix command)

Notice that ls doesn't show you hidden files (.something files). To show hidden files, type:

ls -a

Now you can start browsing the whole Unix's folders tree beneath Mac Os X (Exit or Control-D to quit Terminal). Don't forget the man command. Man is the most useful command. Use it to know more about any command.

Go back

DISCLAIMER:
Any named products on this website are copyright © and/or trademarks ® of their respective companies. INFORMATION ON THIS WEB SITE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. The material included in this site has been compiled from a variety of sources and the site may include technical inaccuracies or typographical errors. Information may be changed or updated without notice. While every effort is made to ensure the correctness of the information provided here, the author can accept no responsibility for damages caused directly or indirectly from the use of such information. The author will not be responsible for damage or loss of data. You are advised to backup data regularly! By entering this site you are agreeing to this and also to never suing the author.

 

Home  About  Mail us!  

Copyright © 1998-2006 Wowarea