LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2009, 11:51 PM   #1
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 33
Cool Any command to know size of the installed kernel?


Is there anything which would say the size of the kernel , which is installed and used currently ?
 
Old 05-14-2009, 12:18 AM   #2
Recursion
LQ Newbie
 
Registered: Apr 2009
Posts: 27

Rep: Reputation: 17
Quote:
cd /boot

uname -a and take kernel number

ls -lh | grep vmlinuz-"kernel number"

So Il do it,

Quote:
uname -a
Quote:
Linux john 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009 x86_64 GNU/Linux
then
Quote:
ls -lh | grep vmlinuz-2.6.28

Quote:
-rw-r--r-- 1 root root 3.4M 2009-04-16 23:34 vmlinuz-2.6.28-11-generic

In *BSD you can just do "ls kernel", its a bit tougher in Linux. Though there may be a easier way.

Last edited by Recursion; 05-14-2009 at 12:19 AM.
 
Old 05-14-2009, 12:21 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,356

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
FYI
Code:
file vmlinuz-2.6.18-128.1.10.el5xen
vmlinuz-2.6.18-128.1.10.el5xen: gzip compressed data, from Unix, last modified: Fri May  8 01:51:27 2009, max compression
There's more than meets the eye
 
Old 05-14-2009, 01:51 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,535

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
If you compiled your own, you'll have the uncompressed kernel in your (toplevel) source tree - some distros (not many) even ship it.
Have a look for vmlinux. There are a few other variations too - kernel modules comes to mind.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
Installed Size on Hard Disk BuilderQ Linux - Distributions 1 09-11-2007 06:22 PM
Finding installed raw disks and size looseCannon Solaris / OpenSolaris 5 02-23-2005 01:26 PM
Installed 2.6.10 kernel on 10.1 and now I can't see command line... cereal83 Slackware 9 02-08-2005 11:31 AM
Problem with command "man" on a new installed kernel 2.6.9 Morz Slackware 2 01-16-2005 02:45 AM


All times are GMT -5. The time now is 07:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration