Difference between revisions of "Basic Commands"

From 6bit.ch wiki
Jump to navigation Jump to search
Line 1: Line 1:
=ls=
= ls =


-a, --all</br>
-a, --all</br>
Line 16: Line 16:
sort by time, newest first
sort by time, newest first


=tar=
= tar =


-c</br>
-c</br>
Line 47: Line 47:
-z</br>
-z</br>
compress using gzip
compress using gzip
= less & more =
space / f</br>
scroll forward one screen</br>
enter</br>
scroll forward one line</br>
b</br>
scroll backward one screen</br>
d</br>
scroll forward half a screen</br>
h</br>
display help</br>
q</br>
quit</br>
/string</br>
search string forward</br>
?string</br>
search string backward</br>
n</br>
find next occurrence</br>
N</br>
find previous occurrence (less only)</br>

Revision as of 10:58, 9 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

less & more

space / f
scroll forward one screen

enter
scroll forward one line

b
scroll backward one screen

d
scroll forward half a screen

h
display help

q
quit

/string
search string forward

?string
search string backward

n
find next occurrence

N
find previous occurrence (less only)