Difference between revisions of "Basic Commands"
(→ls) |
|||
| Line 86: | Line 86: | ||
display lines (-l), words (-w), bytes (-c), characters (-m) of file</br> | display lines (-l), words (-w), bytes (-c), characters (-m) of file</br> | ||
= setfacl = | |||
-b</br> | |||
remove all access acls | |||
-d</br> | |||
apply default acl | |||
-k</br> | |||
remove all default acls | |||
-m</br> | |||
set or modify acls | |||
-n</br> | |||
prevent automatic recalculation of mask | |||
-R</br> | |||
apply recursive | |||
-x</br> | |||
remove access acl | |||
Revision as of 18:35, 10 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
-i
display inode number
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)
wc
display lines (-l), words (-w), bytes (-c), characters (-m) of file
setfacl
-b
remove all access acls
-d
apply default acl
-k
remove all default acls
-m
set or modify acls
-n
prevent automatic recalculation of mask
-R
apply recursive
-x
remove access acl