linux

Linux find & replace HowTo

Find and chmod files or folders find . -type d -exec chmod 755 {} ; find . -name "*.php" | xargs grep -niP 'thingy' Find a directory and display on screen find . -type d -name 'linux' 2>/dev/null Find/Grep for a string across multiple files with different extensions find ( -name "*js" -o -name "*jsp" -o -name "*jspf" ) | xargs grep -niP 'thingy'

Netbeans error

I been using Netbeans and following solved the problem: manticore:/etc/sysctl.d# telnet ::ffff:192.168.1.1 Trying ::ffff:192.168.1.1... telnet: Unable to connect to remote host: Network is unreachable manticore:/etc/sysctl.d# sysctl net.ipv6.bindv6only net.ipv6.bindv6only = 1 manticore:/etc/sysctl.d# sysctl net.ipv6.bindv6only=0 net.ipv6.bindv6only = 0 manticore:/etc/sysctl.d# telnet ::ffff:192.168.1.1 Trying ::ffff:192.168.1.1... Connected to ::ffff:192.168.1.1. Escape character is '^]'.