Results 1 to 4 of 4

Thread: Reverting back to home after Java is done.

  1. #1
    Join Date
    Sep 2009
    Location
    New Jersey
    Beans
    272
    Distro
    Ubuntu 10.04 Lucid Lynx

    Reverting back to home after Java is done.

    Hello everyone. I am deciding I should go into Java programming. Well, I don't like having to open and close the terminal all the time so I can start on my next program. Is there a way to go backward in the path?

    For example:

    Suppose I was in:
    lenni@ubuntu:~/Desktop/Java/Scripts/IncrementOperators$

    How would I get back to:
    lenni@ubuntu:~/Desktop/Java/Scripts/

    ?

    Thanks ^_^

  2. #2
    Join Date
    Apr 2008
    Beans
    507

    Re: Reverting back to home after Java is done.

    Do you mean to go back one directory in the shell? If so ...

    Code:
    cd ..
    Go you good thing!

  3. #3
    Join Date
    Sep 2009
    Location
    New Jersey
    Beans
    272
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Reverting back to home after Java is done.

    That worked, thanks so much!

  4. #4
    Join Date
    Jul 2008
    Location
    VA, USA
    Beans
    213
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Reverting back to home after Java is done.

    Other useful directory navigation tricks:

    Return to your home directory
    Code:
    cd
    Return to the previous directory (not necessarily the parent directory)
    Code:
    cd -
    (Note: this only works one time. For something that remembers more than one directory, see below.)

    Switch directories, but add the current directory to a list of visited directories:
    Code:
    pushd /directory/to/enter
    Go backwards in the list of visited directories:
    Code:
    popd
    Enjoy!

Bookmarks

Posting Permissions

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