# Rails command doesn't work on linux

**URL:** <https://www.ruby-forum.com/t/rails-command-doesnt-work-on-linux/105359>\
**Category:** Rails\
**Created:** [May 29, 2007, 9:38am UTC](https://www.ruby-forum.com/t/rails-command-doesnt-work-on-linux/105359 "2007-05-29T09:38:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 29, 2007, 9:38am UTC](https://www.ruby-forum.com/t/rails-command-doesnt-work-on-linux/105359/1 "2007-05-29T09:38:09Z")

</div>

I am on a Linux server with limited access. Even if ruby and gems  
commands are working fine for me, rails command doesn’t work. The  
rails is already installed( rails packages are listed when I run gem  
query --local)  
Any ideas why rails command is not available?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 29, 2007, 10:08am UTC](https://www.ruby-forum.com/t/rails-command-doesnt-work-on-linux/105359/2 "2007-05-29T10:08:32Z")

</div>

removed\_email\_address@domain.invalid wrote:

> I am on a Linux server with limited access. Even if ruby and gems  
> commands are working fine for me, rails command doesn’t work. The  
> rails is already installed( rails packages are listed when I run gem  
> query --local)  
> Any ideas why rails command is not available?

My guess is that it’s not in the bin directory. You might have to do an  
absolute path command to the rails file, which can vary depending on  
your machine. Do a google search for rails file path or something along  
those lines.
