Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 101-500 Exam - Topic 2 Question 103 Discussion

Posted by Kassandra on Nov 19, 2024 at 09:47 AM

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

Suggested Answer: C

Get Premium 101-500 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
42 comments · newest first
GE
Gene 11 months ago
Inodes are unique, but hard links share them.
LE
Leonida 11 months ago
I thought you couldn't just copy inode numbers like that.
TR
Tresa 11 months ago
Wait, can you really create a file with the same inode like that?
ST
Stefany 12 months ago
Definitely option C! That's how you do it.
CH
Chantay 12 months ago
You can use `ln a.txt c.txt` to create a hard link.
YU
Yuette 12 months ago
I’m a bit confused about the inode number part. I thought you just needed to link the file directly, so maybe option C is the answer?
TA
Tayna 1 year ago
I feel like the `--h` option is not correct for this. I might have seen something about just using `ln` without any flags for hard links.
AN
Annice 1 year ago
I remember practicing a similar question where we had to link files, and I think option C sounds right, but I could be mixing it up with another command.
RO
Roselle 1 year ago
I think creating a hard link with the `ln` command is the way to go, but I'm not sure if it's `ln a.txt c.txt` or something else.
FR
Freeman 1 year ago
Alright, I've got a strategy in mind. I'll try option C and see if that works. Gotta love these tricky Linux questions!
NI
Nikita 1 year ago
I think option E might be the right approach, but I'm not 100% sure. I'll make a note to research the "--i" flag for the "ln" command.
DO
Dottie 1 year ago
I'm a bit confused by the question. Does the "ln" command work the way I think it does? I'll need to double-check the syntax.
VI
Victor 1 year ago
Okay, let me see if I can break this down step-by-step. The key seems to be creating a new file with the same inode number as a.txt.
AN
Antonette 1 year ago
Hmm, this looks like a tricky one. I'll need to think through the different options carefully.
LA
Latanya 2 years ago
Forget the inode, I'm just going to ln -s a.txt c.txt and call it a day. Symbolic links are where it's at, am I right?
DO
Donte 2 years ago
I'm going with C. It's the only option that actually mentions creating a file, and the inode number is just a red herring. Or maybe it's not... *scratches head*
KR
Kris 2 years ago
↳ replying to Donte
User1: Agreed, let's go with C then.
DA
Danica 2 years ago
↳ replying to Donte
User3: I'm not sure, but I think C is the safest option. Let's stick with that.
EV
Evan 2 years ago
↳ replying to Donte
User2: But what about ln --h a.txt c.txt? Could that work as well?
ET
Ettie 2 years ago
↳ replying to Donte
User1: I think C is the right answer too. It makes sense to link a.txt to c.txt.
JE
Jesusita 2 years ago
Wait, wait, wait... did they seriously just ask us to create a file with the same inode number? What kind of sorcery is this?!
MI
Micaela 2 years ago
↳ replying to Jesusita
D) ln --h a.txt c.txt
BO
Bok 2 years ago
↳ replying to Jesusita
C) ln --i 525385 c.txt
DE
Delisa 2 years ago
↳ replying to Jesusita
B) ln c.txt a.txt
LO
Louann 2 years ago
↳ replying to Jesusita
A) ln a.txt c.txt
AL
Alfred 2 years ago
I'm not sure, but I think ln --i 525385 c.txt might also work
MY
My 2 years ago
I agree with Leandro, because ln a.txt c.txt creates a link with the same inode number
CL
Claribel 2 years ago
Oh, I got this! You gotta use the inode number, so E is the way to go. Ain't no way I'm messing this up.
LI
Lindsey 2 years ago
Hmm, I'm pretty sure the answer is C. ln a.txt c.txt. That's how you create a hard link, right?
BE
Bernardo 2 years ago
↳ replying to Lindsey
Creating a hard link with ln a.txt c.txt will indeed give the new file the same inode number.
OZ
Ozell 2 years ago
↳ replying to Lindsey
I think you're right. ln a.txt c.txt should do the trick.
RO
Ronna 2 years ago
↳ replying to Lindsey
Yes, you are correct. ln a.txt c.txt creates a hard link with the same inode number.
TO
Tora 2 years ago
Hold up, are we supposed to use the inode number or the file name? This is confusing, someone needs to clarify this.
OL
Olga 2 years ago
↳ replying to Tora
Actually, ln --h a.txt c.txt is the correct command to use.
JE
Jesse 2 years ago
↳ replying to Tora
No, that's not right. We should use ln a.txt c.txt.
HO
Holley 2 years ago
↳ replying to Tora
That makes sense, let's go with that option.
MA
Marva 2 years ago
↳ replying to Tora
Great, let's create the new file with the same inode number.
MA
Mauricio 2 years ago
↳ replying to Tora
Option E) ln --i 525385 c.txt is the way to go.
AN
Anisha 2 years ago
↳ replying to Tora
So, we should use ln --i 525385 c.txt.
VI
Vi 2 years ago
↳ replying to Tora
Let's use the inode number to create the new file.
KI
Kimbery 2 years ago
↳ replying to Tora
Let's use the inode number to create the new file.
LE
Leandro 2 years ago
I think the answer is C) ln a.txt c.txt
0/2000 characters

Save Cancel