Skip to main content
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

this one should work regardless the linux distribution you are running. You need to cover the redirection when running sudo.

$ sudo sh -c "$(which echo) 3 > /proc/sys/vm/drop_caches"

Credits: http://unix.stackexchange.com/a/148442/101951https://unix.stackexchange.com/a/148442/101951 (i added the which echo part though)

this one should work regardless the linux distribution you are running. You need to cover the redirection when running sudo.

$ sudo sh -c "$(which echo) 3 > /proc/sys/vm/drop_caches"

Credits: http://unix.stackexchange.com/a/148442/101951 (i added the which echo part though)

this one should work regardless the linux distribution you are running. You need to cover the redirection when running sudo.

$ sudo sh -c "$(which echo) 3 > /proc/sys/vm/drop_caches"

Credits: https://unix.stackexchange.com/a/148442/101951 (i added the which echo part though)

Source Link
thebugfinder
  • 121
  • 1
  • 1
  • 3

this one should work regardless the linux distribution you are running. You need to cover the redirection when running sudo.

$ sudo sh -c "$(which echo) 3 > /proc/sys/vm/drop_caches"

Credits: http://unix.stackexchange.com/a/148442/101951 (i added the which echo part though)