LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   what does this line do? (https://www.linuxquestions.org/questions/linux-software-2/what-does-this-line-do-107981/)

shanenin 10-24-2003 09:01 AM

what does this line do?
 
what does this line do? #chmod +x /etc/rc.firewall
do I have to make a script executable before I place it in /etc/rc.d ?
if so how do I do that?

hw-tph 10-24-2003 09:07 AM

The # probably indicates that it should be done as root. chmod +x /etc/rc.firewall makes the file /etc/rc.firewall executable.

And yes, you should make scripts executable since they are of little use if they are not (I know someone could argue you could use bash scriptname but that's not the point, is it?).

How to make something executable? You just posted an example on how to do it. :)

Håkan

shanenin 10-24-2003 09:15 AM

Thank you.

jim mcnamara 10-24-2003 09:33 AM

Depending - the pound # can also be a comment - ie., the code is not supposed to execute.


All times are GMT -5. The time now is 10:10 AM.