Linux

Collection of useful commands in Linux

# Script command that runs for-loop to extract contents from archive/zip files
for i in $(cat rockyou.txt);do openssl enc -aes-256-cbc -d -in GZIP.gzip -k $i 2>/dev/null | tar xz;done

# Search for keywords
grep -rnw "sample keyword" /home/* 2>/dev/null | grep ":1"

# Search for common documents
for ext in $(echo ".xls .xls* .xltx .csv .od* .doc .doc* .pdf .pot .pot* .pp*");do echo -e "\nFile extension: " $ext; find / -name *$ext 2>/dev/null | grep -v "lib|fonts|share|core" ;done

Last updated