-List files opened by a program listening on a certain port (lsof -i:port)
1 | lsof -i:3306 |
-Benchmark the performance of a webserver
1 | ab -n 100 -c 5 http: //www .sample-mysite.com /test .php |
Send 100 request with 5 concurrent connections.
-Search for a string/pattern in all subdirectories of the given path
1 | find /my/path - exec grep 'hairy' {} /dev/null \; |