Wednesday, May 19, 2021

Find files and directories with UID,GID,Sticky bit set

 Find files and directories with UID,GID,Sticky bit set


# find ./ -type -d -perm 1000 -exec ls -ld {} \;

# find ./ -type f  \( -perm -2000 -o -perm -4000 \) -exec ls -ld {} \;

 

$ ansible -i hostlist all -o -a "ls -l /etc/resolv.conf" | sort | grep -v "Mar 20 10"

 

No comments:

Post a Comment

Git branch show detached HEAD

  Git branch show detached HEAD 1. List your branch $ git branch * (HEAD detached at f219e03)   00 2. Run re-set hard $ git reset --hard 3. ...