Quote |
Is the export command supposed to be in .bash_profile, bash.bashrc, .xinitrc, or .bashrc? <snip> Some of these files are in more than one directory, so which is the appropriate one to edit? |
Quote |
Conclusion: it should work in <snip> where the top of the list is probably the better one to use - unless you just want it for the current user. |
Quote |
Exactly what are these files for? <snip> What's the startup mechanism, and why is there so much confusing information? |
Quote |
All I want here is to get a certain command to execute AUTOMATICALLY EVERY TIME I boot up. |
Quote |
OK, I see that /etc/bashrc is the file. |
Code Sample |
#!/bin/sh tmp=`mktemp -d ${TMPDIR}/myprofile.XXXXXX ` cd $tmp mkdir etc cat /etc/profile > etc/profile printf "PRINTER=lp\nexport PRINTER\n" >> etc/profile tar zcf `cat /opt/.mydsl_dir `/myprofile.tar.gz etc/profile --no-recursion rm -rf $tmp |