Re: Fwd: Clearing RAM Caches

2022-08-16 Thread Tixy
On Tue, 2022-08-16 at 07:24 -0400, Greg Wooledge wrote: > The following two commands are equivalent: > > echo 1 > sudo /proc/sys/vm/drop_caches > > echo 1 /proc/sys/vm/drop_caches > sudo > > The file "sudo" will have "1 /proc/sys/vm/drop_caches" in it, because > echo received two arguments.  Red

Re: Fwd: Clearing RAM Caches

2022-08-16 Thread Greg Wooledge
On Tue, Aug 16, 2022 at 08:25:12AM +0100, Tixy wrote: > On Mon, 2022-08-15 at 21:05 -0400, Timothy M Butterworth wrote: > > > > > Thanks for the clarification. `echo 1 > sudo /proc/sys/vm/drop_caches` > > seems to work just fine. > > It doesn't, as Tomas pointed out it creates a file called 'sudo

Re: Fwd: Clearing RAM Caches

2022-08-16 Thread Timothy M Butterworth
On Tue, Aug 16, 2022 at 12:36 AM wrote: > On Mon, Aug 15, 2022 at 09:05:59PM -0400, Timothy M Butterworth wrote: > > -- Forwarded message - > > From: Timothy M Butterworth > > Date: Mon, Aug 15, 2022 at 9:04 PM > > Subject: Re: Clear

Re: Fwd: Clearing RAM Caches

2022-08-16 Thread Tixy
On Mon, 2022-08-15 at 21:05 -0400, Timothy M Butterworth wrote: > > > Thanks for the clarification. `echo 1 > sudo /proc/sys/vm/drop_caches` > seems to work just fine. It doesn't, as Tomas pointed out it creates a file called 'sudo' and puts a '1' in it. Output redirection done with a single '>'

Re: Fwd: Clearing RAM Caches

2022-08-15 Thread tomas
On Mon, Aug 15, 2022 at 09:05:59PM -0400, Timothy M Butterworth wrote: > -- Forwarded message - > From: Timothy M Butterworth > Date: Mon, Aug 15, 2022 at 9:04 PM > Subject: Re: Clearing RAM Caches > To: Tixy > > > > > On Mon, Aug 15, 2022 at

Fwd: Clearing RAM Caches

2022-08-15 Thread Timothy M Butterworth
-- Forwarded message - From: Timothy M Butterworth Date: Mon, Aug 15, 2022 at 9:04 PM Subject: Re: Clearing RAM Caches To: Tixy On Mon, Aug 15, 2022 at 4:12 AM Tixy wrote: > On Mon, 2022-08-15 at 02:50 -0400, Timothy M Butterworth wrote: > > When I run `sudo echo

Re: Clearing RAM Caches

2022-08-15 Thread Nicolas George
to...@tuxteam.de (12022-08-15): > echo 1 | sudo dd of=/proc/sys/and-so-on sudo sh -c "echo 1 > /proc/sys/and-so-on" Or, in this particular case: sudo systcl -w and-so-on=1 Regards, -- Nicolas George signature.asc Description: PGP signature

Re: Clearing RAM Caches

2022-08-15 Thread tomas
On Mon, Aug 15, 2022 at 11:13:07AM +0300, Anssi Saari wrote: > Timothy M Butterworth writes: > > > When I run `sudo echo 1 > /proc/sys/vm/drop_caches` I receive the following > > error: bash: /proc/sys/vm/drop_caches: Permission denied > > Unfortunately, it's your current shell and not root who

Re: Clearing RAM Caches

2022-08-15 Thread Anssi Saari
Timothy M Butterworth writes: > When I run `sudo echo 1 > /proc/sys/vm/drop_caches` I receive the following > error: bash: /proc/sys/vm/drop_caches: Permission denied Unfortunately, it's your current shell and not root who does the redirection in this case so no permissions. For a longer expla

Re: Clearing RAM Caches

2022-08-15 Thread Tixy
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 'ec

Clearing RAM Caches

2022-08-14 Thread Timothy M Butterworth
When I run `sudo echo 1 > /proc/sys/vm/drop_caches` I receive the following error: bash: /proc/sys/vm/drop_caches: Permission denied I have `%sudo ALL=(ALL:ALL) ALL` in my /etc/sudoers file. All commands should be allowed for group sudo. ls -la /proc/sys/vm/drop_caches --w--- 1 root root 0