Knowledge Base
427 articles and guides on knowledge base from the NexonHost team — page 14 of 18.

How to use du command.
How To Use Du Command. The du command, short for “disk usage” reports the estimated amount of disk space used by given files or directories. It is practically useful for finding files and directories taking up large amounts of disk space. How to Use the du command The general syntax for the du…
Read article →
How to Increment and Decrement Variable in Bash
How To Increment And Decrement Variable In Bash One of the most common arithmetic operations when writing Bash scripts is incrementing and decrementing variables. This is most often used in loops as a counter, but it can occur elsewhere in the script as well. Incrementing and Decrementing means…
Read article →
How to Install Ubuntu 20.04 on Windows 10.
NOTE: If you want to learn Linux (ubuntu), this is a very good and simple way to learn, I hope you like this article. Ubuntu is a very stable and flexible operating system and a Debian-based Linux distribution consisting mainly of free and open-source software. There are different versions of…
Read article →
How to Find/Get your IP Address
How To Find/Get Your IP Address This article explains several different methods of determining the public and private IP Addresses of a Linux system. Knowing the IP address of your device is important when troubleshooting network issues, setting up a new connection, or configuring a firewall. IP…
Read article →
How to Add User to Sudoers in CentOS
How To Add User To Sudoers In CentOS sudo is a command-line utility designed to allow trusted users to run commands as another user, by default the root user. You have two options to grant sudo access to a user. The first one is to add the user to the sudoers file . This file…
Read article →
How to Check for Listening Ports
How To Check For Listening Ports This article explains how to use the netstat, ss and lsof commands to find out which services are listening on which ports. The instructions are applicable for all Linux and Unix-based operating systems like macOS. When troubleshooting network connectivity or…
Read article →
How to use Rsync Command
How To Use Rsync Command This article explains how to use rsync through practical examples and detailed explanations of the most common rsync options. Rsync can be used for mirroring data, incremental backups, copying files between systems, and as a replacement for scp , sftp , and cp commands.…
Read article →
How to Exclude Files and Directories with Rsync
How To Exclude Files And Directories With Rsync In this tutorial, we will show you how to exclude files and directories with rsync. With Rsync you can mirror data, create incremental backups and files between systems. When ing data, you may want to exclude one or more files or directories based on…
Read article →
How to Transfer Files with Rsync over SSH
How To Transfer Files With Rsync Over SSH In this tutorial, we will explain how to files with rsync over SSH. When it comes to transferring files between systems on the network, Linux and Unix users have a lot of tools at their disposal. The most popular protocols for data transfer are SSH and FTP…
Read article →
How to Check Linux Version.
How To Check Linux Version. This article shows how to check what Linux distribution and version is installed on your system using the command line. Some of the most popular Linux distributions are Debian, Red Hat, Ubuntu, Arch Linux, Fedora, CentOS, Kali Linux, OpenSUSE, Linux Mint, etc. A Linux…
Read article →
How to Set or Change Hostname in Linux
How To Set Or Change Hostname In Linux This tutorial will walk you through the process of changing the hostname in Linux without the need of restarting the system. The instructions should work on any modern Linux distribution that uses systemd. By default, the system hostname is set during the…
Read article →
How to Use sed to Find and Replace String in Files
How To Use Sed To Find And Replace String In Files In this article, we’ll talk about how to find and replace strings with sed. We’ll also show you how to perform a recursive search and replace. When working with text files, you’ll often need to find and replace strings of text in one or…
Read article →
How to use Rename command.
How To Use Rename Command. In this tutorial, we will explain how to use the rename command to batch rename files. Renaming multiple files and directories with the mv command can be a tedious process as it involves writing complex commands with pipes, loops , and so on. This is where the rename…
Read article →
How to Mount an NFS Share.
How To Mount An NFS Share. In this tutorial, we will show you how to manually and automatically mount an NFS share on Linux machines. On Linux and UNIX operating systems, you can use the mount command to mount a shared NFS directory on a particular mount point in the local directory tree. Network…
Read article →
How to use Chgrp Command.
How To Use Chgrp Command. This article explains how to use the chgrp command to change the group ownership of given files. In Linux, each file is associated with an owner and a group and has permissions that determine which users may read, write, or execute the file. chgrp Command Syntax The chgrp…
Read article →
How To Disable User Logins On Linux
How To Disable User Logins On Linux 1. Overview In this tutorial, we will cover the various methods used to block user logins on Linux and their differences. 2. The nologin Command We can use the nologin command to prevent a user from logging in. It prints a message and exits with a non-zero…
Read article →
How to use Unlink Command.
How To Use Unlink Command. In this article, we will show you how to remove a file in GNU/Linux systems using the unlink command. Removing File with unlink unlink is a command-line utility for removing a single file. The syntax of the unlink command is as follows: unlink filename Where filename is…
Read article →
How to Remove (Delete) Symbolic Links.
How To Remove (Delete) Symbolic Links. In this guide, we will show you how to remove (delete) symbolic links in Linux/UNIX systems using the rm, unlink, and find commands. A symbolic link, also known as a symlink, is a special type of file that points to another file or directory. It is something…
Read article →
How to understand symbolic link and their use.
How To Understand Symbolic Link And Their Use. A symlink or a Symbolic Link is simply enough a shortcut to another file. It is a file that points to another file. They may sound a little complex, but they’re really not, you can think of symlinks as shortcuts. To create a symbolic link you use…
Read article →
How to Show Line Numbers in Vim / Vi.
How To Show Line Numbers In Vim / Vi. This article will show you how to display or hide line numbers in Vim / Vi text editor. Vim/Vi is the text editor of choice for many software developers and Linux system administrators. By default, Vim doesn’t show line numbers, but they can be easily turned…
Read article →
How to Add User to Sudoers in Ubuntu
How To Add User To Sudoers In Ubuntu In this article we’ll show you two ways to grant sudo privileges to a user. The first one is to add the user to the sudoers file . This file contains information that controls which users and groups are granted with sudo privileges, as well as the…
Read article →
How to Check Python Version.
How To Check Python Version. This article explains how to check what version of Python is installed on your operating system using the command line. This can be useful when installing applications that require a specific version of Python. Python is one of the most popular programming languages in…
Read article →
How to use rm command.
How To Use Rm Command. In this guide, we will explain how to use the rm command through examples and explanations of the most common rm options. rm is a command-line utility for removing files and directories. It is one of the essential commands that every Linux user should be familiar with. How…
Read article →
How to Install and Use Curl on Debian 10
How To Install And Use Curl On Debian 10 This guide explains how to install and use the curl command on Debian 10, Buster. If you are trying to download a file using curl and getting an error message saying curl command not found it simply means that the curl package is not installed on…
Read article →