There are a couple of aliases I set up to make some simple Web Developments tasks a little bit quicker and easier.
Command |
Alias |
What does it do? |
cd /var/www/html |
html |
Takes the user directly to the folder containing the files for the website. |
sudo cp -Rf /home/philip/FTP/website/* /var/www/html/ |
webcopy |
Copies all of the files that have been copied over from the development machine over to the live site. |
ps aux | grep cp |
copy_status |
Not really used anymore but can quickly check if the files are currently being copied to the website so I can avoid two copy jobs running simultaneously. |
tail -f /var/log/syslog |
logtail |
Quick way to check the end of the syslog file and to check for new entries. |
rsync -azvh /home/philip/FTP/website/* /var/www/html/ |
mysync |
Similar to webcopy but syncs rather than copies the file so is much faster and removes the need to monitor to see if the job is currently running (Tales 2 or three seconds). |