On Tue, Aug 16, 2022 at 12:36 AM <to...@tuxteam.de> wrote:

> On Mon, Aug 15, 2022 at 09:05:59PM -0400, Timothy M Butterworth wrote:
> > ---------- Forwarded message ---------
> > From: Timothy M Butterworth <timothy.m.butterwo...@gmail.com>
> > Date: Mon, Aug 15, 2022 at 9:04 PM
> > Subject: Re: Clearing RAM Caches
> > To: Tixy <t...@yxit.co.uk>
> >
> >
> >
> >
> > On Mon, Aug 15, 2022 at 4:12 AM Tixy <t...@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.
>
> You are correct I did have a file named sudo with "1
/proc/sys/vm/drop_caches" in it.

It looks like `sudo sh -c "/usr/bin/echo 1 > /proc/sys/vm/drop_caches"` is
the winner.


> Cheers
> --
> t
>


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

Reply via email to