[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Fwd: Clearing RAM Caches





---------- Forwarded message ---------
From: Timothy M Butterworth <timothy.m.butterworth@gmail.com>
Date: Mon, Aug 15, 2022 at 9:04 PM
Subject: Re: Clearing RAM Caches
To: Tixy <tixy@yxit.co.uk>




On Mon, Aug 15, 2022 at 4:12 AM Tixy <tixy@yxit.co.uk> wrote:
On Mon, 2022-08-15 at 02:50 -0400, Timothy M Butterworth wrote:
> When I run `sudo echo 1 > /proc/sys/vm/drop_caches` I receive the following
> error: bash: /proc/sys/vm/drop_caches: Permission denied

Because the output redirection occurs as your normal user, all you are
doing is executing the 'echo 1' command as the superuser.

 
Thanks for the clarification. `echo 1 > sudo /proc/sys/vm/drop_caches` seems to work just fine. 
 
--
Tixy



--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀


--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀

Reply to: