010-160 Linux Filesystem & File Management — Questions and Answers
Question 1: What is the function of the 'mkdir' command in Linux?
- Create a file.
- Create a directory (Correct answer)
- Remove a file.
- Change directory.
Correct answer: Create a directory
The `mkdir` command, which stands for 'make directory', is used in Linux to create new directories (folders) in the file system. Users specify the desired name for the new directory as an argument to the command. This is a basic yet essential command for organizing files and maintaining a structured file system hierarchy.
Question 2: Which file system type is commonly used in Linux for internal storage?
- NTFS
- Ext4 (Correct answer)
- exFAT
- FAT32
Correct answer: Ext4
Ext4 (fourth extended filesystem) is the default and most commonly used file system for internal storage in modern Linux distributions. It offers significant improvements over its predecessors, including better performance, increased reliability, and support for larger file systems and files. Its journaling feature helps maintain data integrity.
What is the function of the 'mkdir' command in Linux?