0

How can I create five copies of /etc/profile with the same inode number?

2

Create hard links.

For example :

sudo ln /etc/profile /etc/new_prof

Now /etc/new_prof and /etc/profile both will have the same inode number :

$ ls -li /etc/*prof*
3014852 -rw-r--r-- 3 root root  665 Aug 20  2013 /etc/new_prof
3014852 -rw-r--r-- 3 root root  665 Aug 20  2013 /etc/profile
  • Confirm afterwards by using ls -li /etc/profile /etc/new_prof to display inode numbers. – steve Jul 11 '15 at 21:09
  • @steve clarified.. – heemayl Jul 11 '15 at 21:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.