We will be needing root permissions to enable this feature. Default view of vi/vim without syntax highlighting: It would be a lot easier for developers to read / create programs if the codes they are writing are more distinct, so let’s enable syntax highlighting in our environment. STEPS: Check whether our current version of vi supports […]
This method requires root privileges. Heads up, use this method at your own risk. I would not recommend using this approach in production level environment. Steps: Create a shell script drop_multiple_db.sh then paste the following contents in it. Set User and Password. Modify the contents of the DBS variable, write all the database names that you […]
You need to have root permissions to execute these commands I. DISABLE PING RESPONSE PERMANENTLY Append this line to /etc/sysctl.conf file. Reload sysctl. II. DISABLE PING RESPONSE TEMPORARILY Use this command to disable ping response: Use this command to re-enable ping response:
Background: 404 errors during yum install are usually encountered when the downloaded yum metadata in your CentOS gets obsolete. Solution: I’ll be assuming that you already have root privileges in your machine. You have 2 options to resolve this problem. 1st option is to clear the yum metadata using this command: 2nd option is to […]
Steps: Login to your server. Let’s check your default location using pwd. Modify your .bashrc file. Append the cd /<desired location>. Save Logout/exit. Login again then check if your default directory is changed.
You can delete all files and/or directories with some exceptions using this command: We will be using: ls command to list all the names of files and folders on our current directory. | grep -v (grep inverse) to filter all the names of files and folders which are not on your <name> list. | xargs to pass the results from the previous commands […]