Email : inbox [at] sysadmin.lk
Linkedin : https://www.linkedin.com/in/prabatht
Facebook : https://www.facebook.com/prabath.hinoize
Related Articles
Install and configure FTP server on CentOS
Complete answer that solved my question for any others that are after a step by step walkthrough… Install vsftpd using “yum install vsftpd”. Create user with useradd [user_name]. Create user’s password with passwd [user_name]. (You’ll be prompted to specify the password). Create FTP directory in /var/ftp and then bind to the ‘home’ directory you wish […]
Delete Files Older Than X Days
Command Syntax find /path/to/files* -mtime +5 -exec rm {} \; Note that there are spaces between rm, {}, and \; This is a very simple tutorial how to find and delete files older than X days. I needed this for a project where i collected some images and after a while they took too much […]
Password less command line scripts with MySQL 5.6
I have a number of command line scripts that copy MySQL databases down from staging servers and store them locally. These scripts set the password on the command line using the -p option. With MySQL 5.6, a new warning is displayed every time my scripts run: Warning: Using a password on the command line interface […]