티스토리 뷰
alias 별명=”명령어정의”
-. 현재 설정된 alias보기
[root@localhost ~]#alias
alias cc='clear'
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 py='python'
alias rm='rm -i'
alias vi='vim'
alias vpc='vim ~/youngjae/popcheck/popcheck.py'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
-. 특정 alias만 보기
[root@localhost ~]#alias py
alias py='python'
-. alias 설정하기
[root@localhost ~]#alias h='history'
[root@localhost ~]#alias h
alias h='history'
※ alias명령어로 alias를 설정후 다시 로그인을 하면 설정한 alias가 사라져버림
~/.bashrc 파일에 alias를 설정해주어야 로그인할때마다 해당 명령어를 읽어들여 사용자환경을 설정해줌
-. alias 해제하기
[root@localhost ~]#alias py
alias py='python'
[root@localhost ~]#unalias py #특정 alias만 해제
[root@localhost ~]#alias py
bash: alias: py: not found
[root@localhost ~]#unalias –a #설정되어있는 모든 alias 해제
[root@localhost ~]#alias | wc -l
0
※ 이 또한 다시 로그인하면 적용되지 않는다.
참조 : 리눅스 서버관리 실무 바이블 3.0(박성수 저)
'Linux' 카테고리의 다른 글
Linux, script 명령어 (0) | 2016.04.22 |
---|---|
Linux, .bash* 파일 (0) | 2016.04.22 |
Linux, history (0) | 2016.04.22 |
Linux, last & lastlog (0) | 2016.04.22 |
Linux, hostid & hostname (0) | 2016.04.22 |
- Total
- Today
- Yesterday
- FetchType
- tkinter
- checkbutton
- activebackground
- 리눅스
- highlightthickness
- apache
- IdClass
- indicatoron
- Composite Key
- Private
- 폼
- Java
- borderwidth
- JPA
- 파이썬
- ManyToOne
- highlightbackground
- Linux
- Python
- activeforeground
- Module
- disabledforeground
- tkinter command & bind [명령어묶기와 사건묶기] Python
- onetomany
- vba
- command
- 상수
- Excel
- fetch join
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |