In Linux, you can use thereadcommand to capture user input or read a line from standard input (stdin). This command reads the total number of bytes from the given file descriptor and stores them in the buffer. After that, it returns the number of bytes read, zero, or an error....
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...
Moreover, using which command ensures the correct version runs when multiple versions exist. How to Use Which Command in Linux Let’s explore some examples to see how which command works in real use cases: Example 1: Locate the Path of an Executable We can use the which command to ...
Thechmodcommand uses a different approach for numbers. It assigns three places in the sequence. The first place represents theowner. The second place shows thegroup. The third place denotesothers. For example, the following command adds the write permission to the owner, the read permis...
Chapter 01How to Use the help Command in Linux Chapter 02How to Use the man command in Linux Chapter 03How to use the info and pinfo commands in Linux Conclusion Linux shell provides two types of commands: internal and external. Internal commands are part of the shell. External commands ar...
The sudo command allows any user within the sudo group to run commands as another user. By default, sudo will run as root, but you can specify any user you want. If you plan on using a Linux operating system, you will likely use this command quite a bit. LATEST VIDEOS You will most...
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 Let’s say that you have just installed a fresh copy of the new Ubuntu on your machine and that you are going ...
How to Use sudo in Linux Once a user is added to thesudogroup, they can use thesudocommand to perform administrative tasks. Basic sudo Usage To usesudo, simply prepend it to the command you want to run with superuser privileges.
If we have a message in a text file and we want to send the mail from the text file, execute the following command: $mail-s"casual mail"maadiim.mm@gmail.com</home/hammad/mymail.txt To read the mails, use the command of “mail”: ...
In this article, we are going to discuss how to use help command in linux. We will see various ways how you can use the help option while navigating with