aboutusers

 
#!/bin/bash
# aboutusers - print information about human users
# (Actually a bash shell scripting example program)
# (c) 2006-03-06 Tero Karvinen www.iki.fi/karvinen
# GNU General Public License version 2
 
for DIR in /home/*
do
        USER=$(basename $DIR);
        echo "=== User $USER ===";
        echo -n "Files in home directory: "
        ls -l $DIR|wc -l;
        echo "last logins: ";
        last $USER;
        echo
done;
 


Posted in Old Site | Tagged , , , | 1 Comment