My Elementary OS freezes and crashes on coping large files. I try apply a fix I did find on Ubuntu forums: to change content of two files.
sudo sh -c 'echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes'
sudo sh -c 'echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes'
Sadly after every single reboot, the contents of these two files resets. Which one is the right way to add the above command to the startup?
- create a startup script or
- add the below lines to an existing startup script? (which one is that?)