1.In Linux, the "echo" command is used to display a message on the screen or write to a file. When we use "echo 1" or "echo 2" to clear RAM Memory Cache, Buffer and Swap Space, we are actually writing a specific value to a system file, which triggers the kernel to perform a specific action. Here's what the values "1" and "2" represent: 2.Clear PageCache, dentries, and inodes The command "echo 1 > /proc/sys/vm/drop_caches" will clear the PageCache, dentries, and inodes in the Linux kernel. The PageCache holds recently used files and directories, while the dentries and inodes hold metadata about files and directories. Clearing these caches can free up memory on the system. 3.Clear PageCache, dentries, inodes and Swap Space The command "echo 2 > /proc/sys/vm/drop_caches" will clear the PageCache, dentries, inodes, and Swap Space. The Swap Space is an area on the hard drive that the kernel uses as a last resort when the RAM memory is full. Clearing the Swap Space can also help free up memory. 4.It's important to note that clearing caches can be risky and may cause performance issues. It's generally not recommended unless you know what you're doing and have a specific reason for doing it. For more topics subscribe to our channel, ruclips.net/channel/UCvTQ6WM-MSvCFVNCEtI6HPg
You need to be a super user. Type Sudo before hand in most cases, but looking at the video, looks like buddy is just using su only. Type su, hit enter. Enter your admin password (not your user password). You should be in the proper mode now. Don't do anything in this mode you think you might regret.
I have a vps with Plesk on it, I only have more than 140mb of RAM ... I was interested in following this tutorial ... but ... could they create problems with Plesk or my work?
what monster uses light mode in terminal
the one that got away....... lol
@@leifericson1658 Calm down my guy.
@@leifericson1658 calm down kid
🤣🤣
Wow. Very useful.
Thanks bro.........great help.......
Thanks for the feedback :-)
For more topics subscribe to our channel,
ruclips.net/channel/UCvTQ6WM-MSvCFVNCEtI6HPg
thanks linux help. can you make a video describing the installation of different desktop environments over a given distribution. Thanks
Good instructions, but stupid to use for free memory. Setting swappiness up correctly would be best.
How can we set the swappiness?
after 5years
and you can't still answer this question
Bro... What is echo 1, echo 2, and why are we used it?
1.In Linux, the "echo" command is used to display a message on the screen or write to a file. When we use "echo 1" or "echo 2" to clear RAM Memory Cache, Buffer and Swap Space, we are actually writing a specific value to a system file, which triggers the kernel to perform a specific action.
Here's what the values "1" and "2" represent:
2.Clear PageCache, dentries, and inodes
The command "echo 1 > /proc/sys/vm/drop_caches" will clear the PageCache, dentries, and inodes in the Linux kernel. The PageCache holds recently used files and directories, while the dentries and inodes hold metadata about files and directories. Clearing these caches can free up memory on the system.
3.Clear PageCache, dentries, inodes and Swap Space
The command "echo 2 > /proc/sys/vm/drop_caches" will clear the PageCache, dentries, inodes, and Swap Space. The Swap Space is an area on the hard drive that the kernel uses as a last resort when the RAM memory is full. Clearing the Swap Space can also help free up memory.
4.It's important to note that clearing caches can be risky and may cause performance issues. It's generally not recommended unless you know what you're doing and have a specific reason for doing it.
For more topics subscribe to our channel,
ruclips.net/channel/UCvTQ6WM-MSvCFVNCEtI6HPg
Thanks man.
Glad it helped! Thanks for the feedback :-)
For more topics subscribe to our channel,
ruclips.net/channel/UCvTQ6WM-MSvCFVNCEtI6HPg
@@linuxhelp5096 Thanks, I do that currently ;)
Super bro
Thanks for the feedback :-)
For more topics subscribe to our channel,
ruclips.net/channel/UCvTQ6WM-MSvCFVNCEtI6HPg
what does sync: echo 1,2,3 do ?????
echo 1 = Free pagecache only.
echo 2 = Free dentries and inodes.
echo 3 = Free pagecache, dentries and inodes
permission denied, how to solve?
You need to be a super user. Type Sudo before hand in most cases, but looking at the video, looks like buddy is just using su only.
Type su, hit enter. Enter your admin password (not your user password). You should be in the proper mode now. Don't do anything in this mode you think you might regret.
you can use also use this command to enter root mode it will garentee all things
sudo su
and then type the commands
I have a vps with Plesk on it, I only have more than 140mb of RAM ...
I was interested in following this tutorial ... but ... could they create problems with Plesk or my work?
?????
does it kill any process?
Proberbly. Specially restarting the swap when it's used by any program.
Maybe? Otherwise, just use "kill" or "xkill" if you want to be able to click on what you want to go bye bye.
Bro just has 1Gig ram and uses lightmode terminal
Yes it is enough to work with terminal
does not work
After entering echo 1 command , getting error msg of permission denied
Same here. Do you get the solution??
@@ramkrishnaadhikari5918 sudo hala Ani kam hunxa
you must be a root, sudo will not work either
first type sudo -i $ will become # then type
@@ramkrishnaadhikari5918 i can help you
type sudo root passwd root
then type password
oh I appreciate the video, I wish I could understand what the guy is saying. Very unfortunate
Release my phone memory