The GNU/Linux command line: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 4: | Line 4: | ||
</pre> | </pre> | ||
lists the contents of a directory with full details (l) in reverse (r) time order (t) | lists the contents of a directory with full details (l) in reverse (r) time order (t) | ||
===archiving=== | ===archiving=== |
Revision as of 22:13, 7 January 2007
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)