temberature / blog

http://temberature.github.io/blog
2 stars 5 forks source link

linux #135

Open temberature opened 5 years ago

temberature commented 5 years ago

nohup command &

temberature commented 5 years ago

lsof -i:8446 PID 92254 kill -9 92254

temberature commented 5 years ago

scp root@10.6.159.147:/opt/soft/demo.tar /opt/soft/

temberature commented 5 years ago

pkill -f

temberature commented 5 years ago

killall -s SIGKILL code-serv

temberature commented 5 years ago

top -c

temberature commented 5 years ago

rpm -qa | grep apm-server yum -y remove 包名

temberature commented 5 years ago

mv /home/*.epub /books/ -n

temberature commented 5 years ago

find /volume1/books/ -type f > books.txt /volume1/books/海洋与文明.epub /volume1/books/海洋与文明.mobi /volume1/books/白银资本.azw3 /volume1/books/白银资本.epub /volume1/books/白银资本.mobi

find /volume1/books/ -type f > books.txt find . -name ".pdf" -o -name ".epub" -o -name ".mobi" -o -name ".azw3" -type f | awk -F '/' '{ print $(NF)}' | sort | uniq > books.txt

comm -3 <(sort books.txt|uniq ) <(sort books1.txt|uniq ) comm -23 <(sort books.txt) <( sort books1.txt) comm -13 <(sort books.txt) <( sort books1.txt)

temberature commented 5 years ago

dir /a-D /S /B

temberature commented 5 years ago

dir /s /b /o:gn /a-d .epub .pdf .mobi .azw3 > books.txt

temberature commented 5 years ago

chmod +x file : No such file or directory dos2unix