Exam 101-500 All QuestionsBrowse all questions from this exam
Question 8

Consider the following output from the command ls -i:

How would a new file named c.txt be created with the same inode number as a.txt (Inode 525385)?

    Correct Answer: C

    To create a new file that shares the same inode number as an existing file, a hard link must be created to the original file. The command for creating a hard link is 'ln <original_file> <new_file>'. In this case, 'ln a.txt c.txt' will create a hard link named c.txt that shares the inode number 525385 with a.txt, since it links directly to the same data on disk.

Discussion
kleverOption: C

C is correct because only ln is used without any options creating a hardlink which has the same inode number as the original file

dpereiro4481Option: C

-h is not valid argument for ln command. The true answer is C

hung456aOption: C

I tested in linux ubuntu Answer C is correct

1e3732dOption: C

ln <source> <link> creates hard links (symbolic require the -s parameter), which share the same inode as the source file.

mrfstopOption: C

Bard says C

slacked4222Option: A

Gpt and bard says A

dpereiro4481

But says the wrong answer, -h is not valid argument for ln command. The true answer is C

prometeuOption: C

No one. For create b.txt with same inode must the command : "ln a.txt b.txt"