½©ÇÁ·ÒÇÁÆ® Ç¥½Ã ¹Ù²Ù±â
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2003-08-14 11:50:04
 

env·Î PS1À» È®ÀÎÇÑ´Ù..

±×¸®°í ³ª¼­, ¹Ù²Ù°íÀÚ ÇÏ´Â Çü½ÄÀ¸·Î ¹Ù²ãÁØ´Ù..

PS1=[`logname`:`pwd`]#

export PS1="`uname -s`"%" `logname`"%" "

uname -s´Â ±× ÀåºñÀÇ ±âÁ¾
uname -nÀº ¼­¹öÀÇ À̸§
lognameÀº ·Î±×ÀÎÀ̸§ÀÌÁÒ ±×·¯´Ï±î ¾ÆÀ̵ð°ÚÁÒ.

uname ÆľÇÇÏ·Á¸é ÀåºñÀÇ ±âÁ¾À» ¾Ë¾Æ¾ß Á¤È®È÷ ´äº¯ÇØ
µå¸±¼ö Àְڳ׿ä.
-s ±âÁ¾ -nÀº ±× Àåºñ È£½ºÆ® ¸íÀÔ´Ï´Ù.

export PS1="`whoami`@`hostname`:\$PWD # "

/etc/profile¿¡ ¾Æ·¡¿Í °°ÀÌ Ãß°¡½ÃÄÑ ÁÖ¸é µÈ´Ù.
export PS1="[`whoami`@webserver:\$PWD]"


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦