Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: VPS Setup

Create Bash aliases on CentOS to streamline CLI tasks—edit ~/ bashrc with
nano ~/.bashrc
and add lines like alias mysqlroot='mysql -u root -p' for quick MySQL access or alias ftpls='ls -lh /var/ftp' for FTP dir checks Apply changes with
source ~/.bashrc
—test by typing mysqlroot and entering your password expecting the MySQL prompt Add alias pingtest='ping -c 10 8 8 8 8' to monitor latency (<10ms ideal) This boosts efficiency for managing phpMyAdmin or UFW rules saving time on repetitive commands across VPS sessions

Back to All Tips