Installing Required Packages
1 2 3 |
# yum install sendmail sendmail-cf m4 |
SSH with key based authentication allows you to log on different servers via the personal private key on all servers, needing not to remember several passwords.
SSH key pairs are two secure keys that can be used to authenticate a client to an SSH server. Each key pair consists of a public key and a private key.
Since kernel 2.6.16, a utility has been provided to allow the system to drop the page cache and/or inode and dentry caches on command, which can help free up a lot of memory.
Continue reading
In Linux environment, when you want to delete the files under one directory, you might see:
“sudo: unable to execute /bin/rm: Success”
Reason: too many files under the directory
Solution:
sudo find . -name ‘*’ -exec rm {} \;
The disks in RAID 1 array may fail at any time.
Continue reading
Assuming email server (for example, sendmail) is installed.
Step 1: add an entry to /etc/mail/virtusertable like:
user@domain.com user
Continue reading
1 2 3 |
find . -type f -mtime +1 -exec /bin/rm -f {} + |
or
1 2 3 |
find . -mindepth 1 -mtime +3 -delete |
.htaccess is a configuration file for use on web servers running the Apache Web Server. Continue reading
There are several methods to identify who logged in your Linux system. Continue reading
Use the following commands to list the open ports.
sudo netstat -ltn
Continue reading