Home Apple The Terminal Unix Command Terminal OS X (lesson 1)

Publicité

Unix Command Terminal OS X (lesson 1) PDF Print E-mail
Saturday, 23 August 2008 16:11

Here is a list of commands that you will be able to use in the Terminal. This will be the first contacts you have with online commands on Mac OS X.

List the content of a directory : ls  (LS)

List the content of a directory included all hidden files : ls -all

List the content of a directory with the file size in bytes, bk, mo, go : ls -lh

Move around through directories : cd name_of_directory

After cd you can type in the first few letters and then 'tab' to fulfill existing directories.

For example : CD D + 'tab' + 'enter' will open the 'Document' directory in your 'home' directory'.

To come back to previous level : cd ..

Remove a file : rm name_of_file

Create a directory : mkdir name_of_directory

Remove directory : rmdir name_of_directory

To know where you are : pwd

Copy a file : cp source_file copied_file

Copy a directorycp -R source_dir copied_dir

Move a document : mv source_file destination_file

 

List of the actual prosses : top

Connaître l'endroit où vous êtes : pwd
Copier un document : cp doc_source doc_destination
Copier un répertoire : cp -R rep_source rep_destination
Déplacer un document mv doc_source doc_destination

Liste des processus en cours : top (97 total, 3 running, 94 sleeping, 396 threads)

Usually the options are written with '-'

 

To know about the option of a function: man function for example: man cp

 

 

Related articles :

 

Last Updated on Monday, 21 December 2009 07:59
 
Copyright © 2012 English fievet.net - News about Apple. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.