Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
  1. Is there any common directory to find kernel file in all Linux distributions?if yes please tell me how to browse to the directory?

  2. Where can I find the Linux file in Ubuntu & RedHat operating systems?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

There no universal standard, but the kernel is usually found in the /boot directory.

share|improve this answer
    
i found the directory and it lists many files may i know which is main kernel file? –  BlueBerry - vignesh4303 Aug 17 '12 at 8:14
    
You can use uname -r to find out the version you're running and then look for a file in /boot with that name. You can also use cat /proc/cmdline to find the kernel path, but note that this path is relative to the root image at boot time, so / likely means /boot/ in the running system. –  David Schwartz Aug 17 '12 at 8:17
    
path is relative to the root image at boot time:does it mean the installed directory sir? –  BlueBerry - vignesh4303 Aug 17 '12 at 8:23
    
The path that the kernel reports that it was loaded from is relative to the root as it was at the time the kernel was loaded. That's probably called /boot by the time the system is fully loaded. (After the kernel has been booted, the root is "pivoted" to the normal root and the boot time root is usually called /boot in the run-time filesystem.) –  David Schwartz Aug 17 '12 at 8:23
    
thanks sir,maybe i need to ask a question how does Linux works for detailed learning,thanks for spending your valuable time –  BlueBerry - vignesh4303 Aug 17 '12 at 8:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.