Tip for Desktop Memory management, new vm tuning option

Bret Busby bret.busby at gmail.com
Tue Jul 30 15:39:25 UTC 2019


On 30/07/2019, Oliver Grawert <ogra at ubuntu.com> wrote:
> hi,
> Am Dienstag, den 30.07.2019, 10:34 -0400 schrieb Rashkae:
>
>> sudo echo "vm.watermark_scale_factor=500" >> /etc/sysctl.conf
>
> nope, that wont work ... you are only sudoing the "echo" not the actual
> writing (">>") to the file ...
>
> it should be more like:
>
> echo "vm.watermark_scale_factor=500" | sudo tee -a /etc/sysctl.conf
>
> ciao
> 	oli
>

It seems simpler to use vi (sudo vi), and i to insert the text (or a
to append it),
then paste the copied text from the clipboard,
then <ESC>
then <SHIFT><Z><Z>

:)

-- 
Bret Busby
Armadale
West Australia
..............

"So once you do know what the question actually is,
 you'll know what the answer means."
- Deep Thought,
 Chapter 28 of Book 1 of
 "The Hitchhiker's Guide to the Galaxy:
 A Trilogy In Four Parts",
 written by Douglas Adams,
 published by Pan Books, 1992

....................................................




More information about the ubuntu-users mailing list