Re: What is meaning of this code: chomd +x mydate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



root wrote:
Hi,
   I want to edit a shell shript file which name is mydate. But How can
I run this shell shript file. Someone told me to use "chomd +x mydate",
but what meaning it is  and where I should use!

chmod +x mydate makes the script mydate executable. If you want to run the script as root you can do it via ./mydate if you are in the same directory or via full pathname like /path/to/mydate If your script doesn't contain a she-bang (eg. #!/bin/sh in the first line) you have to call it

   /bin/sh mydate

or

   /bin/sh /path/to/mydate

You'll get the complete explanation of chmod via

   man chmod

Thanks a lot!

Alex


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux