How do I navigate to /opt?
-
This is probably going to sound really really daft but I've not been able to work this out for ages and since my retropie install is on a regular pi0 with no wifi, I need to access it directly from the keyboard with commands.
How do I get to the /opt directory?? There's something about Linux that I'm intrinsically missing, as opposed to DOS. Is it something about user rights? But basically typing ls shows that I only have the RetroPie and RetroPie-Setup directories listed. So how do I go up the directory structure?
Any help much appreciated.
-
@gizmo90 Hi, if your 'ls' command is showing RetroPie & RetroPie-Setup, it most probably means that you are in the 'home' directory, probably /home/pi/ ... if you wish to change to /opt directory, type
cd /opt
This should do the trick. Let me know if it is not the case.
Small edit for your information, in Linux, the root directory of the filesystem is '/', so typing 'cd /' will position you in the root directory.
-
@kiro said in How do I navigate to /opt?:
Small
Thank you so much for that! I just wasn't understanding the need for a space between cd and /
-
@gizmo90 said in How do I navigate to /opt?:
So how do I go up the directory structure?
Also, just like in DOS, the command
cd ..
will still move you 'up' one directory level. The..
represents the parent directory. -
I think perhaps the confusion is that your "starting" location is your user home directory
/home/pi
but that it's abbreviated to the shortcut~
, which makes it look like you're not already two levels deep into the filesystem, when you actually are.pi@retropie:~ $
<< home folder (/home/[user]
)pi@retropie:/ $
<< root folder (/
) -
if you're using a Windows based PC, grab WinSCP. Use that for working with the file and folder structure. It will help you learn quickly where things are and make it easy to load/delete files
Then Putty to work with the permissions and other issues you will come across that require "sudo" based commands.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.