Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

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
Old April 23rd, 2005   #1
crazybill
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..
crazybill is offline   Reply With Quote
Old April 23rd, 2005   #2
dewey
Gee! These Aren't Roasted!
 
dewey's Avatar
 
Join Date: Feb 2005
Location: Pennsylvania; USA
Beans: 177
Send a message via AIM to dewey Send a message via MSN to dewey
Re: Finding out system information on Ubuntu Linux

Just a spelling correction.
Code:
$ sudu –s –H
To "$sudo -s -H"
dewey is offline   Reply With Quote
Old April 23rd, 2005   #3
crazybill
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.
crazybill is offline   Reply With Quote
Old April 25th, 2005   #4
magicfab
Way Too Much Ubuntu
 
magicfab's Avatar
 
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.
magicfab is offline   Reply With Quote
Old April 25th, 2005   #5
seven
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
seven is offline   Reply With Quote
Old April 25th, 2005   #6
Sam
Grande Half-n-Half Cinnamon Ubuntu
 
Sam's Avatar
 
Join Date: Feb 2005
Location: Geneva, Switzerland
Beans: 992
Ubuntu 9.10 Karmic Koala
Send a message via ICQ to Sam
Re: Finding out system information on Ubuntu Linux

Two other typos:
Quote:
Originally Posted by crazybill
# head/proc/version
Quote:
Originally Posted by crazybill
# head/proc/meminfo
They should have a space between "head" and the rest of the line.

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.
Sam is online now   Reply With Quote
Old April 28th, 2005   #7
crazybill
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.
crazybill is offline   Reply With Quote
Old April 28th, 2005   #8
stevenyu
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
stevenyu is offline   Reply With Quote
Old 1 Week Ago   #9
fifoKamb3
5 Cups of Ubuntu
 
fifoKamb3's Avatar
 
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
fifoKamb3 is offline   Reply With Quote
Old 1 Week Ago   #10
lavinog
May the Ubuntu Be With You!
 
Join Date: Jun 2006
Beans: 1,665
Re: Finding out system information on Ubuntu Linux

Quote:
Originally Posted by fifoKamb3 View Post
I get this:


administrator@server1:~$ cat /proc/swap
cat: /proc/swap: No such file or directory
try:
Code:
cat /proc/swaps
__________________
How to use code blocks to post command output: Click Here
Official Ubuntu Documentation
lavinog is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:22 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry