# vi /etc/bashrc
# [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "
[ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h\$PWD]\\$ " //¼öÁ¤Çѳ»¿ë
¶Ç´Â (ÀçºÎÆà ¾øÀÌ ¹Ù·Î ½ÇÇà ´Ü, ÀçºÎÆÃÇÏ¸é ¿ø»óº¹±¸)
[root@test01 ~]#SAVE=$PS1
[root@test01 ~]#PS1="[\u@\h \w]# "
[root@test01 ~]#cd /home/
[root@test01 ~]#pwd
####### ¼³¸í ##########
\a ASCII Á¾¼Ò¸®¹®ÀÚ (07)
\d "¿äÀÏ ´Þ ³¯Â¥" Çü½ÄÀÇ ³¯Â¥Ç¥½Ã (¿¹ "Tue May 26")
\e ASCIIÀÇ escape ¹®ÀÚ
\h ù ¹ø° "." ±îÁöÀÇ hostname
\H hostname
\n »õ·Î¿î Áٹٲٱâ
\r carrage return
\s ½©ÀÇ À̸§, $0ÀÇ basename
\t 24-½Ã°£À¸·Î ÇöÀç ½Ã°¢ HH:MM:SS Çü½Ä
\T 12-½Ã°£À¸·Î ÇöÀç ½Ã°¢ HH:MM:SS Çü½Ä
\@ 12-t½Ã°£À¸·Î ÇöÀç ½Ã°¢ , ¿ÀÀü / ¿ÀÈÄ Çü½Ä
\u ÇöÀç»ç¿ëÀÚÀÇ username
\v bash ¹öÀü
\V base ÀÇ ¹èÆ÷, ¹öÀü+ÆÐÄ¡ ¼öÁØ
\w ÇöÀç ÀÛ¾÷ µð·ºÅ͸®
\W ÇöÀç ÀÛ¾÷ µð·ºÅ͸®ÀÇ basename
\! ÇöÀç ¸í·É¾îÀÇ history ¹øÈ£
\# ÇöÀç ¸í·É¾îÀÇ command ¹øÈ£
\$ À¯È¿ÇÑ UID °¡ 0À̸é # À» , ±×·¸Áö ¾ÊÀ¸¸é $À» Ç¥½Ã
\nnn 8Áø¼ö nnn ¿¡ ÇØ´çÇÏ´Â ¹®ÀÚ
\\ bachslash
\[ Å͹̳ÎÁ¶Á¤ sequence ¸¦ ÇÁ·ÒÇÁÆ®¿¡ ³¢¿ö³Ö±â À§ÇØ »ç¿ëµÉ¼ö ÀÖ´Â non-printing ¹®ÀÚÀÇ ½ÃÀÛ
\] non-printing ¹®ÀÚÀÇ ³¡
Âü°í¸µÅ© : http://blog.naver.com/ooobba/70184331987
[Ãâó] [¸®´ª½º] ÇÁ·ÒÇÁÆ® Àý´ë°æ·Î Ç¥½Ã|ÀÛ¼ºÀÚ Felix