Linux useful commands
#
# superuser -interactive
#
sudo -i
#
# gives you a diagnostic of whats going on in
# the machine. Shows all processes.
#
top
#
# load avg / logged in
#
w
#
# disk storage usage
# -h "human readable"
#
df -h
#
# checks memory usage on a server
#
free -m
#
# all connections
#
netstat -a
#
# shows the last 10 lines of a file
# -f "follow" live watches the file
#
tail
tail -f
#
# create a password (with a new username) or change
# the password (with an already used username)
#
sudo htpasswd /etc/apache2/.htpasswd YOURUSERNAME
#
# .htaccess for apache password protection
#
AuthType Basic
AuthName "Password Required"
AuthUserFile /etc/apache2/.htpasswd
Require user FedEx Tank