Subsections

File operations

Listing directories

ls DIR

Lists the contents of the directory DIR. Normal files appear in black, directories in blue, executable files in green, and links in light blue. ls without arguments gives the contents of the current working directory.

ll DIR

Same as ls, but gives some information about the size, owner and permissions of the files.

pwd Gives the full path of the current working directory.

Moving files

cp [-r] SOURCE DEST

Copies SOURCE to DEST. cp -r copies whole directories (-r: recursively).

mv SOURCE DEST

Moves SOURCE to DEST (single files or whole directories). Can also be used to move a file to another directory.

rm [-r] FILE

Permanently removes the file FILE (watch out: the files don't go to the recycle bin first). rm -r removes whole directories (recursively).

mkdir DIRECTORY

makes a directory named DIRECTORY.


Persoonlijke pagina Universiteit GentTscope
Allegro | Cygwin | Gcc
© See license.html for copyright information