Search Results for: centos - Page 3

How To Join CentOS Linux To An Active Directory Domain

Here we’ll show you how to add your Linux system to a Microsoft Windows Active Directory (AD) domain through the command line. This will allow us to SSH into the Linux server with user accounts in our AD domain, providing a central source of cross-platform authentication.

Read more »

How To Enable Or Disable SELinux In CentOS/RHEL 7

Security Enhanced Linux (SELinux) is enabled and running in enforcing mode by default in CentOS/RHEL based Linux operating systems, and with good reason as it increases overall system security.

Despite this there may be times when you want to temporarily or permanently disable SELinux, which is what we’ll cover here.

Read more »

How To Reset Root User Password In CentOS/RHEL 7

Normally resetting the root password is a simple task if you’re logged in already with root privileges, however if you forget the password and need to change it things become a little more difficult.

The process has changed from CentOS/RHEL (Red Hat Enterprise Linux) version 6 to 7, as previously you would boot into single user mode and then change the password as root. From version 7 the equivalent modes are the rescue or emergency targets, however these require the root password before you can do anything which doesn’t help us here, so we’ll take you through the new process to change the lost root password.

This is also a task that you will need to know how to perform for the RHCSA exam.

Read more »

How To Upgrade MariaDB Version 10.1 to 10.3

This short guide will show you how to upgrade MariaDB 10.1 to 10.3 in CentOS 7 Linux. We’ll start by modifying the repository file and perform a ‘yum update’. This may fail to automatically update the MariaDB-server package, so I’ll show you how to manually use the mysql_upgrade script to complete the process.

Read more »

21 ss Command Examples In Linux

The Socket Statistics (ss) command is similar to netstat, in that it is used to display useful network socket information.

For some time now the netstat manual page has noted “This program is obsolete. Replacement for netstat is ss.”, so this is going to be a useful command to know how to use moving forward.

Fortunately a lot of the options are similar to the ones used by netstat, however there are a few differences as we will see.

Read more »

How to Restore a Deleted File in Linux

If you’ve accidentally deleted a file in Linux, don’t worry, you can probably still restore it as long as that area of disk has not yet been overwritten. This post will show you how to easily restore a deleted file in Linux.

Foremost is able to search a disk or raw image file to recover files based on their headers, footers, and internal data structures.

Read more »

How To Install An RPM File In Linux

RPM files exist to make the software installation and upgrading process easier. They allow us to simply use an RPM file to install a software package, and when combined with package managers such as Yum or DNF we will also get all required dependencies downloaded and installed easily.

Read more »

How To Mount A Windows NTFS Disk In Linux

The New Technology File System (NTFS) is a proprietary file system created by Microsoft and is used extensively in Microsoft’s Windows operating systems.

By default most Linux distributions are not able to mount NTFS, however it is possible to install a driver that allows us to do this so that we can read and write data to an NTFS disk.

Read more »

13 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

“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 »