From: Kenn Humborg (kenn at domain bluetree.ie)
Date: Mon 18 Oct 1999 - 12:40:57 IST
On Mon, Oct 18, 1999 at 12:17:15PM +0100, John P . Looney wrote:
> On Mon, Oct 18, 1999 at 01:01:13PM +0200, Smith, Alan mentioned:
> > Stupid question , but what do I need to change on my linux box to show the
> > uptime every time a user logs in ?? (RH6 btw)
> > Regards & Thanks ,
> > Alan.
> echo "uptime" >> /etc/profile
If you've got a /etc/profile.d directory, then it's better to do:
# echo uptime > /etc/profile.d/uptime.sh
# chmod a+x /etc/profiled./uptime.sh
All .sh scripts in /etc/profile.d are run by /etc/profile.
Doing it this way means that your changes won't be
clobbered by an upgrade (nor will to have to compare
.rpmsave files and merge changes manually).
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:45 GMT