°Ô½Ã¹° 260°Ç
   
[redhat6] ÇÁ·ÒÇÁÆ® Ç® °æ·Î
±Û¾´ÀÌ : theko ³¯Â¥ : 2016-03-23 (¼ö) 09:46 Á¶È¸ : 2216
# 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

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com