Replace old text with new text Linux Command
[root@srv01 demo]# grep -rl ‘from test old’ . | xargs sed -i ‘s/from test old/from test new/g’
ERROR:- The response from the remote server was: 550 Please turn on SMTP Authentication in your mail client. mail-qk1-f172.google.com [209.85.222.172]:36503 is not permitted to relay through this server without authentication. SOLUTION:- Manage SMTP restrictions Click Enable to deny users the ability to bypass your mail server to send mail. To allow users the ability to bypass your…
To check the load: sar -q -f /var/log/sa/sa$(date +%d -d yesterday) To check the CPU status: sar -p -f /var/log/sa/sa$(date +%d -d yesterday) To check the Swap Space usage: sar -S -f /var/log/sa/sa$(date +%d -d yesterday) To check the RAM memory usage: sar -r -f /var/log/sa/sa$(date +%d -d yesterday)
Find Files and Directories in CentOS The find command helps you locate files and folders on your hard disk. There are additional parameters that can be passed to the command that help you find files and folders in multiple ways. Find by filename, modified time, find files and folders. Basic syntax find /path/to/search -option1 -option2…
I noticed that on my CentOS 6 box, I was still running nginx 1.0.15. I wanted to upgrade to nginx 1.10.1. However, when I ran sudo yum update nginx, it showed that there were no Packages marked for Update. Luckily, getting the latest version through Yum is straight-forward and only requires adding a new repo….
If you’ve ever gone in to a directory, for example a mail or log directory, and wanted to clear it of its contents, but faced an error like this: /bin/rm: cannot execute [Argument list too long] We have a solution for you. It’s nice and simple, and easy to remember. Paste and run the command…
There is no excerpt because this is a protected post.