分類文章
|
 |
| Novell SUSE Linux 專區 (19) |
|
  |
| Virtual PC / Virtual Server (0) |
|
|
 文章匯整
 近期迴響
 近期引用
 連結網站
 參觀者統計
(Since 2006/03/25)
|
|
|
September
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
|
|
 |
|
|
|
|
|
|
|
指令說明
指令說明:移除指令別名。
原文說明:Remove each name from the list of defined aliases.
指令語法: unalias [-a] [name...]
常用參數:
指令範例:unalias 別名 (移除單一指令別名)
[root@Linux ~]# alias (檢視目前指令別名清單)
alias cp='cp -i'
alias l.='ls -d .* --color=tty'
alias ll='ls -l --color=tty' (指令別名清單中有這一行)
alias ls='ls --color=tty'
alias mv='mv -i'
alias rm='rm -i'
alias vi='vim'
[root@Linux ~]# ll
總計 15412
-rw-r--r-- 1 root root 1229 12月 15 06:00 anaconda-ks.cfg
drwxr-xr-x 2 root root 4096 12月 16 13:33 Desktop
-rw-r--r-- 1 root root 54474 12月 15 06:00 install.log
-rw-r--r-- 1 root root 4938 12月 15 06:00 install.log.syslog
當下 ll 指令時, 系統會幫我們下 ls -l --color=tty 指令\r
[root@Linux ~]# unalias ll
[root@Linux ~]# alias
alias cp='cp -i'
alias l.='ls -d .* --color=tty'
alias ls='ls --color=tty'
alias mv='mv -i'
alias rm='rm -i'
alias vi='vim'
清單中已無 alias ll='ls -l --color=tty' 這行
[root@Linux ~]# ll
bash: ll: command not found
接下來您在目前的shell環境中, 就無法使用 ll 指令了.
指令範例:unalias -a
[root@Linux ~]# alias
alias cp='cp -i'
alias l.='ls -d .* --color=tty'
alias ls='ls --color=tty'
alias mv='mv -i'
alias rm='rm -i'
alias vi='vim'
[root@Linux ~]# unalias -a
[root@Linux ~]# alias
[root@Linux ~]#
在目前的shell環境中的所有指令別名清單, 已經被清除了!
其它參數:
相關指令及文章:
指令: alias
文章: Shell Basics 之指令別名(alias)
最後更新時間: 2005/12/16
|
|
|
若您對本文有任何意見或建議,請多利用迴響功能,謝謝! |
|
|
|
|
|