Multi-line sed replacement linux
Print block of text between START and END markers
sed -n '/START/,/END/p' file.txt
more linux
all 133 commands →
Unique sorted values
sort file.txt | uniq -c | sort -rn
Show users logged in
who -H && w
Last logins
last -n 20 | head -25
Failed login attempts
journalctl -u ssh --since '24h ago' | grep 'Failed password' | awk '{print $(NF-3)}' | sort | uniq -c | sort -rn | head -10
Check sudo access
sudo -l -U <username>