Hi: Why is it that you cant edit a file any file in /proc with an editor but you can with echo??? Thanks, Raul
Because /proc is not a real filesystem, nor does it contain real files. I don't have a complete technical understanding of what /proc is, but I think of it as reading the current state of the computers memory, the current configuration of processes currently running. On Wednesday, December 26, 2001, at 12:05 PM, Raúl Gutiérrez Segalés wrote:
Hi:
Why is it that you cant edit a file any file in /proc with an editor but you can with echo???
Thanks,
Raul
Though I'm not a kernel hacker by any means, it's my
understanding that everything in Unix is a file. However,
/proc is special. The /proc directory and all the files it contains
are generated on the fly. They exist in memory only, and are
not saved on the hard disk. It would be pointless to try to edit
or delete them, and possibly doing this would cause the machine
to freeze or crash (not certain about that, but I wouldn't want to
try).
- Robert Storey
On Wed, 26 Dec 2001 12:11:12 -0800
Gnu iBook 2
Because /proc is not a real filesystem, nor does it contain real files.
I don't have a complete technical understanding of what /proc is, but I think of it as reading the current state of the computers memory, the current configuration of processes currently running.
On Wednesday, December 26, 2001, at 12:05 PM, Raúl Gutiérrez Segalés wrote:
Hi:
Why is it that you cant edit a file any file in /proc with an editor but you can with echo???
Thanks,
Raul
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
Not so, you can cat into files under proc and make changes to the Kernel at
runtime. Example is increasing the file descriptors or shared memory. These
things are necessary for high volume mail servers or Oracle on Linux. SuSE
has tuned the Kernels pretty well for most applications, so unless you are
opening 7000+ sockets like on a very busy mail server, or needing to run
Oracle to the extreme, seldom will you find needs to change proc definitions
under SuSE Linux.
Regards,
Jon
----- Original Message -----
From: "Robert Storey"
Though I'm not a kernel hacker by any means, it's my understanding that everything in Unix is a file. However, /proc is special. The /proc directory and all the files it contains are generated on the fly. They exist in memory only, and are not saved on the hard disk. It would be pointless to try to edit or delete them, and possibly doing this would cause the machine to freeze or crash (not certain about that, but I wouldn't want to try).
- Robert Storey
On Wed, 26 Dec 2001 12:11:12 -0800 Gnu iBook 2
wrote: Because /proc is not a real filesystem, nor does it contain real files.
I don't have a complete technical understanding of what /proc is, but I think of it as reading the current state of the computers memory, the current configuration of processes currently running.
On Wednesday, December 26, 2001, at 12:05 PM, Raúl Gutiérrez Segalés wrote:
Hi:
Why is it that you cant edit a file any file in /proc with an editor but you can with echo???
Thanks,
Raul
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
participants (4)
-
Gnu iBook 2
-
Jon
-
Raúl Gutiérrez Segalés
-
Robert Storey