# Command not file

**URL:** https://forum.kirupa.com/t/command-not-file/635638
**Category:** Uncategorized
**Created:** [December 10, 2016, 2:16pm UTC](https://forum.kirupa.com/t/command-not-file/635638 "2016-12-10T14:16:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pacicin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/pacicin/32/7890_2.png) [@pacicin](https://forum.kirupa.com/u/pacicin)
#### Post date: [December 10, 2016, 2:16pm UTC](https://forum.kirupa.com/t/command-not-file/635638/1 "2016-12-10T14:16:53Z")

</div>

Hello Kirupa,

I am trying to run a simple Ruby file but when I try to compile it in GitHub it indicates that the commands are not found? What could this mean? ![](https://forum.kirupa.com/uploads/kirupa/original/2X/a/a2e1d3cac09d8d25f91bc3cde2a5766261ad909b.jpg)

---

<div class="post-metadata">

### Author: ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)
#### Post date: [December 10, 2016, 9:37pm UTC](https://forum.kirupa.com/t/command-not-file/635638/2 "2016-12-10T21:37:51Z")

</div>

You should probably use the command `ruby new_files.rb` instead of just `new_files.rb`. You’re seeing errors now because your terminal is interpreting your Ruby script as a shell script instead.

The other way to fix it is to put something like `#!/usr/bin/env ruby` as the first line at the top of your .rb file. I don’t know if that’ll work in Git Bash on Windows, though.

---

<div class="post-metadata">

### Author: ![pacicin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/pacicin/32/7890_2.png) [@pacicin](https://forum.kirupa.com/u/pacicin)
#### Post date: [December 12, 2016, 6:48am UTC](https://forum.kirupa.com/t/command-not-file/635638/3 "2016-12-12T06:48:19Z")

</div>

I entered the last code but I am still getting the same error. Would it be that the Ruby compiler is not communicating with my file??

---

<div class="post-metadata">

### Author: ![pacicin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/pacicin/32/7890_2.png) [@pacicin](https://forum.kirupa.com/u/pacicin)
#### Post date: [December 12, 2016, 4:50pm UTC](https://forum.kirupa.com/t/command-not-file/635638/4 "2016-12-12T16:50:57Z")

</div>

After rereading your post putting ruby infront of the file name works!

Thank you so much
