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)?
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)?
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.
C is correct because only ln is used without any options creating a hardlink which has the same inode number as the original file
-h is not valid argument for ln command. The true answer is C
I tested in linux ubuntu Answer C is correct
ln <source> <link> creates hard links (symbolic require the -s parameter), which share the same inode as the source file.
Bard says C
Gpt and bard says A
But says the wrong answer, -h is not valid argument for ln command. The true answer is C
No one. For create b.txt with same inode must the command : "ln a.txt b.txt"