How to restart Apache after every .conf file change use incron for this . sudo apt-get install incron sudo nano /etc/incron.allow add username at end of this file sudo incrontab -e /etc/apache2/apache2.conf IN_MODIFY /user/sbin/srrvice apache2 restart column command in Linux Linux display data from file to row column format Empty file without deleting it . > filename Run Last command Sudo !! !$