navi: Add meld cheat sheet
This commit is contained in:
parent
969a7282ed
commit
f5d5a48780
@ -42,6 +42,9 @@ ip addr show dev <interface> | grep "inet " | sed "s/ *inet \([^ ]*\) .*/\1/" |
|
||||
# Get devices on interface
|
||||
nmap -sP <ip>
|
||||
|
||||
# Compare 2 files
|
||||
meld <(hexdump -C <file_1>) <(hexdump -C <file_2>)
|
||||
|
||||
$ 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}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user