linux命令学习
创建加密分区:
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
相关推荐
tianhuak 2020-11-24
一路到黑 2020-10-30
farwang 2020-11-25
星愿心愿 2020-11-24
zhjn0 2020-11-24
昭君出塞 2020-11-23
bluecarrot 2020-11-23
linuxwcj 2020-10-21
以梦为马不负韶华 2020-10-20
彼岸随笔 2020-10-20
yutou0 2020-10-17
applecarelte 2020-10-16
ourtimes 2020-10-16
waterhorse 2020-09-19
MRFENGG 2020-11-11
rainandtear 2020-10-30
kyssfanhui 2020-10-20