Tips & Tricks

root's picture

USE THESE COMMANDS AT YOUR OWN RISK. IF YOU DON'T UNDERSTAND WHAT THEY DO, DO NOT USE THEM AND GO TO MAN PAGES!

Compute and display the age of the user's password:

root@sol# echo $(/bin/perl -e 'print int(time/(60*60*24))') - $(grep root  /etc/shadow | cut -d: -f3) | /bin/bc
102

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself! Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!

Or at least link back to this website.

Recent content