Linux
Read More
grep etter flere ting samtidig
# ps auxww | grep “udev\|devfs” | grep -v “grep” # cat filnavn.txt |grep “\”Name\”\|Description” > skrivere_navn_og_ip.txt
A chronological documentation test project, nothing serious, really!
# ps auxww | grep “udev\|devfs” | grep -v “grep” # cat filnavn.txt |grep “\”Name\”\|Description” > skrivere_navn_og_ip.txt
Run this command from a console window ps axo “%u,%U,%p,%a,%z”
# ps ahx –format=%c | sort -u
# cat /etc/passwd | awk -F: ‘{print $1}’ | sort | uniq -c | grep -v 1 # cat /etc/shadow | awk -F: ‘{print $1}’ | sort | uniq -c | grep -v 1 # awk -F: ‘{ print $1, $5}’ /etc/passwd