Results 1 to 1 of 1
Hi, I do my homework from Linux.
I understand I must do it myselft, but I m newbie.
My work is a write tool for find harlinks and softlinks.
Are ...
- 05-03-2007 #1Just Joined!
- Join Date
- May 2007
- Posts
- 1
Hardlinks and softlinks
Hi, I do my homework from Linux.
I understand I must do it myselft, but I m newbie.
My work is a write tool for find harlinks and softlinks.
Are my ideas right?
HardLInk.
I will use tool "find" for find all files. And "ls -i" to show Inode number
and from string : "2345690999 filename.xx" slect first part - the node number
and compare this number with the recived filename number = because all hardlinks have same number of inode, ok? I m right?
Softlinks?
What should i do here? My idea is use "find -l" For find all symbolic/softlinks, use "ls" and parse from "file -> originalFile" the last
part for get what file is linked. I m right?
Very THX, AZOR


Reply With Quote