學習誌
首頁 FreeBSD 系統管理 第一次的接觸

下一頁 上一頁 最近更新:2008年09月26日20時03分39秒
Valid XHTML 1.1! Valid CSS!

編輯/etc/csh.cshrc

# $FreeBSD: src/etc/csh.cshrc,v 1.3 1999/08/27 23:23:40 peter Exp $
#
# System-wide .cshrc file for csh(1).

umask 022

setenv PAGER more

set nobeep
set autolist
set notify
set color
set autologout = (300)

set dspmbyte = big5

setenv LC_CTYPE zh_TW.Big5
setenv CLICOLOR
alias ls 'ls -F \!*'
alias cp 'cp -i \!*'
alias rm 'rm -i \!*'
alias mv 'mv -i \!*'
alias telnet 'telnet -8 \!*'

if ($?prompt) then
  if(! $?WINDOW ) then
    set prompt="%{^[[1;33m%}%n%{^[[m%}@%{^[[1;37m%}%m%{^[[m%} %{^[[1;32m%}[%~]%{^[[m%} > "
  else
    set prompt="%{^[[1;33m%}%n%{^[[m%}@%{^[[1;37m%}%m%{^[[m%} %{^[[1;32m%}[%~]%{^[[m%} %{^[[1;35m%}[W$WINDOW]%{^[[m%} > "
  endif

  if ($?tcsh) then
    set mail = (/var/mail/$USER)
    bindkey "^W" backward-delete-word
    bindkey -k up history-search-backward
    bindkey -k down history-search-forward
  endif
endif

刪除.cshrc

# rm .cshrc

重新登入系統。

# logout
FreeBSD/i386 (Amnesiac) (ttyv0)

login: root
Welcome to FreeBSD!

Before seeking technical support, please use the following resources:

o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
   for your release first as it's updated frequently.

o  The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
   along with the mailing lists, can be searched by going to
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.

If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.

You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.

root@ [~] >

命令提示字串已經改變了。