The letters inmkfsstand for "make file system". The command is commonly used for managing storage devices in Linux. You can think of mkfs as a command line tool for formatting a disk into a specific filesystem. mkfs -t [fs type] [target device] You can also use the mkfs command in ...
Linux provides various options to get help on the command line. You can choose any of these based on your time and requirements. For example, you can read manual pages for detailed information about a command or use thehelpcommand to get a quick overview of the options used with the comman...
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....
Linux automatically assigns a default file permission. Thechmodcommand allows us to change and customize the default file permission based on our requirements. This tutorial explains this process through examples.
With the-voption, thermcommand shows what is being done by the command: rm-v<filename> You can use both the-vand-ioption to remove files interactively: rm-vi<filename> Also read:How to Use the dd Command in Linux Remove a File Forcefully ...
Have you ever been confronted with the task of looking for aparticular string or pattern in a file, yet have no idea where to start looking? Well then, here is thegrep commandto the rescue! grepis a powerful file pattern searcher that comes equipped on every distribution ofLinux. If for...
How To Use Grep Command in Linux The basic function of the grep command is to search for a particular text inside a file. You can do that by entering the following command: grep"text_to_search"file.txt Please replace ‘text_to_search’ with the text you want to search for and ‘file...
2. What is .bashrc file ? Technically, the .bashrc file is the configuration file for bash shell -- used in Linux and macOS. It stands for the bash read command. When you open a new bash shell the script inside this file is executed from top to bottom. Each time you open the termi...
Need to copy files to different locations? Discover how to use the SCP (secure copy) Command in Linux to securely transfer directories and files.
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...