[continue reading…]
shell scripts
[continue reading…]
Can you tell me differences between the following sysvinit /sbin/service command:
service httpd restart
service httpd condrestart
service httpd reload
What is /bin/dash? I noticed that the default system shell /bin/sh was changed to /bin/dash. Why was this change made?
[continue reading…]
I want to increment the date under UNIX or Linux operating system while writing shell scripts. For example Apr/27/2011 should be incremented as Apr/28/2011 and so on. How do I increment a date in UNIX or Linux shell?
[continue reading…]
I noticed that many shell scripts in /etc/init.d/ directory use the following syntax:
echo $“Usage $prog start|stop|reload|restart”
Why a double-quoted string preceded by a dollar sign ($”string”) using the echo command under Linux / UNIX bash scripts?
[continue reading…]
[continue reading…]