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 Disable Server Signature OFF
If your server signature is on. Turning off your server signature is generally a good thought from a security point of view. shows signature as below Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips [ … ]
Shell Script Real Time Exmples
Open terminal and create some sample shell scripts 1)To kill Locked files at a time vi killlogs.sh mysql -e “show processlist” -ppassword@123 | grep Locked | awk ‘{ print $1}’ [ … ]
Ubuntu Os Tricks
1)figlet using figlet content appears in big . Ex: figlet HELLO 2) sl / LS Train goes in terminal 3)pi pi 24 op:3.14 4)factor factor 25 5 factor 125 5 [ … ]
Unable to access terminal in ubuntu
opened xterm from /usr/share/applications and ran the command DISPLAY=:0 gnome-terminal -x sleep 10 Just after this a Terminal appeared. I have closed the both xterm and Terminal I tried to [ … ]
Shell Script And its Uses
Shell Script is series of command written in a text file. Shell Script is just like batch file is MS-DOS but have more power than the MS-DOS batch file. Use [ … ]
Linux Shell And Its Types
Computer understand the language of 0’s(zeros) and 1’s(ones) called binary language. In early days of computing, instruction are provided using binary language, which is difficult for all of us, to [ … ]
Introduction To Kernel
Kernel is heart of Linux O/S. It manages resources of Linux O/S. Resources means facilities available in Linux. For example Facility to store data on printer, memory, file management etc. [ … ]
Exfat unknown filesystem ubuntu
Ubuntu 13.10 or higher Since Ubuntu 13.10, this package is in the main repository. Just install exfat-fuse and exfat-utils: sudo apt-get install exfat-fuse exfat-utils Ubuntu 12.04 For ubuntu 13.04 and [ … ]