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:compile this code by using command "gcc (filename).sh -o (filename)" step 6: Run the file by using command "./(filename).sh" step 7:Finally we get path of respective files.