Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 10 of 10

This is a discussion on A quick dumb question..FTP?? in the Open Discussion & Chit-chat forum
Ok I noticed that in my Ftp Cgi bin there is a folder Public_html and a www folder,now both have the same info(web site files,etc,),is ...

  1. #1
    JPC Member
    Join Date
    Mar 2003
    Posts
    29

    A quick dumb question..FTP??

    Ok I noticed that in my Ftp Cgi bin there is a folder Public_html and a www folder,now both have the same info(web site files,etc,),is this taking up more space?by have the same files in both folders?should i just erase the public html folder??Thanks

  2. #2
    JPC Senior Member
    Join Date
    Oct 2002
    Posts
    66
    No they are both actually the same folder. Public_html points to the www folder. If you delete the www folder it will also delete the files in the public_html folder.

  3. #3
    Ron
    Guest
    Originally posted by requestcode
    If you delete the www folder it will also delete the files in the public_html folder.
    Exactly! And vice versa, too!

    If you delete any single file in either it will be gone in the other as well.

    They don't take up any additional space.

    -Ron.

    BTW, the www directory is a sybolic link and points to the public_html directory.

  4. #4
    JPC Member
    Join Date
    Mar 2003
    Posts
    29
    Thank you very much! I didnt know,i almost deleted the public html folder...glad i didnt.Thank God for this forum.

  5. #5
    Aletia Refugee lvzardoz's Avatar
    Join Date
    Feb 2002
    Location
    Las Vegas
    Posts
    165
    Originally posted by requestcode
    No they are both actually the same folder. Public_html points to the www folder. If you delete the www folder it will also delete the files in the public_html folder.
    Well, technically that is not correct, at least within the SSH shell.

    You should not delete the 'www' directory, however within SSH, if you only delete the 'www' directory, it does NOT delete the files within the 'public_html' directory (unless that is what you specify).

    > rm www (does NOT delete files, just deletes the symbolic link)

    > rm -fr www (deletes link and files within www AND public_html)

    Regardless of the technicality, do NOT delete the www folder.

  6. #6
    Ron
    Guest
    Well, you're correct -- sort of.
    Where "requestcode" wrote: "If you delete the www folder "
    I INTERPRETED that to mean deleting files, not to actually removing the directory entry. My bad.

    picky picky picky....

    1) I just TRIED this:

    mkdir temp
    cd temp
    mkdir a
    ln -s a b
    cd b
    echo hiya >file1
    cd ..
    ls -l
    [[result:
    a
    b -> a
    ]]
    rm -rf b

    ls -l
    [[result:
    a
    ]]

    ls a
    [[result:
    file1
    ]]
    ln -s a b
    ls -l
    [[result:
    a
    b -> a
    ]]

    cd b
    rm file1
    cd ..
    ls a
    [[result:
    ]]

    I, too, would have expected the results you described, but actually testing it shows otherwise.

    2) I don't think that SSH is actually a shell...? I thought we used to run bash and now we have a layer called jailshell over that...

  7. #7
    O_o CeleronXL's Avatar
    Join Date
    Dec 2001
    Posts
    585
    'www' is merely a shortcut. public_html is the folder
    "Before you critisize someone, walk a mile in their shoes. That way, when you critisize them, you're a mile away and you have their shoes."
    My Site: StarCraft Sector | My vB Forums: Forum Sector
    E-Mail: celeronxl@cox.net | AIM: CeleronXL | ICQ: 118648739 | MSNM: celeronxl@hotmail.com | YIM: celeronxl

  8. #8
    Ron
    Guest
    CeleronXL with the 8088-like rapidfire response...

    I knew there was a reason you were banned!
    How are ya, you old Aletia cust. What server are you on now?
    -Ron.

  9. #9
    O_o CeleronXL's Avatar
    Join Date
    Dec 2001
    Posts
    585
    Originally posted by Ron
    CeleronXL with the 8088-like rapidfire response...

    I knew there was a reason you were banned!
    How are ya, you old Aletia cust. What server are you on now?
    -Ron.
    Hehe.

    I'm good. I'm doing well over on Nitrogen. Where are you now?
    "Before you critisize someone, walk a mile in their shoes. That way, when you critisize them, you're a mile away and you have their shoes."
    My Site: StarCraft Sector | My vB Forums: Forum Sector
    E-Mail: celeronxl@cox.net | AIM: CeleronXL | ICQ: 118648739 | MSNM: celeronxl@hotmail.com | YIM: celeronxl

  10. #10
    Ron
    Guest
    I've got sites on mercury and neon.

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
  •