Skip to main content
Sign in Register
Question no. 91970

Which rm option prompts the user for confirmation with a ? before deleting each file_________________?

Select your answer for: Which rm option prompts the user for confirmation with a ? before deleting each file_________________?
Show answer

Answer: C. -i

Explanation

The minus i option prompts the user for confirmation before deleting each individual file. This interactive flag prevents accidental deletion by requiring explicit confirmation keystrokes. Safety checks protect important files from being wiped out by hasty command execution. File deletion commands can be destructive if wildcard patterns match unintended files. Interactive flags add a confirmation step to mitigate the risk of data loss. Command-line safeguards help users double-check their actions before purging storage.

Cleaning up sensitive directories safely involves using interactive deletion prompts. Careful system administration requires cautious file removal practices on production servers. Automation scripts avoid interactive prompts while manual maintenance benefits from them. Option minus r enables recursive directory deletion instead of prompting for confirmation. Option minus x is an invalid or unused flag for standard file removal commands. Option minus one is an incorrect option that does not trigger interactive prompts.

Topic
—
Difficulty
medium

Related questions

Q1. Which vi option allows pattern searching while ignoring case?

Select your answer for: Which vi option allows pattern searching while ignoring case?
Show answer

Answer: A. ic

The ic option in vi enables case-insensitive pattern searching during text lookups. Ignoring character case helps users find search terms regardless of capitalization. Editor settings can be configured to modify default...

Q2. Which command lists filenames in columns with indicators for directories and executables?

Select your answer for: Which command lists filenames in columns with indicators for directories and executables?
Show answer

Answer: A. ls -F -x

The ls command with the -F and -x flags lists filenames in columns with trailing type indicators. The -F flag appends special symbols like slashes to directories and asterisks to executable files. The -x flag arranges th...

Q4. Which disk free option displays the total capacity of the filesystem?

Select your answer for: Which disk free option displays the total capacity of the filesystem?
Show answer

Answer: A. -t

The df -t command displays the total capacity of the specified file system. Disk free utilities report storage statistics and filesystem capacities to administrators. Checking storage totals helps monitor disk utilizatio...

Q5. Which shell wildcard matches any sequence of characters, including empty ones?

Select your answer for: Which shell wildcard matches any sequence of characters, including empty ones?
Show answer

Answer: D. *

The asterisk wildcard matches any sequence of characters, including an empty or zero-length string. It is the most versatile globbing character available in standard Unix command-line shell environments. Shells expand th...

Q6. Which shell wildcard is used to match any number of characters, including zero?

Select your answer for: Which shell wildcard is used to match any number of characters, including zero?
Show answer

Answer: D. *

The asterisk symbol acts as a universal wildcard matching any sequence of characters in file searches. Users rely on this specific character to find filenames with varying lengths or completely unknown endings. Matching...