Comenzi
Comenzi
awk -F ":" '$7 == "/bin/false" {print "User is: "$1, "and the home dir is: "$6}'
/etc/passwd #
=> $7 == "/bin/false" # check if the 7th data column is /bin/false
-F ":" data delimiter to :
SAU putem si cu cut: cut -d: -f6 /etc/passwd
-----------------------------------------------------------------------------------
---------
/bin - basic programs (ls, cd, cat, etc.)
/sbin - system programs (fdisk, mkfs, sysctl, etc.)
/etc - configuration files
/usr/bin - apps (apt, ncat, nmap, etc.)
/usr/share - apps support and data files
-----------------------------------------------------------------------------------
---------