We can solve this bug by following below steps: step 1 : create two files with same name in different location step 2: open terminal in Ubuntu step 3:create .sh file by using command " gedit (filename).sh" step 4 :paste the below code in created file echo "Enter the name of the file" read file find . -type f -name $file step 5:Run the command "chmod 777 (filename).sh" step 6: Run the file by using command "./(filename).sh" step 7:Finally we get path of respective files.