Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: kernel

01 Apr

Kernel Version

Get the version of the kernal


cat /proc/version
OR
uname -r
admin Posted in Command Line, Linux command, kernel, Linux, proc, uname, version Leave a comment
28 Feb

Get Kernel Version

Show version of the kernel


cat /proc/version
admin Posted in Command Line, Linux command, kernel, Linux, proc, version Leave a comment
03 Jan

lsmod – Show Loaded Kernel Modules

This command shows the kernel modules that are currently loaded.


# lsmod

Module                  Size  Used by
vboxdrv                55088  0
autofs4                20421  2
ipt_MASQUERADE          6721  1
iptable_nat             9669  1
nf_nat                 18669  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4      11717  2 iptable_nat
nf_conntrack           51977  4 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4
....
admin Posted in Command Line, Linux cli, command, kernel, Linux, lsmod, module Leave a comment
11 Apr

Remove an existing Kernel

The final numbers(2.6.20.6) is the version of you kernel. You can get this using uname -r (for the current kernel)

rm -rf /lib/modules/2.6.20.6
rm /boot/System.map-2.6.20.6
rm /boot/vmlinuz-2.6.20.6
rm /boot/initrd-2.6.20.6.img
rm /boot/config-2.6.20.6
admin Posted in Command Line, Linux command, kernel, Linux, remove, uninstall Leave a comment
10 Apr

Compiling a 2.6 Linux kernel

Get the latest Kernel from kernel.org

Get a default .config file

cp /boot/config-`uname -r` ./.config

OR

make defconfig

Then configure the kernel - the hardest part 🙁

make xconfig

Compile/Install it

make
make modules_install
make install

[tags]kernel,linux,command,compile,configure,xconfig[/tags]

admin Posted in Uncategorized command, compile, configure, kernel, Linux, xconfig Leave a comment

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑