1)To Clear PageCache only echo 1 > /proc/sys/vm/drop_caches 2)To Clear dentries and inodes. echo 2 > /proc/sys/vm/drop_caches 3) To Clear PageCache, dentries and inodes. # sync; echo 3 > /proc/sys/vm/drop_caches [ … ]
Category: Real Time Concepts
Rsync
To copy from one server to other server with incremental based we can go with rsync as shown below. rsync -avz username@IP:/var/www/html/Foldername/* 2019bkp/ &
Manual Log Rotation
Info: With the -f, –force option the logrotate will force the rotation of files even if they do not meet the specified criteria such as minsize, age, etc. logrotate –force [ … ]
Log
logrotate -d /etc/logrotate.d/apache2.conf(to log rotate manually) OR cd /etc/logrotate.d logrotate –force kannelnum (Manual Logrotate) cat /etc/logrotate.d/kannel801 ——————————- /var/log/kannel/kannellog/access45.log {hourly missingok rotate 7 compress delaycompress #notifempty create 640 root root sharedscripts [ … ]
How To Do Log Rotation
/etc/logrotate.d/apache2.conf /var/log/apache2/* { weekly rotate 3 size 10M compress delaycompress } The first line indicates that the directives inside the block apply to all logs inside /var/log/apache2: weekly means that [ … ]
How To Add SSL Certificate To Your Website
To add ssl certificate to the website we need to follow below steps: To create .key and .csr files to your website execute below command thwen you will get output [ … ]
How to know Linux OS versions Ubuntu/Centos/Redhat/
we can kow ubuntu versions with any one of following commands lsb_release -a cat /etc/os-release hostnamectl we can kow Centos versions with any one of following commands you need to [ … ]
How To Install Google Chrome In Ubuntu And Centos
Download the latest Google Chrome package with wget command as below wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb After downloading Google chrome install it as below sudo dpkg -i google-chrome-stable_current_amd64.deb Now you can start it [ … ]
How To Install Firefox In Ubuntu 16 And Centos 7
If Firefox is already installed remove with following commands For ubuntu sudo apt-get remove firefox For centos sudo yum remove firefox after uninstalling firefox unlink or rename the current firefox [ … ]
How To Create a Swap Memory
As we know that swap is a sub directory in root hierarchy,And this Swap plays main role when the the total amount of physical RAM memory is full,all the inactive [ … ]