You are here

mix

Change folders and subfolders permission through SSH

If you want to change the permission 755 to only directory present under the /home/user/public_html/subfolder then use following command

On shell

root@gunjan[~]#cd /home/user/public_html/subfolder
root@gunjan[/home/user/public_html/subfolder ]#find . -type d -exec chmod 755 {} \;

And if you want to change the permission 755 to only files present under the /home/user/public_html/subfolder then use following command

On shell

To temporarily set swap to 0

This will empty your swap and transfer all the swap back into memory. First make sure you have enough memory available by viewing the resources tab of gnome-system-monitor, your free memory should be greater than your used swap. This process may take a while, use gnome-system-monitor to monitor and verify the progress.

sudo swapoff -a

To set the new value to 0:

To turn swap back on:

sudo swapon -a

To permanently set swappiness to 0:

sudoedit /etc/sysctl.conf

Add this line vm.swappiness = 0

sudo shutdown -r now # restart system

Pages