½Ã½ºÅÛ Àüü¿¡¼ ¾²ÀÌ´Â xinitrc ÆÄÀÏÀº X ¼¹ö¸¦ ¶ç¿ì´Âµ¥ ¾²ÀÏ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ÆÄÀÏ¿¡´Â ¾ÆÁÖ ¸¹Àº if/then Å×½ºÆ®°¡ ³ª¿À´Âµ¥ ´ÙÀ½Àº ±× Áß ÀϺκÐÀÔ´Ï´Ù.
if [ -f $HOME/.Xclients ]; then exec $HOME/.Xclients elif [ -f /etc/X11/xinit/Xclients ]; then exec /etc/X11/xinit/Xclients else # ¾Æ¸¶ ÀÌ ºÎºÐÀº Àý´ë ½ÇÇàµÇÁö ¾Ê°ÚÁö¸¸ Ȥ½Ã ¸ð¸£´Ï±î. # (Xclients ¿¡µµ ¿ª½Ã ¾ÈÀü ÀåÄ¡°¡ °É·Á ÀÖ½À´Ï´Ù) ÀüÇô ÇØ°¡ ¾ø½À´Ï´Ù. xclock -geometry 100x100-5+5 & xterm -geometry 80x50-50+150 & if [ -f /usr/bin/netscape -a -f /usr/share/doc/HTML/index.html ]; then netscape /usr/share/doc/HTML/index.html & fi fi |
À§ Äڵ忡 ³ª¿À´Â "Å×½ºÆ®"¸¦ ¼³¸íÇØ º¸¼¼¿ä. ±× ´ÙÀ½¿¡´Â /etc/X11/xinit/xinitrc ÆÄÀÏ Àüü¸¦ »ìÆ캸°í °Å±â¿¡ ³ª¿À´Â if/then ¸¦ ºÐ¼®ÇØ º¸¼¼¿ä. µÚ¿¡¼ ¼³¸íÇÒ grep, sed, Á¤±Ô Ç¥Çö½ÄÀ» ÂüÁ¶ÇØ¾ß ÇÒÁöµµ ¸ð¸¨´Ï´Ù.