Commands of Linux

Tips of Linux

Make system disk

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

View the running time of a process

1
2
3
$ ps aux
$ ps -p 10167 -o etimes,etime
$ ps -p 10167 -o rss

Dynamically view logs in real time

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

Conversion of timestamp

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

Calculate the running time of the program

1
$ time ./test

View ascii code

1
$ man ascii

Delete garbled files

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

Download web resources in batches

1
$ 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