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

One Response to aboutusers

  1. Pingback: Aikataulu – Linux palvelimet ict4tn021 4-ti ja 5-to – alkusyksy 2017 – 5 op | Tero Karvinen

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Picks

  • Boxing Clock for AndroidOcton8 Diving T-ShirtsShaking Tower Panda Android GameLearn Chinese with Android
  • Student projects