UbuntuでのPATHの通し方

とりあえずユーザ別のパスは

$ vi ~/.profile
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
>PATH="/usr/local/mysql/bin:$PATH"
# if running bash
if [ -n "$BASH_VERSION" ]; then
のようにPATHを追加して、
$ source ~/.profile

でOK。
全ユーザに追加したいときは、/etc/profile.d配下をいじることになりそう。

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です