You’re about to set a new password, but you want to validate it against your org’s policy first. Example usage (hypothetical): pwdquery --check "MySecureP@ssw0rd" Output:
Build your own—the custom function above is a great start. Final tip Try this one-liner to create a quick pwdquery alias today: pwdquery
Have your own version of pwdquery ? Share it in the comments—I’d love to see how others have extended this idea. Stay efficient, stay curious. You’re about to set a new password, but
If you’ve stumbled across the term pwdquery , you might be confused—because in the Linux/macOS world, pwd prints your current directory, and query could mean anything from database lookups to password checks. Share it in the comments—I’d love to see
alias pwdquery='echo "Path: $(pwd) | Perms: $(ls -ld . | cut -d" " -f1) | Parent: $(dirname $(pwd))"' It’s simple, but surprisingly useful when you’re jumping between deeply nested folders.