Why do my Bash scripts keep failing even when the commands seem simple?

0
0
Asked By MellowPine42 On

I'm behind on a Linux class project and struggling to get my shell scripts working. I recently tried to write one that displays the current date and time when I run the assigned command, but I kept receiving a "command not found" error. I'm not sure whether the problem is my script syntax, how I'm running it, or something else. Any advice for troubleshooting this would be appreciated.

1 Answer

Answered By CedarFox7 On

You’re not dumb—you’re just still getting familiar with shell scripting. The exact error and the script contents would help narrow it down. Also check whether you’re running the script with the correct shell and whether the command is spelled correctly.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.