LFCS Doubt on tar

Can somebody clarify question 2 in below ss, I am not able to understand how this works. While decompressing files using tar xf we can give the directory path using -C parameter. But in the question it is mentioned that new dir should be created from archive itself. So is it something like prodata directory is already present in the compressed file and we should only extract that directory ?? or is there any other way to rename the directory ??

Hi @yalla.vishal,

Can you provide the link to the question, and lab you’re working on, I need more context information to support.

Happy learning,
Trung.

@trung-kodekloud Sorry but this question is from the practice questions pdf available in Linux foundation website, So I do not have more info other than the question.

1 Like

Hi @yalla.vishal,

Do you mind sharing the pdf file, reading the whole context should be better than just 1 single question.

Happy learning,
Trung.

LFCS-Practice-Questions-v1.1.pdf (117.0 KB)

1 Like