ps 썸네일형 리스트형 ps kill 명령어 ps kill 명령어httpd 프로세스를 찾아 강제 종료ps ax | grep -v grep | grep httpd | awk '{print $1}' | sort -u | xargs kill -9pkill 명령어pkill -9 -f httpd 더보기 Bash 색상 출력 (Bash Colors) Bash 색상 출력 (Bash Colors)Bash 스크립트에서는 컬러 출력(Color Output)을 사용하여 로그, 메시지, 경고 등을 보다 쉽게 구분할 수 있습니다. 컬러 출력은 주로 두 가지 방법 사용tput 명령어 사용ANSI Escape Code 사용1. tput 명령어를 이용한 색상 출력tput 명령어는 터미널의 색상 설정을 제어할 수 있는 도구입니다. 스크립트 작성vim z.sh#!/bin/bashcolor_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}"스크.. 더보기 [url] Easy Bash PS1 Generator Easy Bash PS1 Generator http://ezprompt.net export PS1="\[\e[31m\]\u\[\e[m\]\[\e[37m\]@\[\e[m\]\[\e[33m\]\h\[\e[m\]:\[\033[01;36m\]\W\[\e[m\]$ " 더보기 이전 1 다음