Category Archives: Linux - Page 3

13 du (Disk Usage) Command Examples In Linux

DU Disk Usage Command Examples In Linux

Here we’re going to cover how to find out what is using disk space in Linux with the ‘du’ disk usage command.

This command is extremely useful for tracking down large files, allowing you to find large files and free up precious disk space.

Read more »

The Difference Between su and sudo Commands In Linux

Differences Between su and sudo Commands In Linux

“What is the difference between the su and sudo commands?” Is a question commonly asked to those new to *nix based operating systems that we’ll explain and answer here.

In order to discuss the differences, let’s first establish what each command actually does with some examples.

Read more »

How To Disable Specific Package Updates In RHEL/CentOS Linux

How To Disable Package Updates In Linux

We can exclude a list of packages from being installed or updating from all repositories by specifying that we want to exclude them in the yum.conf file.

This will prevent yum from updating these packages and all future updates will be ignored as we will see here.

Read more »

11 rm Command Examples For Linux

rm Command Examples For Linux

The ‘rm’ command is used to delete files and directories, rm comes from the GNU Coreutils package and should be available by default in Unix/Linux based operating systems.

By the end of this guide you should know how to use rm to remove files and directories in Linux by following these practical examples.

Read more »

Where Is The php.ini Configuration File In CentOS?

Where Is The PHP Configuration File php.ini In CentOS Linux

How can we find the default configuration files for the PHP packages in CentOS Linux?

By using the RPM command we can query a package to find all of its associated configuration files. Failing that we can use the find command to search the file system for these files, as we will see here.

Finally we’ll cover how we can use a phpinfo file to show us which configuration file is in use.

Read more »

How To Start GUI In CentOS 7 Linux

Linux How To Start GUI In CentOS 7

By default a full installation of CentOS 7 will have the graphical user interface (GUI) installed and it will load up at boot, however it is possible that the system has been configured to not boot into the GUI.

In this quick guide we will show you how to swap to the GUI and enable it to start up by default on system boot.

Read more »

How To Setup A LAMP Web Server With CentOS 7 Linux

How To Setup LAMP Stack Web Server In CentOS 7 Linux

With the correct packages we can quickly setup a simple CentOS 7 server to run a full LAMP stack.

This will turn our Linux system into a web server capable of serving out dynamic content from a database back end.

Read more »

Where Is The Apache Configuration File In CentOS?

Where Is The Apache Configuration In CentOS Linux

How can we find where the default configuration files for the httpd package in CentOS are located?

By using the RPM command we can query a package to find all of its associated configuration files. Failing that we can use the find command to search the file system for these files, as we will see here.

Read more »

How To Disable The Firewall In CentOS 7 Linux

How To Disable The Firewall In CentOS 7 Linux

Default installations of the CentOS 7 Linux operating system have the firewalld firewall installed and enabled by default as a security measure, but how can we disable it?

In this quick guide we will show you how to disable both firewalld or iptables in CentOS 7 through the command line.

Read more »

How To Upgrade PHP 5.6 to 7.1 in CentOS 7 Linux

How To Upgrade PHP 5.6 to 7.1 in CentOS 7 Linux

In this post I’ll show you how to upgrade PHP 5.6 to 7.1 in CentOS 7 Linux. I performed this process today on this server and wanted to document the problems that I had along the way, along with relevant fixes.

Read more »