PATH (a dummy's question...)

  • johne53
Posted: Thu, 08/21/2008 - 06:48
Which file do I need to edit in order to add something to my PATH (environment variable) on a permanent basis?

/etc/profile = system-wide .profile

  • skullnotions
  • 09/29/07
  • Thu, 08/21/2008 - 11:33
Hi, You're welcome, It depends on your needs, e.g. different users might use different settings. Nice to use local variables if you can. You will be fine using /etc/profile As Always start with... # cp /etc/profile /etc/profile-backup # emacs /etc/profile # /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). See Also: # emacs /etc/bash.bashrc googled: environment variables /etc/profile http://www.comptechdoc.org/os/linux/usersguide/linux_ugenvironment.html Cheers, dave.

Thanks for the link, Dave.

  • johne53
  • 10/07/07
  • Thu, 08/21/2008 - 10:27
Thanks for the link, Dave. In 64studio I think (hopefully correctly!) that the file for path variables is /etc/profile

Environment variables

  • skullnotions
  • 09/29/07
  • Thu, 08/21/2008 - 07:50
Hi, googled: PATH (environment variable) debian http://www.debian.org/doc/manuals/debian-tutorial/ch-shell.html e.g. my .bashrc has entries added... Before you start. $ cp .bashrc bashrc1 $ emacs .bashrc export EDITOR=emacs export VISUAL=emacs e.g. my .emacs might look like this $ emacs .emacs (setq inhibit-startup-message t) ;(set-background-color "black") ;(set-foreground-color "wheat") (setq display-time-24hr-format t) (setq display-time-day-and-date t) (display-time) (tool-bar-mode -1) ;(menu-bar-mode -1) (scroll-bar-mode -1) You might see something like this # emacs /etc/environment LANGUAGE ="en_GB.UTF-8" LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" Cheers, dave