exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 156 discussion

Actual exam question from CompTIA's XK0-004
Question #: 156
Topic #: 1
[All XK0-004 Questions]

A Linux administrator looks at the /etc/timezone file and determines the need to change the time zone from California to New York temporarily. Which of the following commands will accomplish this?

  • A. sed -f TZ=America/New_York
  • B. cat TZ=America/New_York
  • C. export TZ=America/New_York
  • D. printf TZ=America/New_York
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Reference:
https://www.thegeekstuff.com/2010/09/change-timezone-in-linux/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
xeun88
2 years, 6 months ago
export TZ=America/Los_Angeles
upvoted 2 times
...
pinonino
2 years, 10 months ago
the answer C is correct
upvoted 4 times
...
4guysgaming
3 years ago
This one should actually be A since sed is used to replace text in a string
upvoted 1 times
RichardJRL
3 years ago
No, it's C, we're temporarily changing a shell environment variable. 'export' is used to do that from the terminal.
upvoted 2 times
...
...
msour
3 years, 2 months ago
B sounds good for me
upvoted 1 times
...
Kal71
3 years, 3 months ago
Maybe A
upvoted 1 times
Qkz
3 years, 3 months ago
please check here: https://www.thegeekstuff.com/2010/09/change-timezone-in-linux/ You have a good example
upvoted 4 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago