I'm new to Ubuntu and currently on it because of assignment. I would like to ask few questions:
How do I make new command to run a shell script? For example, when you type
passwd
on terminal it runs the executable file on/usr/bin/passwd
. How do I make it the same like my file?How do I change my shell script into a executable file like the
passwd
?
password
. There is no problem by doing this. – Radu Rădeanu Aug 19 '13 at 19:25.sh
when it's not even an sh script. – geirha Aug 19 '13 at 21:04.sh
extension do not denotes shell scripts? – Radu Rădeanu Aug 20 '13 at 06:21ls
is a compiled binary? would you care if it was a perl script? Do you care thatgunzip
is a bash script? And the links, with lovely animated ads, you point to even disagree with each other what.sh
mean. One says it's a shell script, which is a very vague description (is.sh
extension valid for csh scripts too?). The other says it's a self-extracting archive. – geirha Aug 20 '13 at 13:01.sh
extension is primarily associated with a script designed to run at an UNIX/LINUX command prompt and finish. There is no problem if other kind of files have the same extension or if you don't want to use an extension for this type of file. – Radu Rădeanu Aug 20 '13 at 17:43