Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

bash load command not found

Hey all. I seem to keep having issues with my terminal.


The two things I an dealing with right now.


1) When I boot up iTerm2 I get the first line that gives last login, date, time and then "on ttys001"

What is causing this?


2) I am trying to load a simple ruby program that I made for school and when i run the load command (I'm in the right directory) I get -bash: load: command not found"

Why is this happening?


Any help would be greatly appreciated.


Thanks

MacBook Pro with Retina display, OS X El Capitan (10.11.4)

Posted on May 6, 2016 7:33 AM

Reply
1 reply

May 6, 2016 9:55 AM in response to RennSport5280

That message from iTerm2 is normal. I get the following when first starting Terminal in OS X 10.11.4.

User uploaded file


The load command is a Ruby command, not a Bash or UNIX command. You would use it within the Interactive Ruby Shell (irb) as discussed in this article.


# The following will load and execute mycode.rb in the current directory. Quotes are important.

# You type only the blue text. The '$" is the shell prompt, and > is the irb prompt. Control-D to quit irb.

$ irb

> load "./mycode.rb"

bash load command not found

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.