Home > OS >  Linux is how to find the "user does not have execute permissions" all of the files
Linux is how to find the "user does not have execute permissions" all of the files

Time:02-08

I try to use the find command combination - perm parameters to find, but seems can only match "with" so-and-so file permissions, rather than "not",
For example:
The find -type f - perm - u + x

Path, plans to use the awk command to deal with each row of characters, for example, the first field 4=="-" characters, can determine the user does not have execute permissions, but about half the awk and find all sorts of posts, in the end is not found,
Two methods to provide thank you.

CodePudding user response:

For I in ` find. `
Do
If [! - x $I]
Then
Echo $I
Fi
The done

CodePudding user response:

The find! - perm - u=x
  • Related