This is the command which can be used to show all the users with all the grants on mysql from command line.
select user,host,password from mysql.user order by user;
Useful command to add ssh key.
cat your_id_rsa.pub >> ~/.ssh/authorized_keys
SSH chain login.
ssh -A -t user@server1 ssh -A -t user@server2 ssh -A user@server3
Find in specific files and replace
grep -rl --include=*.xml oldname /var/www/html | xargs sed -i 's/oldname/newname/g'
Test CPU waiting time because of the IOPS
iostat -mx 1
Add ssh key to a remote server with a single command