Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 101-500 Topic 2 Question 103 Discussion

Actual exam question for LPI's 101-500 exam
Question #: 103
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:

Latanya
5 months 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?
upvoted 0 times
...
Donte
5 months 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*
upvoted 0 times
Kris
3 months ago
User1: Agreed, let's go with C then.
upvoted 0 times
...
Danica
3 months ago
User3: I'm not sure, but I think C is the safest option. Let's stick with that.
upvoted 0 times
...
Evan
3 months ago
User2: But what about ln --h a.txt c.txt? Could that work as well?
upvoted 0 times
...
Ettie
4 months ago
User1: I think C is the right answer too. It makes sense to link a.txt to c.txt.
upvoted 0 times
...
...
Jesusita
5 months 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?!
upvoted 0 times
Micaela
4 months ago
D) ln --h a.txt c.txt
upvoted 0 times
...
Bok
4 months ago
C) ln --i 525385 c.txt
upvoted 0 times
...
Delisa
4 months ago
B) ln c.txt a.txt
upvoted 0 times
...
Louann
4 months ago
A) ln a.txt c.txt
upvoted 0 times
...
...
Alfred
5 months ago
I'm not sure, but I think ln --i 525385 c.txt might also work
upvoted 0 times
...
My
5 months ago
I agree with Leandro, because ln a.txt c.txt creates a link with the same inode number
upvoted 0 times
...
Claribel
5 months 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.
upvoted 0 times
...
Lindsey
5 months ago
Hmm, I'm pretty sure the answer is C. ln a.txt c.txt. That's how you create a hard link, right?
upvoted 0 times
Bernardo
4 months ago
Creating a hard link with ln a.txt c.txt will indeed give the new file the same inode number.
upvoted 0 times
...
Ozell
4 months ago
I think you're right. ln a.txt c.txt should do the trick.
upvoted 0 times
...
Ronna
4 months ago
Yes, you are correct. ln a.txt c.txt creates a hard link with the same inode number.
upvoted 0 times
...
...
Tora
5 months ago
Hold up, are we supposed to use the inode number or the file name? This is confusing, someone needs to clarify this.
upvoted 0 times
Olga
4 months ago
Actually, ln --h a.txt c.txt is the correct command to use.
upvoted 0 times
...
Jesse
4 months ago
No, that's not right. We should use ln a.txt c.txt.
upvoted 0 times
...
Holley
5 months ago
That makes sense, let's go with that option.
upvoted 0 times
...
Marva
5 months ago
Great, let's create the new file with the same inode number.
upvoted 0 times
...
Mauricio
5 months ago
Option E) ln --i 525385 c.txt is the way to go.
upvoted 0 times
...
Anisha
5 months ago
So, we should use ln --i 525385 c.txt.
upvoted 0 times
...
Vi
5 months ago
Let's use the inode number to create the new file.
upvoted 0 times
...
Kimbery
5 months ago
Let's use the inode number to create the new file.
upvoted 0 times
...
...
Leandro
5 months ago
I think the answer is C) ln a.txt c.txt
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77