Category: Command Line
Double space a file using Ruby
April 23, 2009
Double space a file with Ruby using the command ruby -pe ‘puts’ < file.txt
List Files Provided by Package
April 21, 2009
Show list of files provided by a rpm package installed rpm -ql package_name
Stress Test Apache with ab
April 16, 2009
Stress test your apache web server with the ap tool… ab -n 200 -c 50 http://localhost/ n = number of…
Sort by Line Length
April 14, 2009
Sort file by line length. Original Article… cat /etc/passwd | awk ‘{print length, 0}’ | sort -n | awk ‘{1=””;…
Find Current DNS Server
April 7, 2009
The DNS servers are in the /etc/resolv.conf file – cat it to find what they are. You can edit to…
Recent Comments