User Tools

Site Tools


shell

This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== Shell ====== ===== Process Every File in Directory ===== find /some/directory -maxdepth 1 -type f -exec cmd option {} \; > results.out ===== Find File by Content ===== find . -type f -name "*.java" -print | xargs grep "window" ===== Display Specific Column from Text ===== cat * | awk '{print $2}' ===== List all open ports for one process ===== netstat -anp46 | grep LISTEN | grep <processid> ===== Redirect stderr and stdout ===== cat &> /tmp/log {{tag>linux}}

shell.1445419432.txt.gz · Last modified: 2015/10/21 09:23 by mihael