The GNU/Linux command line

From String Theory Wiki
Revision as of 22:13, 7 January 2007 by Tom (talk | contribs)
Jump to: navigation, search

basics

ls -lrt

lists the contents of a directory with full details (l) in reverse (r) time order (t)

archiving

tar -xvzf some_archive_to_be_extracted.tar.gz 

this extracts (x) some_archive_to_be_extracted.tar.gz which is zipped (z); the command will talk to you (v) and won't bother you with further options (f)

tar -cpvzf some_archive_to_be_created.tar.gz /path/to/archive

will create (c) an archive file some_archive_to_be_created.tar.gz from the contents of /path/to/archive; it will zip it (z), preserve permissions (p), the command will talk to you (v) and won't bother you with further options (f)