How to Clear Memory Cache on Linux

By default, every Linux OS has an efficient memory management system used to clear the buffer cache periodically. You can manually free up the memory cache with the following simple command:

# echo 3 > /proc/sys/vm/drop_caches"

However, if you want to force the Linux OS to do clearing memory cache on a particular interval, just add the command to cron job. Here, I show you how.

Tips: Custom Configurations of httpd.conf on WHM/CPANEL server

Here are the two common situations of adding custom changes:

Changes added inside a

1
<VirtualHost>

This is very simple as we only need to create a single file that will contain our changes. But we need to understand the correct location on where to place this file so that our changes will be read properly.

“Tips: Custom Configurations of httpd.conf on WHM/CPANEL server”Continue reading

TIPS: “stdin is not a tty” when using SCP

SCP / SSH may not need a (pseudo-)terminal but something may expect it regardless on the remote end.

Does any global or personal shell resource files contain “stty” or “mesg” (‘egrep -r “stty|mesg” /etc/bashrc /etc/profile /etc/profile.d ~/.bashrc ~/.bash_profile;’)? For example:

root@server [/]# egrep -r "stty|mesg" /etc/bashrc /etc/profile /etc/profile.d ~/.bashrc ~/.bash_profile
/etc/bashrc:mesg y
root@server [/]#

If exactly as above, then you need just to comment this row in /etc/bashrc file.

Scroll to top