Difference between revisions of "Basic Commands"
Jump to navigation
Jump to search
(Created page with "=ls= -a, --all</br> do not ignore entries starting with . -h, --human-readable</br> with -l and -s, print sizes like 1K 234M 2G etc -l</br> use a long listing format -r, --reverse</br> reverse order while sorting -t</br> sort by time, newest first") |
(→ls) |
||
| Line 15: | Line 15: | ||
-t</br> | -t</br> | ||
sort by time, newest first | sort by time, newest first | ||
=tar= | |||
-c</br> | |||
create tarball | |||
-f</br> | |||
specify tarball name | |||
-p</br> | |||
preserve file permissions, default as root | |||
-r</br> | |||
append files to the end of an existing uncompressed tarball | |||
-t</br> | |||
list contents of an existing tarball | |||
-u</br> | |||
append files to the end of an existing uncompressed tarball, if files are newer | |||
-v</br> | |||
verbose | |||
-x</br> | |||
extract tarball | |||
-j</br> | |||
compress using bzip2 | |||
-z</br> | |||
compress using gzip | |||
Revision as of 17:34, 8 March 2022
ls
-a, --all
do not ignore entries starting with .
-h, --human-readable
with -l and -s, print sizes like 1K 234M 2G etc
-l
use a long listing format
-r, --reverse
reverse order while sorting
-t
sort by time, newest first
tar
-c
create tarball
-f
specify tarball name
-p
preserve file permissions, default as root
-r
append files to the end of an existing uncompressed tarball
-t
list contents of an existing tarball
-u
append files to the end of an existing uncompressed tarball, if files are newer
-v
verbose
-x
extract tarball
-j
compress using bzip2
-z
compress using gzip