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

How to Truncate (Empty) Files in Linux
How To Truncate (Empty) Files In Linux This tutorial explains how to truncate files to zero size in Linux systems using shell redirection and the truncate command. In some situations, you might want to truncate (empty) an existing file to a zero-length. In simple words, truncating a file means…
Read article →
How to use pushd & podp command.
How To Use Pushd & Podp Command. In this tutorial, we will show you how to use the pushd and popd commands to navigate your system’s directory tree. pushd and popd are commands that allow you to work with directory stack and change the current working directory in Linux and other Unix-like…
Read article →
How to use Gunzip Command.
How To Use Gunzip Command. Gunzip is a command-line tool for decompressing Gzip files. Gzip is one of the most popular compression algorithms that reduce the size of a file and keep the original file mode, ownership, and timestamp. By convention, files compressed with Gzip are given either the .gz…
Read article →
How to use Chmod Command.
How To Use Chmod Command. This tutorial covers how to use the chmod command to change the access permissions of files and directories. In Linux, access to the files is managed through the file permissions, attributes, and ownership. This ensures that only authorized users and processes can access…
Read article →
How to use whereis command.
How To Use Whereis Command. In this article, we will show you how to use the Linux whereis command. whereis is a command-line utility that allows you to find the location of the binary, source, and manual page files for a given command. How to Use the whereis Command The syntax for the whereis…
Read article →
How to write comments in bash scripts.
How To Write Comments In Bash Scripts. In this article, we’ll cover the basics of writing comments in Bash. Comments are used to explain the code. For example, if you have a complex regex or parameter substitution inside your Bash script, you should write a comment describing what the code does.…
Read article →
How to Format USB Drives and SD Cards on Linux
How To Format USB Drives And SD Cards On Linux This article explains how to format a USB Drive or SD Card on Linux using the parted utility. It’s important to note that formatting is a destructive process, and it will erase all the existing data. If you have data on the UDB drive or…
Read article →
How to Install and Configure an NFS Server on CentOS 8
How To Install And Configure An NFS Server On CentOS 8 In this tutorial, you’ll go through the steps necessary to set up an NFSv4 Server on CentOS 8. We’ll also show you how to mount an NFS file system on the client. NFS protocol is not encrypted by default, and unlike Samba, it does…
Read article →
How to use dmesg command
How To Use Dmesg Command In this tutorial, we’ll cover the basics of the dmesg command. The Linux kernel is the core of the operating system that controls access to the system resources, such as CPU, I/O devices, physical memory, and file systems. The kernel writes various messages to the kernel…
Read article →
How to use pstree command.
How To Use Pstree Command. In this article, we will talk about the pstree command. It is similar to ps , but instead of listing the running processes, it shows them in a tree. The tree-like format is a more convenient way to display the processes hierarchy and makes the output more visually…
Read article →
How use RPM command.
How Use RPM Command. In this tutorial, we will talk about how to use the rpm command to install, update, remove, verify, query, and otherwise manage RPM packages. The RPM Package Manager (RPM) is a powerful package management system used by Red Hat Linux and its derivatives such as CentOS and…
Read article →
How to Change Root Password in Ubuntu Linux
How To Change Root Password In Ubuntu Linux This tutorial explains how to temporally change to the root user account and how to set the root password on Ubuntu systems. The root user (or superuser) is a special user account that is present on all Linux and Unix-like systems. It has full access to…
Read article →
How to use History Command in Linux.
How To Use History Command In Linux. In this article, we will talk about the history command, which allows you to view a list of previously executed commands, search through the list, and manipulate the history file. Using the history Command and History Expansions history is a shell builtin, and…
Read article →
How to Run Linux Commands in Background
How To Run Linux Commands In Background. In this article, we will talk about the background processes is Linux. We will show you how to start a command in the background and how to keep the process running after the shell session is closed. In this article, we will talk about the background…
Read article →
How to Copy, Cut and Paste in Vim / Vi
How To Copy, Cut And Paste In Vim / Vi This article shows how to copy, cut, and paste in Vim / Vi editor. When working with text files, copying, cutting, and pasting text is one of the most commonly performed tasks. Vim or its precursor Vi comes preinstalled on macOS and almost all Linux…
Read article →
How to Add User to Sudoers in Debian
How To Add User To Sudoers In Debian This tutorial shows two ways to grant sudo privileges to a user. The first one is to add the user to the sudoers file . This file contains a set of rules that determines which users or groups are granted with sudo privileges, as well as the…
Read article →
How to use stat command in linux.
How To Use Stat Command In Linux. This article explains how to use stat command. stat is a command-line utility that displays detailed information about given files or file systems. Using the stat Command The syntax for the stat command is as follows: stat [OPTION]… FILE… stat accepts one or more…
Read article →
How to use Fsck Command.
How To Use Fsck Command. In this article, we will talk about the fsck command. fsck (file system check) is a command-line utility that allows you to perform consistency checks and interactive repairs on one or more Linux file systems. It uses programs specific to the type of the file system it…
Read article →
How to Compare Strings in Bash
How To Compare Strings In Bash This tutorial describes how to compare strings in Bash. When writing Bash scripts you will often need to compare two strings to check if they are equal or not. Two strings are equal when they have the same length and contain the same sequence of characters.…
Read article →
How to use Whoami Command
How To Use Whoami Command In this article, we will cover the whoami command. As its name suggests, the whoami command prints the user name of the effective user ID. In other words, it displays the name of the currently logged-in user. How to Use the whoami Command The syntax for the whoami command…
Read article →
How to Mount Windows Share on Linux using CIFS
How To Mount Windows Share On Linux Using CIFS In this tutorial, we will explain how to manually and automatically mount Windows shares on Linux systems. The Common Internet File System (CIFS) is a network file-sharing protocol. CIFS is a form of SMB. On Linux and UNIX operating systems, a Windows…
Read article →
How to use W command
How To Use W Command In this article, we will talk about the w command. w is a command-line utility that displays information about currently logged in users and what each user is doing. It also gives information about how long the system has been running, the current time, and the system load…
Read article →
Understanding the /etc/passwd File.
Understanding The /Etc/Passwd File. There are several different authentication schemes that can be used on Linux systems. The most commonly used and standard scheme is to perform authentication against the /etc/passwd and /etc/shadow files. /etc/passwd is a plain text-based database that contains…
Read article →
How to use Kill command.
How To Use Kill Command. There are several utilities that allow you to terminate errant processes with kill the being the most commonly used. kill Command kill is a shell builtin in most Bourne-derived shells such as Bash and Zsh. The command behavior is slightly different between the shells and…
Read article →