CompTIACompTIA
XK0-005 · Question #1168
XK0-005 Question #1168: Real Exam Question with Answer & Explanation
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
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
#File management#Linux commands#`touch` command
Community Discussion
No community discussion yet for this question.