While accessing MySQL in Interworx many of you got this error. [arunlal@lintechops]# mysqlERROR 1045 (28000): Access denied for user ‘iworx’@’localhost’ (using password: NO) This is due the password was empty on password field /root/.my.cnf cat /root/.my.cnf [client]user=iworxpassword= Please use the…
Author: Arunlal
Python – Sets
Sets Sets ate unordered collections of unique elements. There can only be one representative of the same object.
How to clear qmail queue
First of all, check the current mail queue with the following command. [arunlal@lintechops~]# /var/qmail/bin/qmail-qstat messages in queue: 2458 messages in queue but not yet preprocessed: 18 2. In order to remove the mail queue. Stop the qmail service. [arunlal@lintechops~]# service…
How to switch root without entering password?
After creating the user we need to provide him sudo privilege same as root. Create a file in “/etc/sudoers.d” as “/etc/sudoers.d/arunlal” vi /etc/sudoers.d/arunlal=========================arunlal ALL=(ALL) NOPASSWD:ALL========================== Add the above entry into the file and You are able to switch to root…
Some important netstat commands.
Sort by IP count netstat -ntu | awk ‘ $5 ~ /^[0-9]/ {print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n12 164.68.xx.xx 15 222.186.xx.xx 18 87.76.xx.xx 22 112.85.xx.xx 25 173.249.xx.xx 23 87.76.xx.xx 10 208.86.xx.xx Sort…
How to check booting time in Linux
Sometimes we are experiencing slowness in boot time. Here in this article, we are going to discuss about the boot time and the time breakdown of the services. Run the following command to find the boot time of the system.…
How to check if a disk is an SSD or an HDD
Here, I am going to share one of the easiest method to find the type of your drive. arunlal@lintechops:~$ cat /sys/block/sda/queue/rotational 1 1 —–>> HDD0 ——>> SSD In case of me, it’s HDD. Try the same let me know drive…
How to add spf record in interworx
Please follow the below steps to enable SPF. Access Siteworx of the account. Select Administration >> Mail Options >> SPF >> Click SPF Records
Command for finding disk usage of error_logs in the home directory
It’s really a headache while handling disk space issues with the Linux server. Today I am sharing one of the easiest commands to sort out the size of unwanted logs that can be easily removed from the server to tackle…
How to remove files using inode number?
An inode is a data structure on a filesystem, which provides the info about the file’s metadata like file permissions, ownership, file type, block details, attributes. Please run the following command to view the details of the inode number of…