How to change directory and run file batch style command?

Nils Kassube kassube at gmx.net
Fri Mar 21 20:04:03 UTC 2008


semaj semaj wrote:
> cd /home/$USERHOMEFOLDER$/IBJts
>
> NOTES: $USERHOMEFOLDER$ refers to the users home folder name. Do not
> include the $ signs when typing the users home folder.

You could simply change the cd command to this line:

cd $HOME/IBJts

including the $ sign. The environment variable $HOME refers to the users 
home folder. Then you don't have to change the script for every user.


Nils




More information about the ubuntu-users mailing list