decreasing swap area

there is a problem here … i want to decrease my swap area and use as much ram as possible … my parrot linux version is (4.1 64-bit) and my processor is
(Intel® Core™ i7-4510U CPU @ 2.00GHz × 4 ) my ram 8 gib

when i open command terminal and write (cat /proc/sys/vm/swappiness) it appears 60

so i want to change it to 10 so i write (sudo xed /etc/sysctl.conf) and here comes the problem … instead of opening a window for me it gives me ( sudo: xed: command not found)

so what can i do in this problem ???

Hi there…
Use instead
sudo nano /etc/sysctl.conf

Easier than vi if you are new to linux

1 Like

ok i wrote it and a window popped so i scrolled down to the end and wrote (vm.swappiness=10)

what should i do next ??? and yes i am new user for linux and i want you to recommend me a course to take to improve my linux skills espicially parrot linux

i want to know why this command didnt work (sudo xed /etc/sysctl.conf) ???/