SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
sorry for not knowing the exact name of it... but I know my friend runs gentoo and he has it so on his laptop it shows his uptime, battery life, wifi stability and many other things in the part that consists of username@host.. I know he has edited the .bashrc file to do so... I was just wondering if anyone knew how I can get an uptime listed in there as well... thank you
One last thing how can I get it to display...
username@hostname | Uptime:XhXmXs$ (or whatever the prompt looks like at the end ) or something similiar... thank you so much for your help
up v0.3 -- by: David Cantrell (david@burdell.org)
up is a robust uptime display utility for Linux systems.
Usage: up [option]
--compare | -c Display uptime in standard uptime format, for quick
comparison with other systems.
--numbers | -n Output numbers only (useful for scripts?). They
are in this order: decades, years, weeks, days,
hours, minutes. Zero values are not eliminated.
--noup | -u Displays the default uptime format without the
preceding 'up'.
--version | -v Return the version number and author information.
--help | -h Display this screen.
Can't remember where I got it. I think with my /sys script for xchat.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.