There are many reasons why you may want to monitor the network activity on your Linux system. You may be troubleshooting a network issue, you may want to check to make sure that there are no malicious applications creating suspicious network activity, or you may simply want to know if any processes are phoning home. Whatever the reason, here are a few methods to see which processes on your system are engaged in network activity and who they are communicating with.

In this tutorial you will learn:

  • How to monitor network connections and listening services with netstat
  • How to monitor network connections and listening services with lsof
  • How to monitor network connections and listening services with ifconfig
  • What tools you can use to examine the data being sent over the network

If your website is hosted with NGINX and it has SSL enabled, it's best practice to disable HTTP completely and force all incoming traffic over to the HTTPS version of the website. This avoids having duplicate content and ensures that all of the site's users are only browsing the secure version of your website. You should also see an SEO boost, as search engines prefer non-redundant and secured web pages.

In this guide, we'll assume you're already using NGINX on a Linux system and want to redirect all HTTP traffic to HTTPS. Even if a user happens to follow an http:// link, the site should send them to the correct and secured page, which happens instantly and without the user's intervention.

There are two ways to setup this redirection in NGINX. One method allows you to configure the redirection for individual sites. The other method can redirect HTTP to HTTPS for all NGINX sites on your server, which is handy if you have multiple sites setup and want to avoid having to apply the exact same redirection to each one. We'll cover the step by step instructions for both methods below. Let's get started.

NOTE
Using Apache instead of NGINX? We've written a separate guide for how to use Apache to redirect all HTTP traffic to HTTPS.
In this tutorial you will learn:
  • How to redirect HTTP to HTTPS for individual NGINX websites
  • How to redirect HTTP to HTTPS for all NGINX websites

The hostname of a Linux system is important because it's used to identify the device on a network. The hostname is also shown in other prominent places, such as in the terminal prompt. This gives you a constant reminder of which system you're working with. It's a real life saver when you're managing multiple systems through SSH and those command line terminals start to blend together in your mind.

Of course, IP addresses are used when devices need to communicate with each other, but those can change frequently. Hostnames give us a way to know which device we're interacting with either on the network or physically, without remembering a bunch of numbers that are subject to change. Thus, it's important that your system bears a hostname which helps you to identify it quickly. For example, "backup-server" is much more informative than "server2."

In this guide, we'll show you how to change the hostname on Linux. This can be done via command line or from GUI, and we'll be showing the methods for both. If you can't easily identify a system's purpose from the hostname, it's time to change it.

In this tutorial you will learn:
  • How to change hostname from command line
  • How to change hostname from GNOME GUI

Notepad++ is a very popular text editor that's only built for Windows and doesn't have official support for Linux systems. However, it's now pretty easy to install Notepad++ on major Linux distros thanks to Snap packages.

Old methods for installing Notepad++ relied on using Wine for a compatibility layer and installing the program through Winetricks. That method still works, but the Snap package has Wine dependencies baked in, taking the fuss out of the whole process.

In this guide, we'll take you through the steps of installing Notepad++ on a Linux system by using Snap. Not all major distros have native access to Snaps just yet, so we will also be covering how to enable them on an assortment of popular distributions.

In this tutorial you will learn:
  • How to enable Snap support on major distros
  • How to install Notepad++ Snap package

You might think that zip files belong on Windows, not Linux systems. Still, it's a popular compression method and chances are that you'll run across them online from time to time. Either that, or your Windows buddy will send you a zip file that you want to open.

In this guide, we'll show you how to unzip (decompress) zip files on Linux. You'll learn a command line method as well as a GUI method in the step by step instructions below.

In this tutorial you will learn:
  • How to unzip a zip file via command line
  • How to unzip a zip file via GUI

How to save and quit using Vim text editor

Vim is a command line file editor for Linux systems. In this article, we'll show you one of the most basic functions you'll need to know for vi and vim, which is how to quit a file with or without saving changes to it.

In this tutorial you will learn:
  • How to save a file in vim
  • How to save and exit a file in vim
  • How to exit a file without saving in vim

If your website uses Apache and SSL, there's not much reason to keep using HTTP with your website. Having both HTTP and HTTPS just creates duplicate content, as now any given page will be accessible through two technically different URLs.

In this guide, we'll assume you're already using Apache on a Linux system and want to redirect all HTTP traffic to HTTPS. This will make sure that all your visitors are only connecting through HTTPS by forcing their browser over to the secure protocol if they happen to open an HTTP link. If a user decides to preface a link with http://, your site will be smart enough to still send them to the correct page, rather than showing duplicate content or displaying a 404 error.

There are two ways to set up this redirection in Apache. The better method is to configure Virtual Host, but users with hosted websites may not have access to this configuration. The second method is by making some changes to the .htaccess file. We'll cover the step by step instructions for both methods below. Let's get started.

In this tutorial you will learn:
  • How to redirect HTTP to HTTPS with Virtual Host
  • How to redirect HTTP to HTTPS with .htaccess file

MongoDB is popular database software capable of running on a variety of systems, including Linux. In this guide, we'll be taking you through the steps of installing MongoDB on Ubuntu Linux, as well as some basic configuration after it's up and running.

In this tutorial you will learn:
  • How to install MongoDB
  • How to control MongoDB (start, stop, etc)
  • How to connect to MongoDB remotely
  • How to change MongoDB default port

When it comes to killing a running process, there are a few options available on Linux systems. One such option is the killall command, which differs from the kill command, as we'll see below.

In this guide, you'll learn how to use the killall command to end running processes on Linux. You'll also be given various examples that you can apply to your own system.

In this tutorial you will learn:
  • How does the killall command work?
  • killall command examples

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

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

The ABS or Arch Build System is a package building system native to the Arch Linux distribution: with it, we can easily build packages which can be installed with pacman, the distribution package manager, starting from source code. All we have to do is to specify instruction inside a PKGBUILD file and then build the package using the makepkg tool. In this tutorial we will see how to customize and re-build an already existing package.

In this tutorial you will learn:

  • What is the Arch Build System
  • How to download an existing package source files
  • How to modify a PKGBUILD
  • How to build a package using the makepkg utility

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

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

On a Linux system, the need to search one or multiple files for a specific text string can arise quite often. On the command line, the grep command has this function covered very well, but you'll need to know the basics of how to use it. On GUI, most text editors also have the ability to search for a particular string.

In this article, we'll show you how to quickly and easily search through files for a specified text string. You'll learn how to use the grep command to perform this task, as well as how to access the search function in command line and GUI text editors.

In this tutorial you will learn:
  • How to search files for a text string via command line
  • How to search files for a text string via command line text editors
  • How to search a file for a text string via GUI text editors

FIND LATEST LINUX JOBS on LinuxCareers.com
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in: