사용법
alias [단축명령어]='[리눅스 명령어]'
sudo apt-get install 명령어를 단축명령어 sins으로만 등록한다면...
alias sins='sudo apt-get install'
1. 전체사용자 명령어 등록
sudo gedit /etc/profile.d/alias.sh
alias sins='sudo apt-get install'위와 같이 입력후 저장하면 등록 된다.
2. 개인 계정에 명령어 등록
# some more ls aliases --> 항목을 찾아 그 밑에 단축명령어를 입력하면 된다.
alias sins='sudo apt-get install'
위와 같이 입력후 저장하면 등록 된다.
터미널에서 alias를 입력하면 등록된 단축명령어를 간단히 볼수있다.
$ alias
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias ls='ls --color=auto'
alias sdel='sudo apt-get autoremove'
alias sins='sudo apt-get install'
출처 : UbuntuK.com
제가 개인 블로그 시작하면서 우분투 설치 이미지를 퍼갔는데
답글삭제문제되면 삭제 하께요`