Linux delete user command

To delete a user on a Linux system, you can use the userdel command. Here’s the basic syntax for using the userdel command: userdel <username> For example, if you want to delete the user john, you would run the following command: sudo userdel john Note that by default, the userdel command only removes the user … Read more

CentOS / RHEL Install htop Process Viewer

htop is a popular process monitoring tool for Linux that provides a more user-friendly and interactive way of monitoring system processes than the standard top utility. Here’s how you can install htop on CentOS or RHEL: Update the package index: Before installing any new packages, you should always update the package index on your system. … Read more

Mediawiki PHP Fatal error: Cannot redeclare wfProfileIn() Error and Solution

The PHP Fatal error: Cannot redeclare wfProfileIn() error in MediaWiki typically occurs when there is a conflict between multiple copies of the same function or class in your MediaWiki installation. This error can be caused by a number of different issues, such as: Multiple copies of the same extension installed in different directories A corrupted … Read more

RHEL / CentOS Yum Command: Blacklist Packages [ Disable Certain Packages ]

To blacklist packages using the yum package manager on Red Hat Enterprise Linux (RHEL) or CentOS, you can create a file in the /etc/yum.repos.d/ directory that excludes the packages you want to blacklist. The file should have the extension .repo, and the content should specify the packages you want to exclude, using the exclude option. … Read more

CentOS / RHEL: yum Command Reinstall Package

To reinstall a package using the yum package manager on CentOS or Red Hat Enterprise Linux (RHEL), you can use the yum reinstall command, followed by the name of the package you want to reinstall: sudo yum reinstall <package_name> For example, if you want to reinstall the httpd package: sudo yum reinstall httpd This command … Read more