diff --git a/navi/misc.cheat b/navi/misc.cheat index fd9eb8b..e7d784f 100644 --- a/navi/misc.cheat +++ b/navi/misc.cheat @@ -36,7 +36,10 @@ sudo usermod -a -G # Remove user from a group sudo deluser -# Port binding +# List port bindings +sudo lsof -i -P -n | grep LISTEN + +# Show binding on a port sudo lsof -i: # Get IP on interface @@ -51,6 +54,9 @@ meld <(hexdump -C ) <(hexdump -C ) # Compare 2 files (bcompare) bcompare +# Replace expression in files +ack -rl "" | xargs sed -i 's###g' + # Disable Bluetooth ERTM sudo bash -c "echo Y > /sys/module/bluetooth/parameters/disable_ertm"