CompTIA
XK0-004 · Question #173
An administrator needs to create a file named hello in the home directory that contains the following text: it's me! Which of the following commands would accomplish this goal?
The correct answer is B. touch ~/hello. task 1: Create a file named hello in the home directory. Task 2: the hello file must contain the text "it's me!". # echo "it's me!" > ~/hello
System Management
Question
An administrator needs to create a file named hello in the home directory that contains the following text:
it's me! Which of the following commands would accomplish this goal?
Options
- Amkdir ~/hello
- Btouch ~/hello
- Cmv ~/hello
- Dtype ~/hello
How the community answered
(61 responses)- A2% (1)
- B92% (56)
- C2% (1)
- D5% (3)
Explanation
task 1: Create a file named hello in the home directory. Task 2: the hello file must contain the text "it's me!". # echo "it's me!" > ~/hello
Topics
#touch#file creation#home directory#basic file commands
Community Discussion
No community discussion yet for this question.