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

Re: Fwd: Clearing RAM Caches



On Mon, Aug 15, 2022 at 09:05:59PM -0400, Timothy M Butterworth wrote:
> ---------- 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.

This is... surprising. If I were you, I'd look around in the current
directory whether there's a file named `sudo' with an "1" in it.

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature


Reply to: