if [ -k file ] then echo "File has sticky bit set" fi
if [ -n "$(find file -prune -perm /1000)" ] then echo "File has sticky bit set" fi
test -k file and [ -k file ] are not defined by POSIX. To ensure compatibility with all target systems, use find instead.
test -k file
[ -k file ]
find
None. If you are targeting a shell that supports test -k, specify it in the shebang.
test -k
There was an error while loading. Please reload this page.