navi: Add helpers (compare & bluetooth)
This commit is contained in:
parent
de475c976c
commit
b8259e5c0a
@ -42,10 +42,18 @@ ip addr show dev <interface> | grep "inet " | sed "s/ *inet \([^ ]*\) .*/\1/" |
|
||||
# Get devices on interface
|
||||
nmap -sP <ip>
|
||||
|
||||
# Compare 2 files
|
||||
# Compare 2 files (meld)
|
||||
meld <(hexdump -C <file_1>) <(hexdump -C <file_2>)
|
||||
|
||||
# Compare 2 files (bcompare)
|
||||
bcompare <file_1> <file_2>
|
||||
|
||||
# Disable Bluetooth ERTM
|
||||
sudo bash -c "echo Y > /sys/module/bluetooth/parameters/disable_ertm"
|
||||
|
||||
$ user: cat /etc/passwd | awk -F: '{ print $1}'
|
||||
$ group: cat /etc/group | awk -F: '{ print $1}'
|
||||
$ interface: ip link | grep "^[0-9]*:" | sed "s/[0-9]*: \(.*\):.*/\1/" | awk -F: '{ print $1}'
|
||||
$ ip: ip addr show dev <interface> | grep "inet " | sed "s/ *inet \([^ ]*\) .*/\1/" | awk -F: '{ print $1}'
|
||||
$ file_1: ls | awk -F: '{ print $1}'
|
||||
$ file_2: ls | awk -F: '{ print $1}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user