|
|
|
|
|
by Exuma
3198 days ago
|
|
Here are some that I use in Pet: Description: Remove executable recursively for all files Command: chmod -x $(find . -type f)
Description: List files with permissions number Command: ls -l | awk '{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/) *2^(8-i));if(k)printf("%0o ",k);print}'
Description: Output primary terminal colors Command: for i in {0..16}; do echo -e "\e[38;05;${i}m\\\e[38;05;${i}m"; done | column -c 80 -s ' '; echo -e "\e[m"
Description: NPM list with top-level only Command: npm list --depth=0 2>/dev/null
Description: Show active connections Command: netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | sed -e 's/::ffff://' |cut -d: -f1 | sort | uniq -c | sort -rn | head
|
|