Skip to content

Instantly share code, notes, and snippets.

@Rodrigora
Last active December 12, 2018 10:29
Show Gist options
  • Save Rodrigora/de37885d01ac769b8739c3febeb4dd40 to your computer and use it in GitHub Desktop.
Save Rodrigora/de37885d01ac769b8739c3febeb4dd40 to your computer and use it in GitHub Desktop.
Unix commands
kill -9 $(ps aux | grep spring | awk '{print $2}' | head -n 1)
kill -9 $(ps aux | grep webkit | awk '{print $2}' | head -n 1)
# Find files and remote by pattern
find /path/to/directory -type f -name '*[0-9]x[0-9]*[0-9]x[0-9]*.jpg' -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment