Tero Karvinen - Articles - Downloads - Courses - Contact

Per User bin/

Run your shell scripts just like any other command, without writing ./command.

This article is a work in progress.

$ mkdir $HOME/bin/
$ nano .bashrc

Add as the last line

PATH=$PATH:$HOME/bin

To use, close and open shell.

$ exit

Put a shell script to bin/. (Writing your first shell script)

$ cp lspwd bin/
$ lspwd

If it works (without “./”), you have successfully enabled your per user bin/.

Last modified: 2007-12-04. Permanent url: http://www.iki.fi/karvinen/per_user_bin.html

Tero Karvinen www.iki.fi/karvinen - Top - Validate HTML - Validate CSS