Tagged: shell

About linux : how-to-terminate-a-process-via-key-stroke

Question Detail I have this function on my bash script: sudo tshark -i eth0 -T fields -e ip.src -e dns.qry.name -Y “dns.qry.name~.” -q 1>>log.txt 2>/dev/null & while true do cat log.txt done it is...

About linux : Remove-and-zip-files-in-directories

Question Detail #! /usr/bin/bash DIRECTORY=/main/dir/sub-dir if [ -d $DIRECTORY ]; then find $DIRECTORY/ ‘*’ -maxdepth 1 -mtime +1 -exec rm -rf {} \;; #Zip Files generated within the last six hour find $DIRECTORY/ ‘*’...