Steve Borba

My notes, I hope they help you, feel free to comment/add to them

Linux Commands

Just a list of commands I forget and need to find

screen /dev/ttyUSB0 [9600-56k baud]
ctrl + a, then, :screen /dev/ttyS0

sudo modprobe 8021q
sudo vconfig add ens160 1474
sudo ip addr add 192.0.2.17/27 dev ens160.1474
sudo ip link set up ens160
sudo ip route add 192.51.100.0/26 via 192.0.2.1
sudo ip link add vxlan0 type vxlan id 15461131 dev ens5 dstport 4789
sudo ip link set vxlan0 up
sudo tcpdump -w capture-%Y-%m-%d_%H.%M.%S.pcap -G 60 -i vxlan0 "host 10.56.0.3 and ( ip[44:2]=0x01bb or ip[46:2]=0x01bb ) and (( ip[36:4]=0x4B22062 or ip[40:4]=0x4B22062 ) or ( ip[36:4]=0x6353BF22 or ip[40:4]=0x6353BF22 ))"
sudo apt install inetutils-traceroute # version 2:2.2-2, or
sudo apt install traceroute # version 1:2.1.0-2

traceroute -I google.com
for D in /sys/class/scsi_device/*; do echo "- - -" > ${D}/device/rescan ; done
for D in /sys/class/scsi_host/*; do echo "- - -" > ${D}/scan ; done


pvresize /dev/sda5
lvdisplay (find lv path)
lvextend enterLVpath -l +100%FREE
resize2fs enterLVpath

This is to get rid of SNAP – snap is really bad for docker stuff

sudo systemctl disable snapd.service
sudo systemctl disable snapd.socket
sudo systemctl disable snapd.seeded.service
sudo systemctl mask snapd.service


snap list
sudo snap remove <replace>

sudo rm -rf /var/cache/snapd/

sudo apt autoremove --purge snapd

rm -rf /home/*/snap

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>