|
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 directory : cp -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 :
|