.bashrc: Difference between revisions
import>Tes36 No edit summary |
import>Tes36 |
||
Line 3: | Line 3: | ||
== Nature of the beast == |
== Nature of the beast == |
||
The .bashrc file is hidden, and lives in the home (~) directory of the user. To see hidden files in a list, use ls -a. |
The .bashrc file is hidden, and lives in the home (~) directory of the user. To see hidden files in a list, use ls -a. |
||
If you have made changes to .bashrc, you can rerun the file while in the home directory rather than restarting the terminal. |
If you have made changes to .bashrc, you can rerun the file while in the home directory rather than restarting the terminal. |
||
<div class="center" style="width: auto; margin-left: auto; margin-right: auto;">". .bashrc"</div> |
|||
== Path == |
== Path == |
Revision as of 09:23, 21 August 2015
Upon startup the .bashrc file is executed. It contains command line inputs. Add new inputs to this file if you find yourself wanting to issue the same shell commands over and over, such as modifying the $PATH. You can also create alias, and short functions.
Nature of the beast
The .bashrc file is hidden, and lives in the home (~) directory of the user. To see hidden files in a list, use ls -a. If you have made changes to .bashrc, you can rerun the file while in the home directory rather than restarting the terminal.
Path
The path statement is where the shell checks for executable files. These files must be in the path, else they will not be found. Your path always includes the directory you are currently browsing, but you can add other directories to be permanently in the path by writing a line of the form: