Category: Command Line

Start a new Django Project

Command to start a new Django project… django-admin.py startproject [PROJECT_NAME] cd [PROJECT_NAME] python manage.py startapp [PROJECT_NAME]

Double space a file using Ruby

Double space a file with Ruby using the command ruby -pe ‘puts’ < file.txt

List Files Provided by Package

Show list of files provided by a rpm package installed rpm -ql package_name

git push

Command to push the current repository in git to a online server git push

Stress Test Apache with ab

Stress test your apache web server with the ap tool… ab -n 200 -c 50 http://localhost/ n = number of…

Sort by Line Length

Sort file by line length. Original Article… cat /etc/passwd | awk ‘{print length, 0}’ | sort -n | awk ‘{1=””;…

Set Path

Adding a new folder to the current path… export PATH=NEW_FOLDER:$PATH

Find Current Path

Use this command to find the current path… echo $PATH

Find Current DNS Server

The DNS servers are in the /etc/resolv.conf file – cat it to find what they are. You can edit to…

Show All HTTP Traffic

Show all HTTP traffic tcpdump tcp port 80