C
CrazedNerd
Guest
EDIT: Wasn't a "find" error but mistaken about permission numbers.
So I've been testing more complicated results of the find command with finding files with certain permissions. With the first attempt, I use an or operator to display files with 0611 and 0700, because there are only a few of these files in my home directory:
However, the output only displays these hidden folders with 0700 permissions:
I tried to get find to show the files with 0611 permissions in my home directory by including type, but it outputs absolutely nothing:
Pretty complex stuff...thanks in advance for even trying. Why isn't bash behaving like i think it should? "-or" would be used in this instance to find files with both 0611 and 0700, correct?
So I've been testing more complicated results of the find command with finding files with certain permissions. With the first attempt, I use an or operator to display files with 0611 and 0700, because there are only a few of these files in my home directory:
Code:
find . -maxdepth 1 \( -perm 0611 \) -or \( -perm 0700 \)
However, the output only displays these hidden folders with 0700 permissions:
Code:
./.ssh
./.config
./.psensor
./snap
./.mozilla
./.gnupg
./.pki
I tried to get find to show the files with 0611 permissions in my home directory by including type, but it outputs absolutely nothing:
Code:
find -maxdepth 1 \( -type f -perm 0611 \) -or \( -type f -perm 0700 \)
Pretty complex stuff...thanks in advance for even trying. Why isn't bash behaving like i think it should? "-or" would be used in this instance to find files with both 0611 and 0700, correct?
Last edited by a moderator: