sudo echo 3 > /proc/sys/vm/drop_caches
bash: /proc/sys/vm/drop_caches: Permission denied
sudo is placed on echo, and > is also a bash command, sudo does not work on it, so the permissions are not enough
echo 3 | sudo tee /proc/sys/vm/drop_caches
sudo echo 3 > /proc/sys/vm/drop_caches
bash: /proc/sys/vm/drop_caches: Permission denied
sudo is placed on echo, and > is also a bash command, sudo does not work on it, so the permissions are not enough
echo 3 | sudo tee /proc/sys/vm/drop_caches