You can find out what’s your home directory by typing “ echo $HOME” or “ echo ~”. But where you should do that?Īll shells (bash, zsh, etc) keep its settings in home directory. One can redefine this variable such a way, so shell looks up the file somewhere else first (you’re getting it right, you need to prepend new directory to the $PATH, not to append). If the file wasn’t found, it iterates over the next directories until the file is found. When you type “ ruby” command, your shell tries to find the file in the first directory. /usr/bin (where “ ruby” is actually located).So $PATH variable has multiple directories, separated by “ :” (colon): usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin Debugging Example - Save the World with Ruby.The truth about Object-Oriented programming.Arrays of Arrays (two-dimensional arrays in Ruby).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |