How to 'cd' to a directory found with 'find'?
Solution 1:
Your prompt says:
Peter@ubuntu:~$
The part between :
and $
is:
~
That represents the folder you're currently in. ~
is shorthand for your home folder (/home/Peter
). See this section of the Ubuntu community documentation for more information about abbreviations in directory names, and related concepts.
You ran the command cd Rubyscript
. The folder name after cd
did not start with a /
, so it is a relative path--relative to your current location (which is /home/Peter
). cd Rubyscript
, run from there, is thus equivalent to:
cd /home/Peter/Rubyscript
But the Rubyscript
folder is not located in /home/Peter
. As the find
command said, it's located in /media/aruprakshit/FA686DE4686DA05D
.
Therefore, you should run this command instead:
cd /media/aruprakshit/FA686DE4686DA05D/Rubyscript
That will get you there. (Assuming you have permission to enter that folder. Which you probably do--its volume name looks like a UUID, and its length indicates it's probably an NTFS volume. If you mounted an NTFS volume, you usually can enter any folder within it and perform any read or write action.)
Solution 2:
There is no Rubyscript
in your ~
directory. You should type:
cd /media/aruprakshit/FA686DE4686DA05D/Rubyscript