Scripting
Read More
Liste opp alle prosesser som kjører på systemet, uten duplikater
# ps ahx –format=%c | sort -u
A chronological documentation test project, nothing serious, really!
# 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