Finding out about disk space usage on centos is very easy, we just need to run a simple command to do that. It will return all available disk partitions with how much they are occupied with files and how much they are empty both in bytes and percentage. The Command: Centos check disk space command
Month: July 2020
Replace multi-line text in files via notepad++
Many a time we need to replace text in files, we do it manually all the time. But it becomes very much difficult if we need to do that for 1000’s of files and that too we need to replace multiple lines of text. So here I will show how we can replace multi-line text in files via notepad++. For…
Find a ‘word’ in history of commands that you ran on ssh
If you want to search in history to search for a specific command that you ran while ago, use grep as it’s used in command below. Replace *keyword* with the word you want to search, just like i want to search for *restart*.
ImageMagick – [ERROR] Failed to ensure ImageMagick-devel RPM for imagick PECL
So today I got some task and found that I need ImageMagick installed on my centos server. I verified and checked if my server support ImageMagick by running a small script and turned out that the server is missing ImageMagick installation. The result: Server was missing ImageMagick 🙁 So I went straight to WHM and searched pecl and clicked Manage…
Fix phpMyAdmin – HTTP error 404
phpMyAdmin – HTTP error 404 appears when the server does not find the default phpMyAdmin folder. This can be fixed if you manually download phpMyAdmin or by running the following command on SSH. Wait for command to finish, then reload phpMyAdmin page that gave error to confirm its working again.