Linux Phrasebook (Developer's Library) by Granneman Scott

Linux Phrasebook (Developer's Library) by Granneman Scott

Author:Granneman, Scott [Granneman, Scott]
Language: eng
Format: azw3, epub
Publisher: Pearson Education
Published: 2015-12-09T05:00:00+00:00


moby-dick/bible:

-rw-r--r-- scott scott 207254 genesis.txt

-rw-r--r-- scott scott 102519 job.txt

$ tar -cf moby.tar moby-dick/ | gzip -c > moby.tar.gz

$ ls -l

drwxr-xr-x scott scott 168 moby-dick

-rw-r--r-- scott scott 20 moby.tar.gz

This method works, but it’s just too much typing! There’s a much easier way that should be your default. It involves three new options for tar: -p (or --preserve-permissions or --same-permissions), which makes sure that permissions are preserved; -z (or --gzip), which invokes gzip from within tar so you don’t have to do so manually; and -v (or --verbose), which isn’t required here but is always useful, as it keeps you notified as to what tar is doing as it runs.

Click here to view code image

$ ls -l moby-dick/*

-rw-r--r-- scott scott 102519 moby-dick/job.txt

-rw-r--r-- scott scott 1236574 moby-dick/moby-dick.txt

-rw-r--r-- scott scott 508925 moby-dick/paradise_lost.txt



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.