Unable to modify /proc files in ubuntu?
Cef
cef at optus.net
Mon Mar 7 10:53:33 UTC 2005
On Mon, 7 Mar 2005 16:34, Pete Shinners wrote:
> I've got some instructions to modify one of the files under the proc tree.
>
> echo 1 > /proc/sys/vm/legacy_va_layout
>
> How is this possible under Ubuntu? I've tries a few styles of sudo command,
> but nothing will work. Under debian I would have just done this as root.
> What is the ubuntu way?
Try this:
sudo sh -c "echo 1 > /proc/sys/vm/legacy_va_layout"
This sort of thing should work for any sort of redirection or pipe, and
something similar appears in the sudo man page ('man sudo', in the EXAMPLES
section).
--
Stuart Young - aka Cefiar - cef at optus.net
More information about the ubuntu-users
mailing list