OpenSUSE Linux Rants

OpenSUSE Linux Tips, tricks, how-tos, opinions, and news

My Resume  -  My LinkedIn Profile

July 21, 2009

Linux command for “What’s up on this here box?”

by @ 8:33 am. Filed under bash, command-line, General Linux, sweet tools

Linux has so many marvelous tools. The great part about this is that you can combine the tools to make new tools. As you may know, there have been previous postings about a tool called ‘sup’ which tells you some useful information about the linux box into which you are logged. Having so many terminal windows open, and screen sessions going, it’s easy to get lost in the labyrinth of connections and sessions. This tool clears all that up for you really quick.

Since the last version, the most significant change is the ability to determine which version of which Linux distribution you are using.

Here is some sample output:

<=== SYSTEM ===>
  Distro info:  Welcome to openSUSE 11.1 - Kernel \r (\l).
  Kernel:       Linux laptop #1 SMP 2009-02-25 15:40:44 +0100 i686 i686 i386 GNU/Linux
  Uptime:        9:20am  up   0:47,  1 user,  load average: 0.64, 0.54, 0.38
  Memory:       Total: 1986Mb   Used: 730Mb     Free: 1256Mb
  Swap:         Total: 4180Mb   Used: 0Mb       Free: 4180Mb
  Architecture: i686
  Processor:    0 : Intel(R) Core(TM) Duo CPU T2250 @ 1.73GHz
  Processor:    1 : Intel(R) Core(TM) Duo CPU T2250 @ 1.73GHz
  Date:         Tue Jul 21 09:20:09 MDT 2009

<=== USER ===>
  User:         scott (uid:1000)
  Groups:       users www
  Working dir:  /home/scott
  Home dir:     /home/scott

<=== NETWORK ===>
  Hostname:     laptop
  IP (lo):
  IP (lo):
  IP (eth0):
  Name Server:


Download this “Linux ‘sup’?” script here.

4 Responses to “Linux command for “What’s up on this here box?””

  1. Bruno Says:

    nice, do you have a Git repo we can watch for updates?

  2. Strx Says:

    I’ve made a similar script you can find here ; enjoy, thanks

  3. matt mcinvale Says:

    very handy indeed. 🙂

    mjm@mjm-laptop:~$ ./sup

    Distro info: Ubuntu 9.04 \n \l
    Kernel: Linux mjm-laptop 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 19:49:51 UTC 2009 i686 GNU/Linux
    Uptime: 09:50:01 up 19:52, 4 users, load average: 0.09, 0.15, 0.17
    Memory: Total: 1980Mb Used: 1494Mb Free: 486Mb
    Swap: Total: 3922Mb Used: 6Mb Free: 3915Mb
    Processor: 0 : Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz
    Processor: 1 : Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz
    Date: Thu Jul 23 09:50:01 PDT 2009

    User: mjm (uid:1000)
    Groups: mjm adm dialout cdrom plugdev lpadmin admin sambashare
    Working dir: /home/mjm
    Home dir: /home/mjm

    Hostname: mjm-laptop
    IP (lo):
    IP (wlan0):
    Name Server:
    Name Server:

  4. Says:

    Nice and neat job :O)
    had seen a similar job with perl using Sys::Info;

OpenSUSE Linux Rants
Official OpenSUSE Linux Site

internal links:


SUSE Resources

search blog:


March 2022
« Feb    

60 queries. 0.674 seconds