Last active
August 29, 2015 14:04
-
-
Save h4cc/3156b20743de097f5e03 to your computer and use it in GitHub Desktop.
Handy Bash commands for every day usage.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Some handy commands i dont like to google the way down every time: | |
# List files by changed timestamp in current folder | |
find . -type f -printf '%T@ %p\n' | sort -n -r | cut -f2- -d" " | sed -e 's,^./,,' | xargs ls -U -l | |
# Files writeable by "others" in current folder | |
find . -type d -perm /o+w | |
# Files writeable by current "group" in current folder | |
find . -type d -perm /g+w | |
# Files writeable by current "user" in current folder | |
find . -type d -perm /u+w | |
# Files NOT writeable in current folder | |
find . -type d ! -perm /ugo+w |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment