1A-File System Structure and Maintenance
1A-File System Structure and Maintenance
1A-File System Structure and Maintenance
Within the /proc/ directory, one can find a wealth of information detailing the system
hardware and any processes currently running. In addition, some of the files within the
/proc/ directory tree can be manipulated by users and applications to communicate
configuration changes to the kernel.
Examples
To change the host name
#cat /proc/sys/kernel/hostname
#echo www.example.com > /proc/sys/kernel/hostname
cat /proc/sys/net/ipv4/ip_forward
Returns either 0 or 1.
A 0 indicates that the kernel is not forwarding network packets.
Using the echo command to change the value of the ip_forward file to 1 immediately
turns packet forwarding on.