免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 605 | 回复: 0
打印 上一主题 下一主题

linux实验 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-22 18:57 |只看该作者 |倒序浏览
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP