Linux Filesystem & File Management Flashcards
7 cards from real 010-160 practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Linux Filesystem & File Management flashcards as text
Which command displays the disk space usage of files and directories?
Answer: du
The `du` (disk usage) command shows how much disk space files and directories consume.
What does the `df -h` command display?
Answer: Disk free space in human-readable format
`df -h` shows disk free space with sizes in human-readable units like KB, MB, and GB.
Which directory typically contains temporary files that are deleted on reboot?
Answer: /tmp
/tmp is the standard temporary directory whose contents are typically cleared on system reboot.
What is the purpose of the `find` command's `-name` option?
Answer: Search for files by their filename
The `-name` option in `find` searches for files whose names match the given pattern.
Which command would you use to create a symbolic link named `link.txt` pointing to `original.txt`?
Answer: ln -s original.txt link.txt
`ln -s` creates a symbolic (soft) link; without -s it creates a hard link.
What does the `file` command do in Linux?
Answer: Determines the type of a file based on its content
The `file` command examines a file's contents and reports its type (e.g., ASCII text, ELF binary, JPEG image).
Which of the following is the correct path to a user's home directory for a user named 'alice'?
Answer: /home/alice
On Linux, regular user home directories are conventionally located under /home/.