Skip to content

Instantly share code, notes, and snippets.

@h4cc
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h4cc/3156b20743de097f5e03 to your computer and use it in GitHub Desktop.
Save h4cc/3156b20743de097f5e03 to your computer and use it in GitHub Desktop.
Handy Bash commands for every day usage.
# 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