zhouchenz 2020-02-02
创建加密分区:
cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb3 cryptsetup luksOpen /dev/sdb3 usb ls /dev/mapper/usb mkfs.etx4 /dev/mapper/usb e2label /dev/mapper/usb persistence mkdir -p /mnt/usb mount /dev/mapper/usb /mnt/usb touch /mnt/usb/test.txt umount /dev/mapper/usb cryptsetup luksClose /dev/mapper/usb
mount:
mount -o loop linux.iso /media/cdrom
egrep,awk,cut,sort,uniq:
netstat -pantu | egrep -v '0.0.0.0|:::|127.0.0.1' | awk '{print $5}' | egrep -v 'Address' | cut -d ':' -f 1 | sort | uniq
文件查找:
updatedb whereis -b nmap
find . -name "ps*" -exec cp {} /tmp/{}.bak \;
ifconfig:
ifconfig eth0 down macchanger -m 00:11:11:11:11:11 eth0 ifconfig eth0 up ifconfig eth0 192.168.0.11 netmask 255.255.255.0
管道:
cd aaa & ls #先执行cd,再执行ls cd aaa && ls #执行cd成功才执行ls cd aaa || ls #执行cd失败才执行ls
代理:
apt -o Acquire::http::proxy="socks5h://127.0.0.1:1080/" update curl -x socks5h://127.0.0.1:1080 https://deb.torproject.org