The GNU/Linux command line

From String Theory Wiki
Revision as of 22:12, 7 January 2007 by Tom (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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)