navi: Add helpers (compare & bluetooth)
This commit is contained in:
parent
759792da66
commit
73473b3c05
@ -42,10 +42,18 @@ ip addr show dev <interface> | grep "inet " | sed "s/ *inet \([^ ]*\) .*/\1/" |
|
|||||||
# Get devices on interface
|
# Get devices on interface
|
||||||
nmap -sP <ip>
|
nmap -sP <ip>
|
||||||
|
|
||||||
# Compare 2 files
|
# Compare 2 files (meld)
|
||||||
meld <(hexdump -C <file_1>) <(hexdump -C <file_2>)
|
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}'
|
$ user: cat /etc/passwd | awk -F: '{ print $1}'
|
||||||
$ group: cat /etc/group | 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}'
|
$ 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}'
|
$ 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