Unix permission -
“rwx” means the directory’s owner can list its contents, create new files within it, and descend into it “r-x” means members of the directory’s group can list its contents and descend into it “r-x” means other users can list the directory’s contents and descend into it
https://ss64.com/bash/syntax-permissions.html
sudo find /path/to/Dir -type f -print0 | xargs -0 sudo chmod 644
Dump TCP logs -
-
capture from specific interface:
tcpdump -i eth0 -
capture only N number of packets:
tcpdump -c 5 -i eth0 -
Print capture packets in ASCII:
tcpdump -A -i eth0 -
Display available interface:
tcpdump -D -
Display packet in HEX and ASCII:
tcpdump -XX -i eth0 -
capture and save packets in a file:
tcpdump -w 0001.pcap -i eth0 -
read captured packets:
tcpdump -r 0001.pcap -
capture IP address packets:
tcpdump -n -i eth0 -
capture only TCP packets:
tcpdump -i eth0 tcp -
capture packets from specific port:
tcpdump -i eth0 port 22 -
capture packets from source IP:
tcpdump -i eth0 src 10.197.22.13 -
capture packets from dst IP:
tcpdump -i eth0 dst 10.197.22.13Size of files in the current directory
du -sh * | sed -e 's/\t/|/g' | sort -h -r