Find the answer to your Linux question:
Results 1 to 2 of 2
Hi I am a new ubuntu user , what is the benefit of tilde(~) with "cd" command?...
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    5

    tilde (~)

    Hi
    I am a new ubuntu user , what is the benefit of tilde(~) with "cd" command?

  2. #2
    Linux Enthusiast Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    718
    ~ marks your home directory
    - marks the last directory you were in

    i.e.:

    Code:
    cd /var/some/directory
    # in directory /var/some/directory
    cd ~
    # now in home
    cd -
    # now back in /var/some/directory
    please read man pages for such simple questions.

    Code:
    man man

Posting Permissions

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