Basic Commands

From 6bit.ch wiki
Revision as of 17:34, 8 March 2022 by Xbl (talk | contribs) (→‎ls)
Jump to navigation Jump to search

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