Cheatography
https://cheatography.com
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
General Commands
sudo su - "user*" (without quotes) |
*examples: mysql, webadmin, web |
scp remotehost/file localhost |
Log Commands
tail -f /var/fedex/web/port80/logs/* |
*access / errors |
Check if Apache is up
*server/checkme/imhere.html |
ps -A | grep 'httpd' |
Locate stuff
Find Directory: |
find / 2>/dev/null -name 'something' -type d |
Find File: |
find . -name 'something' 2>/dev/null |
/ = root . = current directory down |
Sudo Rules
apachectl = /opt/fedex/web/bin/apachectl |
WWW: |
op apachectl port# configtest |
Sales / other: |
sudo apachectl port# configtest |
|
|
File Locations
Joomla Content : |
/opt/fedex/wish/wsas/htdocs |
Log Files: |
var/fedex/web/port*/logs |
var/fedex/php |
Config files: |
/opt/fedex/web/apache/conf |
|
|
Tools & Commands
wst |
general admin tools |
xapply |
execute cmds on multiple servers |
loadzilla(mtp) |
push changes to servers |
|