½©½ºÅ©¸³Æ®¸¦ Á¦ÀÛÇϴµ¥ ÀÖ¾î¼ À§¿¡¼¿Í °°ÀÌ ÆÄÀÏ·Î ÀúÀåÇÑ´ÙÀ½¿¡
À̸¦ ½ÇÇà±ÇÇÑÀ» ÁÖ¾î¼ ½ÇÇàÇÏ´Â ¹æ¹ýµµ ÀÖÁö¸¸,
°£´ÜÇÏ°Ô ÀÛ¾÷À» ¼öÇàÇØ¾ß ÇÒ°æ¿ì ÆÄÀÏÀ» ¸¸µéÁö ¾Ê°í, ½©»ó¿¡¼ Á÷Á¢
½ÇÇà½ÃŰ´Â ¹æ¹ýµµ ÀÖ´Ù.
[root@localhost /root]# test="hello world"
[root@localhost /root]# echo $test
hello world
|
¾Æ·¡´Â Á»´õ º¹ÀâÇÑ ¿¹Á¦ÀÌ´Ù.
[root@localhost /root]# if [ "$SHELL" = "/bin/bash" ]
> then
> echo "your login shell is the bash (bourne again shell)"
> else
> echo "your login shell is not bash but $SHELL"
> fi
your login shell is the bash (bourne again shell)
|