When redirecting the output of a command to a file or piping it to another command, you might notice that the error messages are printed on the screen. In Bash and other Linux shells, when a program is executed, it uses three standard I/O streams. Each stream is represented by a numeric file descriptor: 0
terminal - Page 12 of 13 - DesignLinux
Ln Command in Linux (Create Symbolic Links)
A symbolic link is used to make links between files using ln command. A symbolic link, also known as a symlink or soft link, is a special type of file that points to another file or directory. This tutorial covers how to use the ln command to create symbolic or soft links. Links Types# There
Chmod Command in Linux (File Permissions)
In Linux systems, the chmod command is used to change the permissions and access mode of files or directories. This article explains how to use chmod command to change the access permissions of files or directories. File Permissions in Linux# In Unix based systems, a set of permissions and modes are associated with each file
How to Set and List Environment Variables in Linux
In Linux based systems you can set dynamic named values as environment variables. These values are stored within system and that are used by shells. An environment variable is a variable with a name and an associated value. In this article, we will show you how to set and use environment variables. Environment and Shell
How to Mount and Unmount File Systems in Linux
The mount command mounts (attach) file systems or a storage device and makes it accessible in the existing directory tree. While the umount command detaches the mounted file system from the directory structure. In this tutorial, you will learn how to attach and detach file systems using the mount and umount commands. List Mounted File
Bash printf Command
Typically, when writing bash scripts, we use echo to print to the standard output. echo is a simple command but is limited in its capabilities.To have more control over the formatting of the output, use the printf command. The printf command formats and prints its arguments, similar to the C printf() function. printf Command #
Lsmod Command in Linux (List Kernel Modules)
lsmod command is used to display the information of loaded modules in the Linux kernel. Linux kernel modules are system-level software that can be used directly by operating system kernel. Kernel modules# The Linux kernel is the core component of Linux operating systems. It manages the system’s resources, and communication between your computer’s hardware and
Uname Command in Linux
Uname command is used to display basic information about the operating system and hardware. In addition, you can use options with uname to print kernel details and system architecture. uname Command# uname is the short name for “UNIX name”. This command works on all Linux and Unix like operating systems. Mostly, it is used to
How to Check Kernel Version in Linux System
The Linux kernel is the core component of Linux operating systems. It manages the system’s resources, and communication between your computer’s hardware and software. In this tutorial, we will show you multiple ways to check the version of Linux kernel running on your system. Check Kernel Version# It also maintains the security of your system.
Using Curl to make REST API requests
An application program interface (API) is a set of definitions and protocols that allows software programs to communicate with each other. The term REST stands for representational state transfer. It is an architectural style that consists of a set of constraints to be used when creating web services. RESTful API is an API that follows