Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam 010-160 topic 1 question 18 discussion

Actual exam question from LPI's 010-160
Question #: 18
Topic #: 1
[All 010-160 Questions]

Which of the following commands creates an archive file work.tar from the contents of the directory ./work/?

  • A. tar --new work.tar ./work/
  • B. tar -cf work.tar ./work/
  • C. tar -create work.tgz -content ./work/
  • D. tar work.tar < ./work/
  • E. tar work > work.tar
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Jichz
Highly Voted 3 years, 8 months ago
B is the right answer but it's wrongly typed tar -cf work.tar ./work/
upvoted 21 times
beazzlebub
2 years, 9 months ago
for some reason the platform is replacing dashes with four single quotes
upvoted 4 times
...
...
rcarugati
Most Recent 8 months, 2 weeks ago
ג€" What does it mean, someone could explain to me?
upvoted 1 times
WOAH_ANNIE
7 months, 3 weeks ago
it is a typo from -cf
upvoted 2 times
...
...
LMo84
1 year, 1 month ago
B is the Answer.
upvoted 1 times
...
Vovanich
1 year, 4 months ago
Selected Answer: B
B. tar ג€"cf work.tar ./work/
upvoted 1 times
...
POGActual
1 year, 4 months ago
the answer is B. tar -cf work.tar ./work/. The -cf option combines -c option which is to create the tar file, and -f which is the option to name the file. "To create an archive with tar, use the ‘-c’ (“create”) option, and specify the name of the archive file to create with the ‘-f’ option. It’s common practice to use a name with a ‘.tar’ extension, such as ‘my-backup.tar’." https://training.linuxfoundation.org/blog/how-to-create-and-manage-archive-files-in-linux/
upvoted 1 times
...
linvidia
1 year, 5 months ago
Selected Answer: B
tar -cf work.tar ./work/ # Create work.tar from files in ./work/ .
upvoted 1 times
...
TheITStudent
1 year, 9 months ago
http://www.linfo.org/tar.html
upvoted 3 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 ...