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

This is a discussion on List Directory Truncated? How to? in the Shared & Semi-Dedicated forum
Hi at all... I have a dir with 2gb of post, image,etc...(12000+ ...is a forum) I need to change permission (or to view entire structure) ...

  1. #1
    Loyal Client
    Join Date
    May 2006
    Location
    Italy
    Posts
    54

    List Directory Truncated? How to?

    Hi at all...

    I have a dir with 2gb of post, image,etc...(12000+ ...is a forum)

    I need to change permission (or to view entire structure) but via ftp this folder are truncated to 2000 ...

    How can view all of this files? (waiting the right time...)
    How can i change all permissions at all files quickly?

  2. #2
    Friendly rainboy's Avatar
    Join Date
    Apr 2006
    Location
    Eindhoven, The Netherlands
    Posts
    546
    Matteo,

    Do you have shell access, then login to your account and set the permissions like:

    chmod 755 -R /directory2change/

    will change all directories and files under /directory2change/ to 755

    ( -R, --recursive change files and directories recursively )

    USE WITH CAUTION!!!!

    Kind regards,
    Patrick

  3. #3
    Loyal Client
    Join Date
    May 2006
    Location
    Italy
    Posts
    54
    thanks,

    little more: what is the command via shell to know how many files are in folders?

  4. #4
    Friendly rainboy's Avatar
    Join Date
    Apr 2006
    Location
    Eindhoven, The Netherlands
    Posts
    546
    Quote Originally Posted by Matteo Sacco
    thanks,

    little more: what is the command via shell to know how many files are in folders?
    That is maybe a bit more tricky under linux as under windows..

    go to the directory and issue: ls -Al |wc -l
    It will see directories also as file names though. (-A excludes . and ..)

    or if you also want to directories below the directory you are looking at:
    ls -AlR |wc -l

    wc -l is nothing more as a line count, so i count the lines the ls command gives back to you.

    Maybe there are better ways, but this will what you asked.

    Kind regards,
    Patrick

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
  •