ubuntu 常用命令

1
dpkg -l | grep -i "keyword"
1
sudo apt remove --purge XXX
1
sudo apt autoremove
1
wget "http://xxxxx.zip"
1
uname -a
1
uname -r
1
top
1
pidof xxx
1
pkill xxx
1
killall xxx
1
sudo fdisk -l
1
sudo umount /dev/sdb
1
sudo dd if=xxx.iso of=/dev/sdb
1
sudo dd if=xxx.iso of=/dev/sdb bs=2M

查看文件绝对路径

1
readlink -f file_path

ssh 从 server 拷贝文件到 local

1
scp -r username@ip_address:file_path dist_path