New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 101-500 Exam - Topic 2 Question 21 Discussion

Actual exam question for LPI's 101-500 exam
Question #: 21
Topic #: 2
[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)?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Elinore
4 months ago
The `ln` command is definitely the key here!
upvoted 0 times
...
Lauran
4 months ago
I thought you couldn't have two files with the same inode number.
upvoted 0 times
...
Eladia
4 months ago
Wait, can you really link to a file with the same inode like that?
upvoted 0 times
...
Marleen
4 months ago
Totally agree, C is the way to go!
upvoted 0 times
...
Willie
5 months ago
Option C is the correct way to create a hard link.
upvoted 0 times
...
Louisa
5 months ago
I vaguely recall that you can't specify an inode directly with `ln`, so I don't think option E is correct.
upvoted 0 times
...
Dorthy
5 months ago
I feel like the `--h` option isn't necessary for creating a hard link. I think it might just be `ln a.txt c.txt`.
upvoted 0 times
...
Erinn
5 months ago
I remember practicing a similar question where we had to link files. I think `ln a.txt c.txt` might be the right choice, but I could be wrong.
upvoted 0 times
...
Karon
5 months ago
I think the command to create a hard link is `ln`, but I'm not sure which option is correct for this question.
upvoted 0 times
...
Howard
5 months ago
I'm confident I can get this one right. Implementing a firewall at home is unnecessary, but using the phone for audio is a smart way to keep the conference secure.
upvoted 0 times
...
Eun
5 months ago
Hmm, I'm a bit confused on this one. I thought the logs might be in /var/log/messages, but I'm not totally sure. I'll have to think this through a bit more.
upvoted 0 times
...

Save Cancel