ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    What does the >> cursor mean in Powershell after typing a command?

    IT Discussion
    shell powershell
    3
    6
    942
    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.
    • F
      Fredtx
      last edited by scottalanmiller

      I ran the following command: get-adorganizationalunit -filter 'Name -like "*" | format-table name, Distinguishedname -a and get a cursor with >> instead of PS C:. What does this mean?

      1 Reply Last reply Reply Quote 1
      • S
        scottalanmiller
        last edited by

        That's the way that the shell indicates to you that you have an incomplete command and that it is awaiting the rest of it. This is copied from older shells like BASH which got it from the original SHELL.

        1 Reply Last reply Reply Quote 2
        • D
          dafyre
          last edited by

          That usually means you forgot a quote mark or something.

          1 Reply Last reply Reply Quote 2
          • F
            Fredtx
            last edited by

            I'll try my syntax again. Is there a way to try again without having to close PS and reopen again?

            S 1 Reply Last reply Reply Quote 0
            • S
              scottalanmiller @Fredtx
              last edited by

              @fredtx said in What does the >> cursor mean in Powershell after typing a command?:

              I'll try my syntax again. Is there a way to try again without having to close PS and reopen again?

              Try Control-C

              F 1 Reply Last reply Reply Quote 2
              • F
                Fredtx @scottalanmiller
                last edited by

                @scottalanmiller That did the trick. Didn't even cross my mind. Thanks!

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