Skip to content

Instantly share code, notes, and snippets.

@josephspurrier
Last active March 8, 2016 17:26
Show Gist options
  • Save josephspurrier/8f0451df41e72f96c7ca to your computer and use it in GitHub Desktop.
Save josephspurrier/8f0451df41e72f96c7ca to your computer and use it in GitHub Desktop.
Userful Commands on Linux
# Find all files containing text
grep -Ril "text to find" /
# Write test to file using sudo
echo 'This is the test.' | sudo tee /etc/configfile
# Send a log using curl
curl -X POST -T file.txt https://example.com/file_upload;
# Check supported ciphers on server
nmap --script ssl-cert,ssl-enum-ciphers -p 443,993 example.com
# Check package version
dpkg -s package-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment