RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    How do I navigate to /opt?

    Scheduled Pinned Locked Moved Help and Support
    linuxcommands
    6 Posts 5 Posters 2.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gizmo90
      last edited by

      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.

      kiroK YFZdudeY 2 Replies Last reply Reply Quote 0
      • kiroK
        kiro @gizmo90
        last edited by kiro

        @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.

        G 1 Reply Last reply Reply Quote 1
        • G
          gizmo90 @kiro
          last edited by

          @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 /

          jamrom2J 1 Reply Last reply Reply Quote 0
          • YFZdudeY
            YFZdude @gizmo90
            last edited by YFZdude

            @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.

            1 Reply Last reply Reply Quote 0
            • S
              sleve_mcdichael
              last edited by

              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 (/)

              1 Reply Last reply Reply Quote 0
              • jamrom2J
                jamrom2 @gizmo90
                last edited by

                @gizmo90

                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.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                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.