File System in
Linux
- What is the root directory of the Linux
file system?
A) /home
B) /usr
C) /
D) /etc
Correct Answer: C)
/
- Which command is used to display the
current working directory in Linux?
A) ls
B) pwd
C) cd
D) dir
Correct Answer: B)
pwd
- What does the ls -l command display?
A) A list of files in the current directory
B) A detailed list of files with permissions, owner, size, and
modification date
C) A list of hidden files
D) A list of directories only
Correct Answer: B)
A detailed list of files with permissions, owner, size, and modification date
- Which of the following file systems is
commonly used in Linux?
A) NTFS
B) FAT32
C) ext4
D) HFS+
Correct Answer: C)
ext4
- What command is used to change the
permissions of a file in Linux?
A) chmod
B) chown
C) chgrp
D) perm
Correct Answer: A)
chmod
- Which command is used to create a new
directory in Linux?
A) mkfile
B) mkdir
C) newdir
D) createdir
Correct Answer: B)
mkdir
- What does the df -h command
display?
A) Disk usage of files and directories
B) Disk space usage of file systems in a human-readable format
C) Free memory in the system
D) File permissions
Correct Answer: B)
Disk space usage of file systems in a human-readable format
- Which command is used to mount a file
system in Linux?
A) mount
B) umount
C) fsck
D) diskutil
Correct Answer: A)
mount
- What is the purpose of the /etc/fstab file
in Linux?
A) To store user account information
B) To define how disk partitions and devices are mounted
C) To configure network settings
D) To manage system services
Correct Answer: B)
To define how disk partitions and devices are mounted
- Which command would you use to check and
repair a file system?
A) fsck
B) checkfs
C) repairfs
D) fixfs
Correct Answer: A) fsck
No comments:
Post a Comment
If you have any doubts, please let me know