D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] kernel version

 

Neil Winchurst wrote:
> 
> Thanks for the info, I will remember that. Are there other useful files
> that work in the same way?
> 

Yes loads, as previously mentioned proc is full of kernel runtime
information. Many of the userspace tools such as uname read and/or write
to/from /proc for you as it is not always directly  human readable. All
uname does is query /proc/versions for you the extra options on uname
allow only some info to be generated that is very useful for scripts, eg  :-

/lib/modules/`uname -r`/

is the current kernel modules directory

other tools such as lsusb, lspci, ps, top etc all query /proc for system
information.

Normally the only way to talk to a kernel is via IOCTL calls, linux
gives us /proc to save a lot of hassle, and /sys (if you have it) is
also a kernel info folder.

Regards

-- 
Robin Cornelius
http://www.byteme.org.uk

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html