ubuntu 系统 /etc/profile, ~/.profile, ~/.bashrc, ~/.bash_logout,~/.bash_history 文件的内容及解析

今天在ubuntu下安装了jdk


各文件的内容:

~/.profile 文件中内容:

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi
export LANGUAGE="en"
export LANG="en_US.utf8"


======================================================

etc/profile 文件中内容:

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi

if [ "$PS1" ]; then
  if [ "$BASH" ]; then
    PS1='\u@\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
    . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

umask 022


=======================================================

~/.bashrc 文件中内容:

<空文件>


========================================================

~/.bash_logout 文件中内容:

<空文件>


========================================================

~/.bash_history文件中内容:

<空文件>



你可能感兴趣的:(ubuntu 系统 /etc/profile, ~/.profile, ~/.bashrc, ~/.bash_logout,~/.bash_history 文件的内容及解析)