![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2005
Location: California USA
Beans: 108
|
Finding out system information on Ubuntu Linux
Finding out system information on Ubuntu Linux
In order to get system navigation, change your login from user to root. On Ubuntu Linux type $ sudo –s –H You will be prompted for a password. Type in your password. Now your termimal will change from $ to # and you are in root. To get our information we will use the head command. The head command displays on the screen the first few lines of the file from which you are obtaining the information. It is convenient because the information you want in these cases are on the first few lines and head displays the information and closes. To obtain CPU information: # head /proc/cpuinfo An example of what you might get is shown below (In this case there is an AMD Atholon 1700 CPU running at 1469.793 MHz): processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 6 model name : AMD Athlon(tm) XP 1700+ stepping : 2 cpu MHz : 1468.793 cache size : 256 KB fdiv_bug : no hlt_bug : no To obtain Linux version and Debian version information # head /proc/version Here is a sample display. In this case I had a Ubuntu Linux 5.04 machine --- but the Linux and Debian numbers for that version of Ubuntu is different. Sometimes you want to know what version of Linux and/or Debian you have in order to see if a certain software distribution is compatible. Linux version 2.6.10-5-386 (buildd@terranova) (gcc version 3.3.5 (Debian 1:3.3.5-8ubuntu2)) #1 Tue Apr 5 12:12:40 UTC 2005 To obtain memory (RAM) information # head /proc/meminfo Here is a sample display for a computer with 256 MB of SDRAM MemTotal: 256812 kB MemFree: 14944 kB Buffers: 36772 kB Cached: 73916 kB SwapCached: 3708 kB Active: 141032 kB Inactive: 46184 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 256812 kB To obtain partition of your swap space: # head /proc/swap Knowing thw swap partition is important when you do upgrades. This sample output shows that the partition is hda5: Filename Type Size Used Priority /dev/hda5 partition 499928 20612 -1 To obtain partition sizes: # head /proc/partitions This output shows how a 30GB hard drive is divided: major minor #blocks name 3 0 40021632 hda 3 1 39521632 hda1 3 2 1 hda2 3 5 499936 hda5 254 0 39521632 dm-0 254 1 499936 dm-1 Last edited by crazybill; April 28th, 2005 at 12:56 AM.. |
|
|
|
|
|
#2 |
|
Gee! These Aren't Roasted!
![]() |
Re: Finding out system information on Ubuntu Linux
Just a spelling correction.
Code:
$ sudu –s –H |
|
|
|
|
|
#3 |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2005
Location: California USA
Beans: 108
|
Re: Finding out system information on Ubuntu Linux
Thanks. I corrected the keyboard error.
|
|
|
|
|
|
#4 |
|
Way Too Much Ubuntu
![]() Join Date: Nov 2004
Location: Canada
Beans: 321
Ubuntu 9.10 Karmic Koala
|
Re: Finding out system information on Ubuntu Linux
uname -r will also give the version running.
|
|
|
|
|
|
#5 |
|
Just Give Me the Beans!
![]() Join Date: Mar 2005
Beans: 65
|
Re: Finding out system information on Ubuntu Linux
you can use lsb-release to find details about your dist
df -H -T will also give info about partitions and free -m for mem info
__________________
(\ /) (O.o) (> <) This is Bunny. Copy Bunny into your signature to help him on his way to world domination |
|
|
|
|
|
#6 | ||
|
Grande Half-n-Half Cinnamon Ubuntu
![]() |
Re: Finding out system information on Ubuntu Linux
Two other typos:
Quote:
Quote:
Another thing, maybe "cat" would be better than "head". Ok, not the infos are useful, but eg. if you have more than 8 partitions you will miss something.
__________________
Search before posting new threads ! Community Documentation | UbuntuGuide | Ubuntu Wiki Ask questions the smart way |
||
|
|
|
|
|
#7 |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2005
Location: California USA
Beans: 108
|
Re: Finding out system information on Ubuntu Linux
Thanks. I didn't notice that. I must have been "spacedout"! I edited it with the space in case anyone tries to copy paste .. instead of type.
Concerning head vs cat, I prefer head in general because it puts less in the terminal window (I do most stuff through the network). In most cases that works fine. Of course, if you need to see more, cat is command of choice. |
|
|
|
|
|
#8 |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2005
Location: Sydney, Australia
Beans: 119
Ubuntu 8.10 Intrepid Ibex
|
Re: Finding out system information on Ubuntu Linux
for those people running a server (forexample , a LAMP server), you can install lm_sensor and phpsysinfo to find out all youy need to know regarding to the states of your server
|
|
|
|
|
|
#9 |
|
5 Cups of Ubuntu
![]() Join Date: Nov 2009
Beans: 23
|
Re: Finding out system information on Ubuntu Linux
I get this:
administrator@server1:~$ cat /proc/swap cat: /proc/swap: No such file or directory |
|
|
|
|
|
#10 | |
|
May the Ubuntu Be With You!
![]() Join Date: Jun 2006
Beans: 1,665
|
Re: Finding out system information on Ubuntu Linux
Quote:
Code:
cat /proc/swaps
__________________
How to use code blocks to post command output: Click Here Official Ubuntu Documentation |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|