Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2002
    Posts
    392

    What is the ~ for in directories?

    I have come across some stuff on the internet that has a file structure looking like this:

    /~root/guests
    /~operator/a

    What does the ~ stand for? Is it something to do with a linux directory structure?

    Thanks,

    Jon

  2. #2
    Join Date
    Sep 2005
    Location
    Southern California
    Posts
    179
    ~ typically means that whatever follows is going to be a username

    cp asdf.txt ~/ would copy asdf.txt to your home directory

    ls ~bob would list the contents of bob's home directory.

    If you find directories NAMED with ~'s then either someone configured it in an odd way, or someone has made those directories in an attempt to prevent you from accessing them.

  3. #3
    Join Date
    Nov 2002
    Posts
    392
    Ok, thanks for that.

  4. #4
    Join Date
    Jul 2004
    Location
    Texas
    Posts
    687
    If you're browsing a site that is like "http://site.tld/~name/index.html" its mod_userdir turned on in apache, which if is on will let you use ~yourusername as a way to access your site.

Posting Permissions

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