unix - 查找所有没有设置粘滞位的文件,这些文件可以在我的 FreeBSD 服务器上执行

标签 unix freebsd

如何在我的 FreeBSD 服务器上获取没有设置粘滞位且文件可执行的文件列表(无目录)?

最佳答案

这应该适合你:

find . \! -perm -01000 -perm -00100 -perm -00010 -perm -00001 \! -type l \! -type d -print

您可能想花一些时间来了解 find 的复杂性。 Alvin Alexander 博客文章 Linux find command recipes是一个你可以开始的地方,只是谷歌 unix find更多。

关于unix - 查找所有没有设置粘滞位的文件,这些文件可以在我的 FreeBSD 服务器上执行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11663502/

相关文章:

linux - VirtualBox 中的开发机器 - (Debian-min vs ArchLinux vs recommend-one)

git - 无法推送到 github,openssl 问题

c - freebsd C crypt() 线程安全吗?

gcc - Unix 程序使用共享库中的错误函数

python - 如何从另一个 Python 脚本内部运行一个 Python 脚本?

c - 递归删除目录

unix - ps按开始时间排序结果

c - C代码如何调用汇编代码(例如优化的strlen)?

Vim 的 cscope 连接在每次 GNU screen 重新连接时中断

freebsd - 为使用 NPM 而不是 Make 的应用程序创建一个新的 FreeBSD 端口