ss command on Linux

Using ss command on Linux

The ss command is the successor to the netstat command on Linux systems. The command is used by system administrators to see information about network connections. It allows you to check things like the status, origin, and destination of connections. In addition, ss displays route tables, interface statistics, masquerade connections, and multicast memberships.

In this guide, you’ll learn how to use the ss command through examples and explanations. We’ll show you its most common uses and everything you need to know in order to use it effectively.

In this tutorial you will learn:

  • How to use ss command

Read more

How to find file in Linux

How to find file in Linux

If you need to search for one or more particular files, Linux systems have a few powerful methods for locating them, such as the find and locate commands. Searching for a file with a specific name can be done, but you can also search for files that follow certain naming patterns. This can be broadened all the way to finding files based on file size, file extension, or a lot of other options.

It’s also possible to find a particular directory or search for files based on their contents, such as finding all files containing a specific text, but we cover those topics in separate guides.

In this tutorial, you’ll learn how to find a file in Linux by using the command line and GUI. Let’s get started.

In this tutorial you will learn:

  • How to find a file in Linux via command line
  • How to find a file in Linux via GUI

Read more

Changing MySQL user password

MySQL: change user password

Have you or one of your MySQL users forgotten the password to a MySQL account? It’s very easy to reset a MySQL user password on Linux, and we’ll show you the commands and step by step instructions below.

Changing the MySQL root password is a bit more involved, so we’ve written a separate guide on how to change MySQL root password.

In this tutorial you will learn:

  • How to change MySQL user password

Read more

firewalld on CentOS

Install firewalld on CentOS Linux system

firewalld is a front-end for the built in netfilter firewall on Linux systems. The main advantage of firewalld over using raw nftables/iptables commands is that it’s easier to use, especially for more complex firewall features like timed rules. In this regard, it’s similar to the uncomplicated firewall (ufw) that comes installed by default on Ubuntu systems.

On CentOS, firewalld is the default firewall interface and should already be installed on your system. In this guide, we’ll take you through the installation of firewalld on CentOS, which includes some basic usage commands so you can get started managing the firewall.

In this tutorial you will learn:

  • How to install and update firewalld
  • firewalld basic usage commands

Read more

Find all files containing specific text

Find all files containing specific text

You probably already know how to use the grep command to search for a text string in a file on Linux. But what if you want to retrieve a list of files that contain the text string? This is a task best suited for grep or the find command. We’ll show you how to do it in this guide.

In this tutorial you will learn:

  • How to use grep and find commands to find all files containing specific text

Read more

Jail ssh user to home directory on Linux

Jail ssh user to home directory on Linux

Jailing an SSH user to their home directory allows you (the administrator) to exercise a lot of control and security over the user accounts on a Linux system.

The jailed user still has access to their home directory, but can’t traverse the rest of the system. This keeps everything else on the system private and will prevent anything from being tampered with by an SSH user. It’s an ideal setup for a system that has various users and each user’s files need to stay private and isolated from the others.

In this guide, we’ll show you the step by step instructions for jailing an SSH user to their home directory.

In this tutorial you will learn:

  • How to jail SSH user to home directory

Read more

How to remove a user on Linux

How to remove user on Linux system

User management is an important part of Linux administration. Sometimes you need to list the users on a system or disable a user account. Other times, you may need to delete a user account entirely, which is what we’ll be covering in this guide.

There are a couple of methods for deleting user accounts on a Linux system. One way to do it is via the command line, and the other method is via GUI, which varies depending on the desktop environment you’re running. We’ll be covering the command line method as well as removing a user in GNOME and KDE.

In this tutorial you will learn:

  • How to remove a user via command line
  • How to remove a user on GNOME GUI
  • How to remove a user on KDE GUI

Read more

List of services on Linux

How to use systemctl to list services on systemd Linux

systemd is a software suite that’s present on many Linux distributions. It’s not quite ubiquitous, but it’s a staple on the most popular distros, including Debian, Ubuntu, Fedora, Manjaro and Arch, and more.

What it’s best known for is having the ability to control processes running on a system. Using systemd, you can start or stop any service installed on Linux. It’s also an easy tool to list information about the services, such as if they are running, if they start automatically at boot up, etc. In this guide, we’ll show how to use systemd (specifically the systemctl command) to a see a list of services on Linux.

In this tutorial you will learn:

  • How to list services in systemd with systemctl command

Read more

List of users on a Linux system

How to list users on Linux

User management is an important part of Linux administration, so it’s essential to know about all the user accounts on a Linux system and how to disable user accounts, etc. In this guide, we’ll show you how to list the current users via command line and GUI. This will include a GNOME desktop environment as well as KDE.

In this tutorial you will learn:

  • How to list users via command line
  • How to list users on GNOME GUI
  • How to list users on KDE GUI

Read more

How to update CentOS

How to update CentOS

Like all Linux distros, it’s important to keep your CentOS system up to date in order to make sure that you have the latest security updates and newest features. Updating the system usually involves simply upgrading all installed packages to their latest versions. Every few years, there’s a new version of CentOS released, which requires a more involved update process to install.

In this article, we’ll cover updating a CentOS system on a per package basis and upgrading the entire operating system. This can be done via command line and GUI. Both methods will be shown in this guide, so you can pick whichever is easier for you.

The process for upgrading a CentOS system is a little different depending on which version you have installed. The latest version of Centos has moved to the dnf package manager. Previous to Centos 8, yum was the package manager used. Regardless of which version you’re running, we’ll show you the proper commands so you can update your system.

In this tutorial you will learn:

  • How to update CentOS packages via command line
  • How to update CentOS packages via GUI
  • How to upgrade entire CentOS system

Read more