File does not exist error, but file does exist

I am trying to change the swappiness setting from 60 to 10, based on the instructions posted here.

i.e.

sudo touch /etc/systctl.d/100-manjaro.conf
sudo nano /etc/systctl.d/100-manjaro.conf

append vm.swappiness=10 and reboot

These instructions have worked for me in the past, but now I’m getting a file does not exist error from nano.

When I look for the 100-manjaro.conf file, I see that it does in fact exist.

I recently upgraded to the latest kernel, so I’m wondering if that’s what is causing the problem.

what happens if you print out to console ?

cat /etc/systctl.d/100-manjaro.conf

It might be permissions. Check those as well. AFAIK you need to edit/create that file with sudo.

For one thing theres a typo … that is not the correct path.

/etc/sysctl.d/

sysctl not systctl

5 Likes

And aren’t the files read alphabetically and not numerically? So, a file starting with a 1 would be read first and not actually how you probably intended as last position.

Use 99-manjaro.conf for this. (Maybe check first if another file is setting a different value)

I get this:

cat: /etc/systctl.d/100-manjaro.conf: No such file or directory

Yep, touch does not create files in non existing directories. :point_up_2:

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.