Skip to content

Instantly share code, notes, and snippets.

@shiv19
Forked from veggiemonk/useful.sh
Created November 5, 2018 19:49
Show Gist options
  • Save shiv19/3b87e612db5e29c4315317510e25b199 to your computer and use it in GitHub Desktop.
Save shiv19/3b87e612db5e29c4315317510e25b199 to your computer and use it in GitHub Desktop.
Useful commands
# Commands that are useful once in a while but not always for everyday usage
# Remove all node_modules forlder recursively
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
# List globally installed npm package
npm list -g --depth=0
# Loop over files in the current dir
for f in *; do
echo "File -> $f"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment