exam questions

Exam 101-500 All Questions

View all questions & answers for the 101-500 exam

Exam 101-500 topic 1 question 8 discussion

Actual exam question from LPI's 101-500
Question #: 8
Topic #: 1
[All 101-500 Questions]

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)?

  • A. ln -h a.txt c.txt
  • B. ln c.txt a.txt
  • C. ln a.txt c.txt
  • D. ln -f c.txt a.txt
  • E. ln -i 525385 c.txt
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
klever
Highly Voted 2 years, 1 month ago
C is correct because only ln is used without any options creating a hardlink which has the same inode number as the original file
upvoted 7 times
...
abc555555555
Most Recent 2 weeks, 1 day ago
Selected Answer: C
it's C
upvoted 1 times
...
dpereiro4481
6 months, 1 week ago
Selected Answer: C
-h is not valid argument for ln command. The true answer is C
upvoted 3 times
...
hung456a
8 months, 2 weeks ago
Selected Answer: C
I tested in linux ubuntu Answer C is correct
upvoted 3 times
...
1e3732d
9 months, 1 week ago
Selected Answer: C
ln <source> <link> creates hard links (symbolic require the -s parameter), which share the same inode as the source file.
upvoted 3 times
...
mrfstop
10 months, 2 weeks ago
Bard says C
upvoted 2 times
...
slacked4222
1 year ago
Selected Answer: A
Gpt and bard says A
upvoted 2 times
dpereiro4481
6 months, 1 week ago
But says the wrong answer, -h is not valid argument for ln command. The true answer is C
upvoted 1 times
...
...
prometeu
1 year, 5 months ago
No one. For create b.txt with same inode must the command : "ln a.txt b.txt"
upvoted 1 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 ...