The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Newbie Question

Discussion in 'General Discussion' started by sqsisa, Apr 9, 2003.

  1. sqsisa

    sqsisa Well-Known Member

    Joined:
    Apr 8, 2003
    Messages:
    97
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Bay Area, CA
    How can I get a directory structure list for my server? I am spending alot of time just finding out where files are located. Is there a function or script that will give me a list or GUI from the root?

    I don't have a problem using ssh but it took me forever just to find and edit php.ini

    Thanks,
     
  2. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    In SSH typing "ls" will list the files and directories in the current directory.
    Typing "locate FILEORFOLDERNAME" you can find a specific file or folder by replacing the capitals with the real name.
     
  3. xerophyte

    xerophyte Well-Known Member

    Joined:
    Mar 16, 2003
    Messages:
    216
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    And dont forget there is find command also : )
    find
    -exec COMMAND \;

    Carries out COMMAND on each file that find matches. The command sequence terminates with \; (the ";" is escaped to make certain the shell passes it to find literally). If COMMAND contains {}, then find substitutes the full path name of the selected file for "{}".
     
Loading...

Share This Page