How to Find My DNS Server IP Address in Linux

How to Find My DNS Server IP Address in Linux

The post How to Find My DNS Server IP Address in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

DNS (Domain Name System) is a fundamental facilitator of several networking technologies such as mail servers, Internet browsing, and streaming services e.g. Netflix and Spotify,

The post How to Find My DNS Server IP Address in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

10 Best File Comparison and Difference (Diff) Tools in Linux

10 Best File Comparison and Difference (Diff) Tools in Linux

The post 10 Best File Comparison and Difference (Diff) Tools for Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

While writing program files or normal text files, programmers and writers sometimes want to know the difference between two files or two versions of the

The post 10 Best File Comparison and Difference (Diff) Tools for Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Ebook: LFCS Certification Preparation eBook

Ebook: LFCS Certification Preparation eBook

The post Ebook: Introducing LFCS Certification Preparation eBook first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

For years, certifications in the Information Technology world have helped job candidates demonstrate their skills to potential employers. In the Linux world, this is as

The post Ebook: Introducing LFCS Certification Preparation eBook first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Find Difference Between Two Directories Using Diff and Meld Tools

How to Find Difference Between Two Directories Using Diff and Meld Tools

The post How to Find Difference Between Two Directories Using Diff and Meld Tools first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

In an earlier article, we reviewed 9 best file comparison and difference (Diff) tools for Linux and in this article, we will describe how to

The post How to Find Difference Between Two Directories Using Diff and Meld Tools first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Install netstat Command in Linux

How to Install netstat Command in Linux

The post How to Install netstat Command in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Netstat – derived from the words network and statistics – is a command-line utility used by system administrators for analyzing network statistics. It displays a

The post How to Install netstat Command in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

“Forbidden – You don’t have permission to access / on this server” Error

The post “Forbidden – You don’t have permission to access / on this server” Error first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Apache web server is one of the most popular and widely used open-source web servers thanks to its stability and reliability. The web server commands

The post “Forbidden – You don’t have permission to access / on this server” Error first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Running Multiple Linux Commands Simultaneously

Running Multiple Linux Commands Simultaneously

Running Multiple Linux Commands Simultaneously
by George Whittaker

Understanding how to execute multiple commands at once in Linux can significantly improve your efficiency and productivity. This article will guide you through various ways you can run multiple Linux commands in a single line and even how to automate repetitive tasks.

Understanding the Basics

Before delving into advanced techniques, you should familiarize yourself with the command line or Terminal, Linux’s powerful tool. Here, you can perform tasks by typing a sequence of commands. While it may seem daunting at first, learning to use it can open up a new world of efficiency and productivity.

Running Commands Consecutively

If you want to run multiple commands consecutively, i.e., run the next command after the previous one finishes, use the semicolon (;). For instance, command1 ; command2 ; command3 will execute command1, wait for it to finish, and then execute command2 and so on.

Executing Commands in Parallel

To run commands simultaneously or in parallel, use the ampersand (&). However, keep in mind that using an ampersand sends the process to the background, allowing the next command to start immediately. For instance, command1 & command2 executes both command1 and command2 at the same time.

Using the Logical Operators

You can also employ logical operators (&& and ||) to run commands based on the success or failure of the previous command. The ‘&&’ operator will execute the next command if the previous one succeeds. For instance, command1 && command2 will only execute command2 if command1 is successful. Conversely, the ‘||’ operator will execute the next command only if the previous one fails.

Grouping Commands

If you have a group of commands that you want to execute in a specific order, you can use parentheses. For example, (command1 ; command2) & command3 will run command1 and command2 simultaneously but will only initiate command3 once both have completed.

Utilizing Command Line Pipes

Pipes are an invaluable tool when you want to pass the output of one command as the input to another. You can do this by using the vertical bar (|). For instance, command1 | command2 would pass the output of command1 as input to command2.

Automating Repetitive Tasks

If you frequently execute a particular set of commands, you can write a simple bash script to automate the process. All you have to do is write the commands in a text file and save it with a .sh extension. For example, you can create a file named ‘myscript.sh’ and write:

dutree - Analyze File System Disk Usage in Linux

dutree – Analyze File System Disk Usage in Linux

The post dutree: A Powerful Disk Usage Tracker for Linux File Systems first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

dutree is a free, open-source, fast command-line tool for analyzing disk usage, written in the Rust programming language, which is developed from the combination of

The post dutree: A Powerful Disk Usage Tracker for Linux File Systems first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Find Top Directories and Files (Disk Space) in Linux

How to Find Top Directories and Files (Disk Space) in Linux

The post How to Find Most Used Disk Space Directories and Files in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

As a Linux administrator, you must periodically check which files and folders are consuming more disk space. It is very necessary to find unnecessary junk

The post How to Find Most Used Disk Space Directories and Files in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Create and Use Alias Command in Linux

How to Create and Use Alias Command in Linux

The post How to Create and Use Alias Command in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Linux users often need to use one command over and over again. Typing or copying the same command over and over again reduces your productivity

The post How to Create and Use Alias Command in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Navigate Man Pages Efficiently in Linux

How to Navigate Man Pages Efficiently in Linux

The post How to Use Man Pages Efficiently in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Good documentation is absolutely necessary for any software, and this principle extends to Linux commands as well. Numerous Linux distributions and open-source communities offer comprehensive

The post How to Use Man Pages Efficiently in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

3 Ways to Check Apache Server Status and Uptime in Linux

3 Ways to Check Apache Server Status and Uptime in Linux

The post 3 Methods to Check Apache Server Status and Uptime in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Apache is the world’s most popular, cross-platform HTTP web server that is commonly used in Linux and Unix platforms to deploy and run web applications

The post 3 Methods to Check Apache Server Status and Uptime in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to View or Display Colored Man Pages in Linux

How to View or Display Colored Man Pages in Linux

The post How to View Colored Man Pages in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

In Unix-like operating systems, a man page (in full manual page) is a documentation for a terminal-based program/tool/utility (commonly known as a command). It contains

The post How to View Colored Man Pages in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

35 Practical Examples of Linux Find Command

35 Practical Examples of Linux Find Command

The post 35 Practical Examples of Linux Find Command first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

The Linux find command is one of the most important and frequently used command-line utilities in Unix-like operating systems. The find command is used to

The post 35 Practical Examples of Linux Find Command first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Clone or Duplicate a Linux Server with Rsync

How to Clone or Duplicate a Linux Server with Rsync

The post How to Clone a Linux Server with Rsync first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Cloning is the meticulous process of creating an exact replica of a live Linux server by employing the powerful rsync command-line tool, which is an

The post How to Clone a Linux Server with Rsync first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

16 Practical Examples of Rsync Command in Linux

16 Practical Examples of Rsync Command in Linux

The post 16 Rsync Command Examples for Efficient File Synchronization first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Rsync (Remote Sync) is the most commonly used command for copying and synchronizing files and directories remotely as well as locally in Linux/Unix systems. With

The post 16 Rsync Command Examples for Efficient File Synchronization first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Which Career to Choose: Programmer Vs System Administrator

Which Career to Choose: Programmer Vs System Administrator

The post Programmer vs System Administrator: Which Career Path is Right for You first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Careers in the technology space and broad and diverse and require different sets of skills. Programming and Systems Administration are two occupations that stand out

The post Programmer vs System Administrator: Which Career Path is Right for You first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Delete HUGE (100-200GB) Files in Linux

How to Delete HUGE (100-200GB) Files in Linux

The post How to Delete HUGE (100-200GB) Files in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

In the realm of Linux terminal operations, a range of Linux commands are at our disposal for the purpose of effectively deleting or removing files.

The post How to Delete HUGE (100-200GB) Files in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Running HIP VPLS on a NanoPI R2S

Running HIP VPLS on a NanoPI R2S

Running HIP VPLS on a NanoPI R2S
by Dmitriy Kuptsov
Introduction

In our previous article we have demonstrated a working prototype of Host Identity Based Virtual Private Service or HIP-VPLS. Back then we used the Mininet framework. Here we are going to demonstrate how to deploy this system on a real hardware. We are going to use NanoPi R2S as the platform for HIP-VPLS. Just a reminder. Virtual Private LAN Services (VPLS) provide means for building Layer 2 communication on top of an existing IP network. VPLS can be built using various approaches. However, when building a production-grade VPLS solution one needs to have a clear picture of how such aspects as security, mobility, and L2 issues will be solved.

Host Identity Protocol (HIP) was originally designed to split the dual role of the IP addresses. In other words, HIP is a Layer 3.5 solution that sits between the IP and transport layers. HIP uses hashes of public keys as identifiers. These identifiers, or Host Identity Tags (HITs), are exposed to the transport layer and never change (well, strictly speaking, they might change if the system administrator will decide to rotate the RSA or ECDSA key pairs for instance, but that will happen rarely). On the other hand, HIP uses routable IP addresses (these can be both IPv4 or IPv6) as locators and are used to deliver the HIP and IPSec packets between the end-points. Overall, to identify each other and exchange secret keys, HIP relies on a 4-way handshake (also known as HIP base exchange, or HIP BEX for short). During the BEX, peers negotiate a set of cryptographic algorithms to be used, identify each other (since HITs are permanent and are bound to public keys HIP can employ a simple firewall based on HITs to filter out untrusted connections), exchange the keys (HIP can use Diffie-Hellman and Elliptic Curve Diffie-Hellman algorithms), and even protect from Denial of Service attacks using computational puzzles (these are based on cryptographic hash functions and ability of peers to find collisions in hash functions; the complexity of a solution is regulated by a responder in HIP BEX). HIP also supports mobility and uses a separate handshake procedure during which the peer notifies its counterpart about the changes in the locator (read the IP address used for routing purposes).

8 Parted Commands to Create and Manage Partitions in Linux

8 Parted Commands to Create and Manage Partitions in Linux

The post 8 Parted Commands to Manage Disk Partitions in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Parted is a renowned command-line utility designed to facilitate the management of hard disk partitions in a user-friendly manner. With Parted, you can effortlessly perform

The post 8 Parted Commands to Manage Disk Partitions in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

TLDR - Easy to Understand Man Pages for Linux Commands

TLDR – Easy to Understand Man Pages for Linux Commands

The post TLDR – Simplifying Linux Commands with User-Friendly Man Pages first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

One of the most commonly used and reliable ways of getting help under Unix-like systems is via man pages, which are the standard documentation for

The post TLDR – Simplifying Linux Commands with User-Friendly Man Pages first appeared on Tecmint: Linux Howtos, Tutorials & Guides.