When you install a software package, it automatically installs its manual pages that explain the package's functionality and provides a detailed description of how to use it. For example, if a package installs a command, its manual pages explain how to use it, or if it provides a service,...
Using this command simply returns the manual pages of the printf command. Output: How to Use Man Command in Linux? Using man command is very simple. Just type the command with the name of the tool whose user manual you want to access. Syntax $ man [command/tool name] Example $ man ls...
There's an old (from the Unix golden era) Linux joke that the onlycommand you need to knowisman, the systementry point to the user manual. There's a smidgen of truth in this, but evenmancan be confusing at first. Or, more accurately, finding the information you need can be confusi...
You can also use sudo to run Linux commands as another user or group. It is useful if you have specific tasks running under a particular user but do not want to log in separately to the user. Below are a few examples of how you can use the sudo command to perform different tasks....
In this tutorial, we are going to explain the “du” command used on everyLinuxdistribution such as Ubuntu, Debian, or CentOS. “Du” stands for Disk Usage and every Linux user should use it very often to check the amount of disk space used by directory or file. Using the “du” comm...
$ sudo pacman -S grep [OnArch Linux] $ sudo zypper install grep [OnOpenSUSE] I have found that the easiest way to get your feet wet with thegrep commandis to just dive right in and use some real-world examples. 1. Search and Find Files in Linux ...
As a Linux sysadmin, you know that the general consensus is to blame every problem on infrastructure, which is your realm. Network engineers, our arch nemese...
Finally, you can specify a set of default permissions with the umask shell command, which applies a predefined set of permissions to any new file you create. In general, use umask 022 if you want everyone to be able to see all of the files and directories that you create, and use umask...
To get the total disk usage of files in a directory, you can use the “du -s” command in Linux. Can I use the du command to check the disk usage of files in subdirectories? Yes, you can use the “du -h –max-depth=N” command to check the disk usage of files in subdirector...
So in this tutorial, I will walk you through how to install and use the duf command in Linux. Installing duf If you are on Ubuntu 22.04 or Debian unstable, you can use the apt package manager for straightforward installation: sudo apt install duf ...