PuTTy Command Line Navigation Question

Discussion in 'Site & Server Administration' started by T0PS3O, Oct 30, 2006.

  1. #1
    I'm running in some errors, not exactly knowing what I'm doing so it's sort of trial and error. Whenever it spits back an error, the cursor just sits on the next line but not at the prompt.

    How do I 'come out of' the error or out of the last command and revert back to the # prompt?

    Right now I just keep closing PuTTy and logging back in but that's a pain having to reauthenticate and su my way to the right user etc.

    Any ideas?
     
    T0PS3O, Oct 30, 2006 IP
  2. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #2
    control c, normally.

    in some circumstances "q" will work. :)
     
    disgust, Oct 30, 2006 IP
  3. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, I'll give that a shot next time (soon :) )
     
    T0PS3O, Oct 30, 2006 IP
  4. carl_in_florida

    carl_in_florida Active Member

    Messages:
    1,066
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    90
    #4
    Can i tag on?
    How do you go up one level? I tried cd.. but that does not work.

    Thanks
     
    carl_in_florida, Nov 9, 2006 IP
  5. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Ad one space.

    # cd ..
     
    T0PS3O, Nov 9, 2006 IP
    carl_in_florida likes this.
  6. saadahmed007

    saadahmed007 Admínistratör

    Messages:
    5,272
    Likes Received:
    869
    Best Answers:
    0
    Trophy Points:
    380
    #6
    TOPS *q* should work and also you can go in main directory by using cd ~ (If you logged in using root login) otherwise just cd :)
    Saad
     
    saadahmed007, Nov 9, 2006 IP
    carl_in_florida likes this.
  7. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #7
    cd ~ goes to the root user's home directory.

    it works for all other users too.

    cd ~yoursite will take you to the home directory of yoursite. likely something like...

    /home/yoursite/

    your username will be the same that you use to log into your FTP, etc.
     
    disgust, Nov 9, 2006 IP
    carl_in_florida likes this.
  8. carl_in_florida

    carl_in_florida Active Member

    Messages:
    1,066
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    90
    #8
    wow, thanks
     
    carl_in_florida, Nov 15, 2006 IP
  9. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #9
    no problem :)

    I'm thinking I'll make a bash / ssh crash course entry for my blog at some point, as a lot of webmasters run into it by the time they're using vps or dedicated servers but not all of them really know how it works.

    I'm by no means great at it, but I've learned a bit as time went on
     
    disgust, Nov 15, 2006 IP
  10. carl_in_florida

    carl_in_florida Active Member

    Messages:
    1,066
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    90
    #10
    I had such a hard time just remembering how to gzip a directory that I had to post the unix code in my blog that had nothing to do with any server management.

    most tutes give way too much useless info, like every option to every command. What would be good (in my opinion) is a rundown without all the extra info.
    1. to back up type this
    2 to install this type this
     
    carl_in_florida, Nov 15, 2006 IP
  11. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #11
    yeah, I didn't plan on going through every option. that's what the man pages are for :)
     
    disgust, Nov 15, 2006 IP