- 论坛徽章:
- 0
|
202.112.229.168
stu
abcdefg
mkdir
printenv 要显示环境变量的值
echo $PATH
cd ~
cat .bashrc
export ps1='\u0\h:\w\$'
stu0debian:/usr/bin$ find/home -name ifconfig
stu0debian:/usr/bin$ find/ -name ifconfig
////////////////第五道作业////////////////////////////////////////////////////////////////////////
[email=stu@debian:~$]stu@debian:~$[/email]
cd /home
[email=stu@debian:/home$]stu@debian:/home$[/email]
find /home -name .bashrc
/home/bliu/.bashrc
find: /home/bliu/.scim: ȨÏÞ²»¹»
find: /home/bliu/.gconf: ȨÏÞ²»¹»
find: /home/bliu/.gconfd: ȨÏÞ²»¹»
find: /home/bliu/.gnome: ȨÏÞ²»¹»
find: /home/bliu/.gnome2: ȨÏÞ²»¹»
find: /home/bliu/.gnome2_private: ȨÏÞ²»¹»
find: /home/bliu/.metacity: ȨÏÞ²»¹»
find: /home/bliu/.nautilus/metafiles: ȨÏÞ²»¹»
find: /home/bliu/.mozilla: ȨÏÞ²»¹»
find: /home/bliu/.thumbnails: ȨÏÞ²»¹»
find: /home/bliu/.Trash: ȨÏÞ²»¹»
find: /home/bliu/.kde: ȨÏÞ²»¹»
find: /home/bliu/.ssh: ȨÏÞ²»¹»
[email=stu@debian:/home$]stu@debian:/home$[/email]
cat /home/bliu/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything:
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
#export HISTCONTROL=ignoredups
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
fi
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color)
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
;;
*)
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
;;
esac
# Comment in the above and uncomment this below for a color prompt
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# If this is an xterm set the title to
[email=user@host:dir]user@host:dir[/email]
case "$TERM" in
xterm*|rxvt*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
;;
*)
;;
esac
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profiles
# sources /etc/bash.bashrc).
#if [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
#fi
PATH=$PATH:/usr/local/jdk1.5.0_06/bin
export PATH
JAVA_HOME=/usr/local/jdk1.5.0_06/
export JAVA_HOME
[email=stu@debian:/home$]stu@debian:/home$[/email]
[email=stu@debian:/home$]stu@debian:/home$[/email]
find /home -name .bashrc
find: /home/bliu/.scim: ȨÏÞ²»¹»
-bash:
[email=stu@debian:/home$]stu@debian:/home$[/email]
: ûÓÐÄǸöÎļþ»òĿ¼
find: /home/bliu/.gconf: ȨÏÞ²»¹»
find: /home/bliu/.gconfd: ȨÏÞ²»¹»
find: /home/bliu/.gnome: ȨÏÞ²»¹»
find: /home/bliu/.gnome2: ȨÏÞ²»¹»
[email=stu@debian:/home$]stu@debian:/home$[/email]
/home/bliu/.bashrc
# don't put duplicate lines in the history. See bash(1) for more options
#export HISTCONTROL=ignoredups
-bash: /home/bliu/.bashrc: ȨÏÞ²»¹»
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
fi
[email=stu@debian:/home$]stu@debian:/home$[/email]
find: /home/bliu/.scim: ȨÏÞ²»¹»
;;
-bash: find:: command not found
[email=stu@debian:/home$]stu@debian:/home$[/email]
find: /home/bliu/.gconf: ȨÏÞ²»¹»
-bash: find:: command not found
export JAVA_HOME
[email=stu@debian:/home$stu@debian:/home$]stu@debian:/home$stu@debian:/home$[/email]
find: /home/bliu/.gconfd: ȨÏÞ²»¹»
-bash: find:: command not found
[email=stu@debian:/home$]stu@debian:/home$[/email]
find: /home/bliu/.gnome: ȨÏÞ²»¹»
-bash: find:: command not found
[email=stu@debian:/home$]stu@debian:/home$[/email]
find: /home/bliu/.gnome2: ȨÏÞ²»¹»
-bash: find:: command not found
[email=stu@debian:/home$]stu@debian:/home$[/email]
find: /home/bliu/.gnome2_private: ȨÏÞ²»¹»
-bash: find:: command not found
[email=stu@debian:/home$]stu@debian:/home$[/email]
find: /home/bliu/.metacity: ȨÏÞ²»¹»
-bash: find:: command not found
[email=stu@debian:/home$]stu@debian:/home$[/email]
find: /home/bliu/.nautilus/metafiles: ȨÏÞ²»¹»
-bash: find:: command not found
[email=stu@debian:/home$]stu@debian:/home$[/email]
find: /home/bliu/.mozilla: ȨÏÞ²»¹»
-bash: find:: command not found
[email=stu@debian:/home$]stu@debian:/home$[/email]
find: /home/bliu/.thumbnails: ȨÏÞ²»¹»
-bash: find:: command not found
[email=stu@debian:/home$]stu@debian:/home$[/email]
find: /home/bliu/.Trash: ȨÏÞ²»¹»
-bash: find:: command not found
[email=stu@debian:/home$]stu@debian:/home$[/email]
find: /home/bliu/.kde: ȨÏÞ²»¹»
-bash: find:: command not found
[email=stu@debian:/home$]stu@debian:/home$[/email]
find: /home/bliu/.ssh: ȨÏÞ²»¹»
-bash: find:: command not found
[email=stu@debian:/home$]stu@debian:/home$[/email]
[email=stu@debian:/home$]stu@debian:/home$[/email]
cat /home/bliu/.bashrc
-bash:
[email=stu@debian:/home$]stu@debian:/home$[/email]
: ûÓÐÄǸöÎļþ»òĿ¼
[email=stu@debian:/home$]stu@debian:/home$[/email]
# ~/.bashrc: executed by bash(1) for non-login shells.
[email=stu@debian:/home$]stu@debian:/home$[/email]
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
[email=stu@debian:/home$]stu@debian:/home$[/email]
# for examples
[email=stu@debian:/home$]stu@debian:/home$[/email]
[email=stu@debian:/home$]stu@debian:/home$[/email]
# If not running interactively, don't do anything:
[email=stu@debian:/home$]stu@debian:/home$[/email]
[ -z "$PS1" ] && return
[email=stu@debian:/home$]stu@debian:/home$[/email]
[email=stu@debian:/home$]stu@debian:/home$[/email]
# don't put duplicate lines in the history. See bash(1) for more options
[email=stu@debian:/home$]stu@debian:/home$[/email]
#export HISTCONTROL=ignoredups
[email=stu@debian:/home$]stu@debian:/home$[/email]
[email=stu@debian:/home$]stu@debian:/home$[/email]
# check the window size after each command and, if necessary,
[email=stu@debian:/home$]stu@debian:/home$[/email]
# update the values of LINES and COLUMNS.
[email=stu@debian:/home$]stu@debian:/home$[/email]
shopt -s checkwinsize
[email=stu@debian:/home$]stu@debian:/home$[/email]
[email=stu@debian:/home$]stu@debian:/home$[/email]
# enable color support of ls and also add handy aliases
[email=stu@debian:/home$]stu@debian:/home$[/email]
if [ "$TERM" != "dumb" ]; then
> eval "`dircolors -b`"
> alias ls='ls --color=auto'
> #alias dir='ls --color=auto --format=vertical'
> #alias vdir='ls --color=auto --format=long'
> fi
[email=stu@debian:/home$]stu@debian:/home$[/email]
[email=stu@debian:/home$]stu@debian:/home$[/email]
# some more ls aliases
[email=stu@debian:/home$]stu@debian:/home$[/email]
#alias ll='ls -l'
[email=stu@debian:/home$]stu@debian:/home$[/email]
#alias la='ls -A'
[email=stu@debian:/home$]stu@debian:/home$[/email]
#alias l='ls -CF'
[email=stu@debian:/home$]stu@debian:/home$[/email]
[email=stu@debian:/home$]stu@debian:/home$[/email]
# set variable identifying the chroot you work in (used in the prompt below)
[email=stu@debian:/home$]stu@debian:/home$[/email]
if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then
> debian_chroot=$(cat /etc/debian_chroot)
> fi
[email=stu@debian:/home$]stu@debian:/home$[/email]
[email=stu@debian:/home$]stu@debian:/home$[/email]
# set a fancy prompt (non-color, unless we know we "want" color)
[email=stu@debian:/home$]stu@debian:/home$[/email]
case "$TERM" in
> xterm-color)
> PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
> ;;
> *)
> PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
> ;;
> esac
[email=stu@debian:/home$]stu@debian:/home$[/email]
[email=stu@debian:/home$]stu@debian:/home$[/email]
# Comment in the above and uncomment this below for a color prompt
[email=stu@debian:/home$]stu@debian:/home$[/email]
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
[email=stu@debian:/home$]stu@debian:/home$[/email]
[email=stu@debian:/home$]stu@debian:/home$[/email]
# If this is an xterm set the title to
[email=user@host:dir]user@host:dir[/email]
[email=stu@debian:/home$]stu@debian:/home$[/email]
case "$TERM" in
> xterm*|rxvt*)
> PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
> ;;
> *)
> ;;
> esac
[email=stu@debian:/home$]stu@debian:/home$[/email]
[email=stu@debian:/home$]stu@debian:/home$[/email]
# enable programmable completion features (you don't need to enable
[email=stu@debian:/home$]stu@debian:/home$[/email]
# this, if it's already enabled in /etc/bash.bashrc and /etc/profiles
[email=stu@debian:/home$]stu@debian:/home$[/email]
# sources /etc/bash.bashrc).
[email=stu@debian:/home$]stu@debian:/home$[/email]
#if [ -f /etc/bash_completion ]; then
[email=stu@debian:/home$]stu@debian:/home$[/email]
# . /etc/bash_completion
[email=stu@debian:/home$]stu@debian:/home$[/email]
#fi
[email=stu@debian:/home$]stu@debian:/home$[/email]
[email=stu@debian:/home$]stu@debian:/home$[/email]
PATH=$PATH:/usr/local/jdk1.5.0_06/bin
[email=stu@debian:/home$]stu@debian:/home$[/email]
export PATH
[email=stu@debian:/home$]stu@debian:/home$[/email]
JAVA_HOME=/usr/local/jdk1.5.0_06/
[email=stu@debian:/home$]stu@debian:/home$[/email]
export JAVA_HOME
[email=stu@debian:/home$]stu@debian:/home$[/email]
export JAVA_HOME
////////////////////////////////////////////////////////////////////////////////////////
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/15940/showart_89350.html |
|