Bash, the Crucial Exams Chat Bot
AI Bot
Filesystem Management and Permissions Flashcards
CompTIA Linux+ XK0-006 (V8) Flashcards
| Front | Back |
| How do you change the group ownership of a file | Use the chgrp command |
| How do you check the permissions and ownership of a file | Use the ls -l command |
| How do you find the inode number of a file | Use the ls -i command |
| How do you list all files including hidden ones in a directory | ls -a |
| How do you move or rename a file in Linux | mv |
| How do you recursively remove a directory and its contents | rm -r directoryname |
| How do you view disk usage of a directory or file | du |
| What are the three standard permission types in Linux | Read (r), Write (w), Execute (x) |
| What command is used to create a new directory | mkdir |
| What command is used to display the current working directory | pwd |
| What command is used to unmount a filesystem | umount |
| What does "lsattr" display | Attributes of files and directories |
| What does the "noexec" mount option do | Prevents execution of binaries on the mounted filesystem |
| What does the "sync" mount option ensure | File writes are synchronized immediately to disk |
| What does the chown command do | Changes ownership of a file or directory |
| What does the command "chmod 755 file" do | Sets the file's permissions to rwxr-xr-x |
| What does the df command display | Disk space usage of mounted filesystems |
| What does the sticky bit do when set on a directory | Restricts file deletion or modification to the file owner |
| What does the umask command do | Sets default permissions for newly created files and directories |
| What is ACL in Linux filesystem management | Access Control List for finely controlling file access beyond standard permissions |
| What is the command to copy files or directories | cp |
| What is the difference between relative and absolute paths | Absolute paths start from root (/), relative paths are based on the current directory |
| What is the fstab file used for | Defines filesystems to be mounted at boot and their options |
| What is the meaning of the "x" permission for directories | Allows entering and traversal of the directory |
| What is the purpose of the chmod command | To change file or directory permissions |
| What is the purpose of the mount command | To attach filesystems onto a directory structure |
| What is the purpose of the touch command | To create an empty file or update the timestamp of a file |
| Which command can display the ACL of a file | getfacl |
| Which command is used to set an ACL on a file | setfacl |
This deck focuses on managing Linux filesystems, directory structures, and permissions, including advanced topics like ACLs and ownership.