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...
In this example, we are usingfindto print all of the files with a*.mp3extension, piping it togrep –ito filter out and print all files with the name “JayZ” and then another pipe togrep –viwhich filters out and does not print all filenames with the string (in any case) “remix...
Theapt-getcommand was the primary package management command used inDebian-based Linux distributionsprior to the introduction of theapt command. With theapt-getcommand, you could install, remove, upgrade, search, and manage packages on your system. However, starting fromUbuntu 16.04andDebian 9, th...
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....
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...
We utilize various examples to run and understand the getent command in Linux. Example 1: Find the User Information To find the user account information from the passwd database, use the getent command. For example, we will display the information of the “milton” user: ...
The ip command can also be used to show the statistics of the various network interfaces. To do this you can use the ip command with the option -s and then specify the network device. $ ip -s link When you need to get information about a particular network interface, add the optionls...
“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” command is very simple by typing it on the console and adding additional phrases called options. In other words, the “du” command...
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...