Quote:
Originally Posted by eawedat
how to list all files and directories that have the maximum number of the same inode number in the home directory?
for example:
inode file/directory name
112233 file1
112233 myfile
112233 myDocs
345566 Docs
345566 Downloads
then it should print
/home/sysadmin/file1
/home/sysadmin/myfile
/home/sysadmin/myDocs
as the inode 112233 has more links than the inode 345566
|
This is the third of what appears to be homework questions you've posted today...all without showing any effort of your own. You've been a member here for *ELEVEN YEARS* and were told previously that you need to show your own efforts, and that we're not going to do homework/write scripts for you.
There are many ways to accomplish your task; which way have you chosen to do it, and what have you got so far???