Commands of Linux

Tips of Linux

Make system disk

$ dd if=ubuntu-server-amd64.iso of=/dev/sdb

View the running time of a process

$ ps aux
$ ps -p 10167 -o etimes,etime
$ ps -p 10167 -o rss

Dynamically view logs in real time

$ tail -f test.log
$ tail -f test.log | sed '/Failed/ q'

Conversion of timestamp

$ date -d@1234567890 +"%Y-%m-%d %H:%M:%S"
$ date +%s

Calculate the running time of the program

$ time ./test

View ascii code

$ man ascii

Delete garbled files

$ ls  -i
$ find . -inum 123456 -exec rm {} \;

Download web resources in batches

$ wget -r -nd -np --accept=pdf http://fast.dpdk.org/doc/pdf-guides/
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus