Linux Commands
Linux Commands
dpkg-.uery -4 -f,-XHnstalled-SiDe=<:ZAtX*ackageZAn- |
sort -k<(<n
/ist all packages +y installed siDe %OGytes' on de+ distros
dd +s,< seek,22G if,1dev1null of,e)tN.test Create a large test file %taking no space'. See also truncate
> file truncate data of file or create an empty file
monitoring/debugging
tail -f 1var1log1messages #onitor messages in a log file
strace -c ls >1dev1null Summarise1profile system calls made +y command
strace -f -e open ls >1dev1null /ist system calls made +y command
strace -f -e trace,write -e write,<(2 ls >1dev1null #onitor what-s written to stdout and stderr
ltrace -f -e getenv ls >1dev1null /ist li+rary calls made +y command
lsof -p /ist paths that process id has open
lsof I /ist processes that have specified path open
tcpdump not port 22 Show network traffic e)cept ssh. See
also tcpdump0not0me
ps -e -o pid(args --forest /ist processes in a hierarchy