Create a directory alias or a shortcut to replace a long path in Linux

If you just want the ease of switching into that directory, to create a real alias and save keystrokes just type the following:

[root@centos ~]# alias www1='cd /var/www/html/domain1/public_html/'
[root@centos ~]# www1