Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-14-2009, 12:51 AM   #1
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, 01:18 AM   #2
LQ Newbie
Registered: Apr 2009
Posts: 27

Rep: Reputation: 17
cd /boot

uname -a and take kernel number

ls -lh | grep vmlinuz-"kernel number"

So Il do it,

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

-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 01:19 AM.
Old 05-14-2009, 01:21 AM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
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, 02:51 AM   #4
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,999

Rep: Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219
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.


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 08:19 PM
Installed Size on Hard Disk BuilderQ Linux - Distributions 1 09-11-2007 07:22 PM
Finding installed raw disks and size looseCannon Solaris / OpenSolaris 5 02-23-2005 02:26 PM
Installed 2.6.10 kernel on 10.1 and now I can't see command line... cereal83 Slackware 9 02-08-2005 12:31 PM
Problem with command "man" on a new installed kernel 2.6.9 Morz Slackware 2 01-16-2005 03:45 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:36 PM.

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