Re: Fwd: Clearing RAM Caches
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 '>' is implemented by the shell
first creating the specified file and then when it forks a process for
the command ('echo' in this case) it makes file descriptor number 1 in
that process (the descriptor used by convention and Standard Output)
refer to the file opened.
The reply you got from Anssi Saari gave an example of a command that
will do what you want.
--
Tixy
Reply to: