prompt 썸네일형 리스트형 [shell] bash colors bash colors 스크립트 편집 vim z.sh $ vim z.sh #!/bin/bash color_reset=$(tput sgr0) color_red=$(tput setaf 1) color_blue=$(tput setaf 4) echo "${color_red}sangchul.kr${color_reset}" echo "${color_blue}sangchul.kr${color_reset}" 스크립트 실행 결과 sh z.sh tput 명령어 사용 echo "블로거 `tput setaf 1`sangchul.kr`tput sgr0`." bash 프로파일에 등록하여 컬러 사용하기 vim .bashrc $ vim .bashrc RED="\033[0;31m" PINK="\033[1;31m" YELLOW="\033.. 더보기 리눅스에서 FTP 접속 후 파일을 가져오는 쉘 스크립트 리눅스에서 FTP 접속 후 파일을 가져오는 쉘 스크립트 getfile.sh 스크립트 생성 vim getfile.sh #!/bin/bash HOST='ftp.example.com' USER='username' PASSWD='password' FILE='filename.txt' ftp -n $HOST 더보기 이전 1 다음