• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 277
  • Last Modified:

Typing a shell and executing

I am using Knoppix and I would like to type the shell script.  I created a directory named Cars and then did the command

cat Cars

(shell is typed here)


How do I run this program from this location?
1 Solution
Kim RyanIT ConsultantCommented:
You need to have the executable permsion bit set. Try typing
chmod 755 Cars

The you should be able to just type Cars or ./Cars to run the script.Note the first line of your script should start with something like  #!/bin/sh
Otherwise you will need to say
sh Cars

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now