The following script will go through all your cPanel users and their domains, and print on the terminal a list of all current email accounts. cat /etc/userdomains | sed "s/://g" | awk {'system("ls -1d /home/"$2"/mail/"$1"/* 2> /dev/null")'} | sed...
Every time you update yum it leaves package cache files on the server.
You can use the following commands to clean up yum files:
yum clean all
Simple Answer: You will never use a index this way. Lets look at the following examples: EXPLAIN SELECT * FROM `wp_posts`; +—-+————-+———...
lslists files and foldersls -lrtlists files and folders in datel orderls -lalist hidden files and folders and visiblecd /foldercd means to change folder where folder is a valid foldercd /changes you back to the root pathcd ..changes folders back one...
ORM Package for Node.js. Works with MySQL, PostgreSQL and SQLite. var orm = require('orm'); orm.connect("mysql://username:password@host/database", function (err, db) { if (err) throw err; var Person = db.define('person', { name : String, surname :...
The SELECT statement is used to select or fetch data from a your MySQL Database. It’s the most common type of query issued to a database. There are many ways to query a database, but were going to focus on the SELECT statement...
By default on Linux servers SSH runs on 22 port. We can change the default SSH port for Linux server as an added security measure. NOTE: Before changing the SSH port makes sure the new SSH port does not conflict with any known, used or blocked...
Most interactive websites nowadays would require a user to log in into the website’s system in order to provide a customized experience for the user. Once the user has logged in, the website will be able to provide a presentation that is...