The above command seems to work fine for me. Are you sure you have directories in your current directory with 000 permission..? Below is the format of the 0 permission directory in my machine.Is the below one is similar to yours ls -l..?
So you only want files and directories in the current directory? That is you want to prohibit recursive searching? Then use: find . \( -name . -o -prune \) -perm 000. I just tested it. It found both files and directories in the current directory with 0 permissions. It ignored files in a subdirectory with 0 permissions.
Hi,
I have a process which creates almost 200K files. Each file ranging from 1kb to 5kb. This is almost 2GB of data in all files.
I have a requirement where the business needs only 100MB worth of files.
Is there a way to get files around 100MB (doesn't have to be exactly 100MB) from all the... (2 Replies)
Hi,
I have a shell script file which is set to access permission 000. When I login as root (sudo su) and try to run this script, I am getting the Permission denied error. I have read somewhere that root admin user can execute any kind of permission script. Then why this behavior? However, I can... (1 Reply)
hi all,
I am an UNIX beginner. I need to create 10,000 .dat files in unix. and first file should have 10102009*1*14,
second file should have 10102009*2*14,
and the 10,000th file should contain 10102009*10000*14,
(Comma is a must at end)
The file name should be... (1 Reply)
hi all
i was reading some questions related to file permission if file has 000 permission then who can read the file ?
i think no one can read the file.
correct me if i am wrong (4 Replies)
Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories.
The following command also shows the files but I only want to see the directories.
ls -lrtR * (4 Replies)