Find the answer to your Linux question:
Results 1 to 4 of 4
So I am fairly new to linux and I am using the PuTTy program. I have an assignment I am stuck with for a week and no other forum seems ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2013
    Posts
    9

    Need help to return after prompting...


    So I am fairly new to linux and I am using the PuTTy program. I have an assignment I am stuck with for a week and no other forum seems to understand what I am trying to get at.

    So this is what I did, I set the primary prompt but I could not figure out how to go back, I tried typing cd ~ but it didn't go back to the path so I can type more codes but instead it typed inside the prompt...

    home ~ $ PS1='\(at sign) \w > '
    06:55 PM ~ >
    06:56 PM ~ > cd
    06:57 PM ~ > cd ~

    I need to go to back to
    home ~ $

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    Not sure how you are doing this or exactly what you want to do. I'm guessing you want to edit the bash prompt? Take a look at the site below for numerous examples:

    How to: Change / Setup bash custom prompt (PS1)

  3. #3
    Just Joined!
    Join Date
    Feb 2013
    Posts
    9
    =
    No not really, I'm passed that. I just want to go back to

    " home ~ $ "

    so I can type other codes.

    Because in the state I am, I cannot do anything else because I am still inside the prompt and don't know how to go out.

  4. #4
    Just Joined!
    Join Date
    Feb 2013
    Posts
    9
    Nvm I figured it out. I set the prompt wrong, needed the $ behind.
    Last edited by michaeln1061; 04-14-2013 at 01:32 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •