LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-16-2012, 08:56 AM   #1
itmahesh
LQ Newbie
 
Registered: Aug 2012
Location: Pune
Posts: 2

Rep: Reputation: Disabled
changing kernel parameter


how to change kernel parameters
 
Old 08-16-2012, 09:19 AM   #2
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 257

Rep: Reputation: Disabled
To change kernel parameter, command:
Code:
$ sysctl
http://linux.die.net/man/8/sysctl
(OR)
You can modify kernel paremeters using /proc filesystem.
In /proc/sys contains all changeable kernel parameters.

eg. To enable IP forwarding
Code:
# echo 1 > /proc/sys/net/ipv4/ip_forward
Code:
# sysctl -w net.ipv4.ip_forward=1
If want to apply changes during system bootup
make changes in /etc/sysctl.conf
(OR) add "echo 1 > /proc/sys/net/ipv4/ip_forward" command in /etc/rc.local.
 
Old 08-17-2012, 07:57 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,649
Blog Entries: 4

Rep: Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935
This question could be interpreted in several ways ...

The boot loader has the capability to provide the kernel with a string of characters, which the kernel can interpret during startup and which it keeps for reference the entire time that the system is running. To change the string that is provided at boot-time requires a procedure that is specific to the boot loader which is being used.

Many of the effects of kernel parameter values can be affected by writing to one or more of the pseudo-files in /proc, an act which requires super-powers.
 
  


Reply



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
How to pass a Kernel Parameter? brian.wright Linux - Newbie 3 02-24-2009 04:03 PM
What does kernel parameter ramdisk_size do? TSloth Linux - Software 2 06-13-2008 03:43 AM
changing the parameter of -l<something> during ./confgure Zepiroth Linux - Software 1 12-13-2007 05:51 AM
linux bash - how to use a dynamic parameter in shell parameter expansion expression nickleus Linux - General 2 08-21-2006 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08: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
Open Source Consulting | Domain Registration