Advertisement
Johnny2

profile and profile-copy

Oct 6th, 2017
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. cat .profile-copy (original)
  2. # ~/.profile: executed by the command interpreter for login shells.
  3. # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
  4. # exists.
  5. # see /usr/share/doc/bash/examples/startup-files for examples.
  6. # the files are located in the bash-doc package.
  7.  
  8. # the default umask is set in /etc/profile; for setting the umask
  9. # for ssh logins, install and configure the libpam-umask package.
  10. #umask 022
  11.  
  12. # if running bash
  13. if [ -n "$BASH_VERSION" ]; then
  14. # include .bashrc if it exists
  15. if [ -f "$HOME/.bashrc" ]; then
  16. . "$HOME/.bashrc"
  17. fi
  18. fi
  19.  
  20. # set PATH so it includes user's private bin directories
  21. if [ -d "$HOME/bin" ] ; then
  22. PATH="$HOME/bin:$PATH"
  23. fi
  24.  
  25. cat .profile
  26. PATH="/usr/bin:/bin:/usr/local/games:usr/games:$HOME/bin"
  27. if [ -f ~/.bashrc ]; then
  28. . ~/.bashrc
  29. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement