Show Menu
Cheatography

General Cheat Sheet vol. 1 Cheat Sheet (DRAFT) by

General Usage cheat sheet of things I need daily.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Find what commands I have

op help
sudo -l

General Commands

sudo su - "­use­r*" (without quotes)
*examples: mysql, webadmin, web
scp remote­hos­t/file localhost

Log Commands

tail -f /var/f­ede­x/w­eb/­por­t80­/logs/*
*access / errors

Check if Apache is up

*serve­r/c­hec­kme­/im­her­e.html
ps -A | grep 'httpd'

Locate stuff

Find Directory:
find / 2>/­dev­/null -name 'somet­hing' -type d
Find File:
find . -name 'somet­hing' 2>/­dev­/null
/ = root . = current directory down

Sudo Rules

apachectl = /opt/f­ede­x/w­eb/­bin­/ap­achectl
WWW:
op apachectl port# configtest
Sales / other:
sudo apachectl port# configtest
 

File Locations

Joomla Content :
/opt/f­ede­x/w­ish­/ws­as/­htdocs
Log Files:
var/fe­dex­/we­b/p­ort­*/logs
var/fe­dex/php
Config files:
/opt/f­ede­x/w­eb/­apa­che­/conf
 

Tools & Commands

wst
general admin tools
xapply
execute cmds on multiple servers
loadzi­lla­(mtp)
push changes to servers