navi: Add meld cheat sheet
This commit is contained in:
parent
e6e3110a58
commit
0feb7050f5
@ -42,6 +42,9 @@ 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
|
||||||
|
meld <(hexdump -C <file_1>) <(hexdump -C <file_2>)
|
||||||
|
|
||||||
$ 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}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user