シェルの設定・環境変数のサンプル。
対象:Linux Fedora, RedHat, CentOSなど
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH unset USERNAME export JAVA_HOME=/usr/local/j2sdk/jdk export PATH=$PATH:$JAVA_HOME/bin export PATH=$PATH:/usr/local/ant/bin export TOMCAT_HOME=/usr/local/tomcat export PATH=$PATH:/usr/local/pgsql/bin export PG_HOME=/usr/local/pgsql export PGLIB=$PG_HOME/lib export PGDATA=$PG_HOME/data export MANPATH="$MANPATH":$PG_HOME/man export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"$PGLIB" export ANT=/usr/local/ant/bin/ant export CLASSPATH=/usr/local/ant/lib/ant.jar export PATH=$PATH:/usr/local/mysql/bin export CLASSPATH=/usr/local/mysql-connector-java/mysql-connector-java.jar
# .bashrc # User specific aliases and functions alias ll='ls -la' # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi