From 7487dc74ddf0f5ce87a78901ea35a10032d7f6ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin-Charles=20Guih=C3=A9neuf?= Date: Wed, 20 Jan 2021 19:08:55 +0100 Subject: [PATCH] navi: Add meld cheat sheet --- navi/misc.cheat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/navi/misc.cheat b/navi/misc.cheat index edca056..c4f21f1 100644 --- a/navi/misc.cheat +++ b/navi/misc.cheat @@ -42,6 +42,9 @@ ip addr show dev | grep "inet " | sed "s/ *inet \([^ ]*\) .*/\1/" | # Get devices on interface nmap -sP +# Compare 2 files +meld <(hexdump -C ) <(hexdump -C ) + $ 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}'