haotu : an open lab notebook


Run programs stored in any directory from the command line in any directory

Filed under: Ubuntu, Uncategorized — Tags: — S @ 07:31

You found a random executable/script that you want to run from the command line in any directory local…  how do you do this?

The easiest way is to edit your .bashrc file so that Ubuntu is looking in the folder that contains the program. The .bashrc file is in your home directory as a hidden file.

In the file under the #PATH heading type

export PATH=$PATH:~/yourdirectory

Save it and restart your command line.



show hidden files ubuntu

Filed under: Ubuntu — Tags: — S @ 07:13

In the GUI, pressing Ctrl+H displays any hidden system files and folders.

Blog at WordPress.com.