adplus-dvertising
frame-decoration

Question

To remove the file named my document.txt, which one of the following commands will be used?

a.

rm my\ document.txt

b.

rm my document.txt

c.

rm *

d.

rm my_document.txt

Posted under UNIX

Answer: (a).rm my\ document.txt

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. To remove the file named my document.txt, which one of the following commands will be used?

Similar Questions

Discover Related MCQs

Q. We can escape the \ itself using escaping.

Q. For escaping the newline character we can use ____

Q. The output of the following command is ______________.

$ echo ‘The special character $ echo hello and | ls chap*’

Q. Double quotes are more permissive than single quotes and allow the evaluation of the $ and ` itself.

Q. Which of the following command will remove the file named * ?

Q. We can use the > symbol along with pipe in a command.

Q. What is the output of the following command?

$ wc -c *.c

Q. In a pipeline, the command on the left of | must use standard output and one on the right must use standard input.

Q. Which command saves one copy of character stream in a file and store the other to standard output?

Q. tee is an internal command.

Q. Which of the following is not true about tee command?

Q. Apart from its use in redirection, /dev/tty can also be used as an argument to some commands.

Q. Which of the following meta-character is used in command substitution?

Q. Command substitution is enabled in single quotes also.

Q. POSIX recommends the use of ____ instead of archaic `command ` for command substitution.

Q. Which of the following shell doesn’t support the command substitution using $ recommended by POSIX?

Q. Which symbol is used for assigning a value to variables?

Q. Which symbol is used for evaluation of variables?

Q. Which of the following is a correct initialization of variables to null strings?

Q. A variable can be removed using _____