본문으로 바로가기

alias 추가 방법

category SERVER/LINUX 2019. 12. 18. 15:26
1. 계정로그인
2. vi ~/.bashrc
3. 아래와 같이 추가
# User specific aliases and functions
alias ll='ls -l'
alias ts='/home/apache-tomcat-9.0.26/bin/tomcat_start.sh'
alias th='/home/apache-tomcat-9.0.26/bin/tomcat_shutdown.sh'
alias tl='tail -f /home/apache-tomcat-9.0.26/logs/catalina.out'
4. shift + : 클릭
5. wq 입력
6. 엔터

다시 로그인 후 해당 명령어 실행 확인

'SERVER > LINUX' 카테고리의 다른 글

date UTC, KST로 변경  (0) 2021.02.09
id_rsa 비밀번호 없이 서버 접속  (0) 2021.02.08
프로세스 별 메모리 사용량 확인 및 추적  (0) 2019.11.15
서버 사양 확인 명령어  (0) 2019.10.27
find명령어 및 xargs grep 설명  (0) 2019.10.27