asked 163k views
0 votes
How would you execute a script named testscript from the command line?

1 Answer

2 votes
If it's in the same directory that I'm presently in:

./testscript

If it's in a directory on your PATH variable:

testscript

Otherwise it's just as easy to use it's absolute path:

/path/to/testcript
answered
User Aaron Kurtzhals
by
8.1k points