man page Á¦ÀÛ
ÃÑ ÆäÀÌÁö ¼ö : 3224

Àüü ÇÔ¼ö/¿ë¾î»çÀü
Facebook Joinc ±×·ì   Joinc QA »çÀÌÆ®
ÇöÀçÀ§Ä¡ : article>make_manpage



joinc´Â Firefox¿Í chrome¿¡¼­ Å×½ºÆ® Çß½À´Ï´Ù. IE¿¡¼­´Â Å×À̺íÀÌ ±úÁö°Å³ª À̹ÌÁö°¡ º¸ÀÌÁö ¾ÊÀ» ¼ö ÀÖ½À´Ï´Ù. ƯÈ÷ ±¸±Û DocsÀ̹ÌÁöÀÇ °æ¿ì ¿¢¹Úó¸®µÉ ¼ö ÀÖ½À´Ï´Ù.
À¯´Ð½º¿¡¼­ ÀÛµ¿ÇÏ´Â ¸ðµç (Á¦´ë·Î ÀÛ¼ºµÈ) ÇÁ·Î±×·¥µéÀº À¯´Ð½º °íÀ¯ÀÇ µµ¿ò¸» ÆÄÀÏÀ½ man-page¸¦ °¡Áø´Ù. ÀÌ ¹®¼­´Â ¸Þ´º¾ó ÆäÀÌÁö¸¦ ÀÛ¼ºÇÏ´Â ¹æ¹ý¿¡ ´ëÇØ¼­ °£´ÜÇÏ°Ô ¼³¸íÇϰí ÀÖ´Ù.

¿ø¹® : http://www.linuxfocus.org/English/November2003/article309.shtml

Contents

1 ¼Ò°³
2 Man Page Ȱ¿ë °ú ÀÛ¼º
2.1 ¼½¼Ç
2.2 man page ÂüÁ¶ °æ·Î
2.3 man page ¸¸µé±â
2.3.1 ¼½¼Ç
2.3.2 ¸Ç ÆäÀÌÁö ¿¹Á¦
2.4 Joinc Man Page º¸±â

1 ¼Ò°³

¹®¼­È­ÀÇ Á߿伺À» °­Á¶ÇÏ´Â °ÍÀº ¸Å¿ì »õ»ï½º·± ÀÏÀÏ °ÍÀÌ´Ù. ±ÍÂú¾Æ¼­ ȤÀº ½Ã°£ÀÌ ¾ø¾î¼­ ¹®¼­È­¸¦ ÇÏÁö ¾Ê±â´Â ÇÏÁö¸¸ ´©±¸µµ ¹®¼­È­ÀÇ Á߿伺À» ºÎÀÎÇÏÁö´Â ¾Ê´Â´Ù. ƯÈ÷ »ó¿ëÀÌµç °ø°³¿ëÀÌµç ¹èÆ÷µÇ´Â ÇÁ·Î±×·¥À̶ó¸é, ±×¸®°í ¼ºÀÇÀÖ°Ô ¸¸µç ÇÁ·Î±×·¥À̶ó¸é ¹Ýµå½Ã ¸Þ´º¾ó ÆäÀÌÁö¸¦ Á¦°øÇϰí ÀÖ´Ù. ¾î¶² ÇÁ·Î±×·¥ÀÇ °æ¿ì ÇÁ·Î±×·¥ ¼Ò½ºÄڵ庸´Ù ¸Þ´º¾ó ÆäÀÌÁöÀÇ ¾çÀÌ ´õ ¸¹Àº °æ¿ìµµ Á¾Á¾ º¼ ¼ö ÀÖ´Ù.

À¯´Ð½º¿¡¼­´Â ÀÌ·¯ÇÑ ¸Þ´º¾ó ÆäÀÌÁö¸¦ À§ÇÑ Ç¥ÁØÀûÀÎ ¹æ¹ýÀ» Á¦°øÇÑ´Ù. man page ½Ã½ºÅÛÀε¥, Ç¥ÁØÀûÀÎ ¸Þ´º¾ó ÆäÀÌÁö ȯ°æÀ» Á¦°øÇØ ÁֹǷνá, »ç¿ëÀÚ´Â ÀüÇô´Ù¸¥ ÇÁ·Î±×·¥ÀÌ Á¦°øµÇ´õ¶óµµ °£´ÜÇÏ°Ô ¸Þ´º¾ó ÆäÀÌÁö¸¦ Âü°íÇÒ ¼ö ÀÖ´Ù. ÇÁ·Î±×·¥¸¶´Ù ÀüÇô ´Ù¸¥ ¸Þ´º¾ó ÆäÀÌÁö°¡ Á¦°øµÈ´Ù¸é »ó´çÈ÷ ²ûÂïÇÑ ÀÏÀÌ µÉ °ÍÀÌ´Ù.

À¯´Ð½ºÀÇ man page ½Ã½ºÅÛÀº ´ÙÀ½°ú °°Àº ÀåÁ¡À» Á¦°øÇÑ´Ù.

  1. ¸®´ª½º Å͹̳ο¡¼­ °ð¹Ù·Î ½ÇÇàµÈ´Ù. ÀÌ´Â ¾î¶°ÇÑ È¯°æ¿¡¼­µµ - ¿¹¸¦ µé¾î X°¡ ¶°ÀÖÁö ¾Ê´Â - ¸Þ´º¾ó ÆäÀÌÁö¸¦ Âü°íÇÒ ¼ö ÀÖÀ½À» ÀǹÌÇÑ´Ù.
  2. man page´Â ¸Å¿ì ü°èÀûÀ¸·Î ÀÛ¼ºµÇ±â ¶§¹®¿¡ HTML(12), PDF(12), Postscript(12), ÀÏ¹Ý ÅØ½ºÆ® µîÀ¸·Î ½±°Ô º¯°æµÉ ¼ö ÀÖ´Ù.
  3. man page´Â ±âº»ÀûÀ¸·Î Å͹̳ο¡¼­ º¼ ¼ö ÀÖµµ·Ï ¸¸µé¾î Á³Áö¸¸, konqueror°ú °°Àº ¿ÜºÎÇÁ·Î±×·¥¿¡¼­µµ ½±°Ô ºÒ·¯ ¿Ã ¼ö ÀÖ´Ù.

2 Man Page Ȱ¿ë °ú ÀÛ¼º

2.1 ¼½¼Ç

ÀÏ´ÜÀº man pageÀÇ ±âº»ÀûÀÎ ±¸¼ºÀ» ¾Ë¾Æº¸°í man pageÀÛ¼ºÀ¸·Î ³Ñ¾î°¡µµ·Ï ÇϰڴÙ. ¸Ç ÆäÀÌÁö´Â µµ¿ò¸»À» °¡Áø ÇÁ·Î±×·¥ÀÇ Æ¯¼º¿¡ µû¶ó ¼½¼ÇÀ¸·Î ±¸ºÐµÈ´Ù. À̰ÍÀº Ã¥ÀÌ ³»¿ë¿¡ µû¶ó¼­ "Àå"À¸·Î ºÐ·ùµÇ´Â °Í°ú ¸¶Âù°¡Áö´Ù. À¯´Ð½º ½Ã½ºÅÛ¿¡´Â ¿©·¯°¡Áö Á¾·ùÀÇ ÇÁ·Î±×·¥µé°ú ÇÔ¼öµéÀÌ ÀÖÀ¸¹Ç·Î - man page´Â ÇÁ·Î±×·¥ µµ¿ò¸» »Ó¸¸ ¾Æ´Ï¶ó ÇÔ¼ö µµ¿ò¸»µµ Á¦°øÇÑ´Ù - À̵éÀ» Ư¼ºº°·Î ±¸ºÐÇØ¼­ ½±°Ô °ü¸®ÇÒ Çʿ䰡 ÀÖ´Ù.

°¢ ¼½¼ÇÀº ¹øÈ£¸¦ ÅëÇØ¼­ ±¸ºÐµÈ´Ù. ¿¹¸¦ µé¾î 1¹øÀº ÀÏ¹Ý ÇÁ·Î±×·¥, 2´Â ½Ã½ºÅÛ È£Ãâ ÇÔ¼öµé, 3¹øÀº ÀÏ¹Ý ¶óÀ̺귯¸® ÇÔ¼öµé ½ÄÀÌ´Ù. ÀÌ·¸°Ô ¼½¼ÇÀ¸·Î °ü¸®¸¦ ÇÏ°Ô µÇ¸é µµ¿ò¸»À» ½±°Ô °ü¸®ÇÒ ¼ö ÀÖÀ» »Ó¸¸ ¾Æ´Ï¶ó. µµ¿ò¸»ÀÇ Áߺ¹¿¡¼­ ¿À´Â È¥µ¿µµ ÇÇÇÒ ¼ö ÀÖ´Ù. printf¸¦ ¿¹·Î µé¾îº¸ÀÚ. printf´Â C¿¡¼­ Çü½ÄÈ­µÈ Ç¥ÁØÃâ·ÂÀ» À§ÇÑ ÇÔ¼öÀÇ ¿ëµµ·Îµµ »ç¿ëµÇÁö¸¸ ½©¿¡¼­ Å͹̳ο¡ ¹®ÀÚ¿­À» Ãâ·ÂÇϱâ À§ÇÑ ÇÁ·Î±×·¥ÀÇ À̸§À̱⵵ ÇÏ´Ù. ¿ì¸®´Â ´ÙÀ½°ú °°ÀÌ ¼½¼ÇÀ» »ç¿ëÇÔÀ¸·Î½á Áߺ¹µÈ À̸§ÀÇ »ç¿ë¿¡¼­ ¿À´Â È¥µ¿À» ÇÇÇÒ ¼ö ÀÖ´Ù.
printf(1) 
printf(3) 
 
°¡·Î¾È¿¡ ¼½¼Ç¹øÈ£¸¦ ³Ö¾î¼­ Ç¥±âÇÑ´Ù. ¿ì¸®´Â À§ÀÇ printf´Â ÇÁ·Î±×·¥ÀÌ°í ¹ØÀÇ printf´Â ÇÔ¼ö¶ó´Â°É ½±°Ô ¾Ë ¼ö ÀÖ´Ù. ½ÇÁ¦ ¸Ç ÆäÀÌÁö¸¦ Âü°íÇÒ ¶§µµ ¾Æ·¡¿Í °°Àº ¹æ¹ýÀ¸·Î ¼½¼Ç¹øÈ£¸¦ ÁöÁ¤Çؼ­ ¿øÇÏ´Â ¸Ç ÆäÀÌÁö¸¦ Á¤È®È÷ Âü°íÇÒ ¼ö ÀÖ´Ù.
# man 1 printf 
# man 3 printf 
 

´ÙÀ½Àº ÇöÀç À¯´Ð½º¿¡¼­ »ç¿ëÇϰí ÀÖ´Â ¼½¼ÇÀÇ ¹øÈ£¿Í ±×¿¡ ´ëÇÑ ¼³¸íÀÌ´Ù.
1. À¯Àú ¸í·É  
2. ½Ã½ºÅÛ ÄÝ(ÇÔ¼ö) 
3. ¶óÀ̺귯¸® ÇÔ¼öµé 
4. /devµð·ºÅ丮¿¡ ÀÖ´Â ÀåÄ¡¿Í °°Àº Ư¼ö ÆÄÀ쵎  
5. ÆÄÀÏ Æ÷¸Ë¿¡ ´ëÇÑ ¼³¸í (¿¹ : /etc/passwd)  
6. °ÔÀÓ  
7. ¸ÅÅ©·Î ÆÐŰÁö 
8. ·çÆ®°¡ ½ÇÇàÇÒ ¼ö ÀÖ´Â °¢Á¾ ½Ã½ºÅÛ °ü¸®µµ±¸µé 
9. ±âŸµîµî  
n. ±×¸®°í Çʿ信 µû¶ó¼­ ¼½¼ÇÀ» ¸¸µé¾î¼­ »ç¿ëÇÒ ¼ö ÀÖ´Ù.  
l. Ưº°ÇÑ ½Ã½ºÅÛ¿¡¼­¸¸ »ç¿ëµÇ´Â Áö¿ª ¹®¼­µé 
 

konqueror¿Í °°Àº ºê¶ó¿ìÀú´Â ÀÚüÀûÀ¸·Î man pageµµ ºê¶ó¿ì¡ ÇÒ ¼ö Àִµ¥, printf¿¡ ´ëÇÑ µµ¿ò¸»À» ¿äûÇÒ °æ¿ì ´ÙÀ½°ú °°ÀÌ ¼½¼Ç¹øÈ£¿¡ µû¶ó¼­ Âü°í °¡´ÉÇÑ µµ¿ò¸»À» Ãâ·ÂÇØ¼­ »ç¿ëÀÚ°¡ ¼±ÅÃÇÒ ¼ö ÀÖµµ·Ï µµ¿ÍÁØ´Ù.


2.2 man page ÂüÁ¶ °æ·Î

man ¸í·ÉÀ» ÀÌ¿ëÇØ¼­ µµ¿ò¸» ã±â¸¦ ½ÃµµÇϸé, ȯ°æº¯¼ö MANPATH¿¡ ÁöÁ¤µÈ °æ·Î¿¡¼­ ¸Ç ÆäÀÌÁö¸¦ °Ë»öÇÑ´Ù. ¸¸¾à ȯ°æº¯¼ö°¡ ÁöÁ¤µÇ¾î ÀÖÁö ¾Ê´Ù¸é ±âº» °æ·Î¿¡¼­ ã°Ô µÈ´Ù. ±âº» ¸ÇÆäÀÌÁö ã±â °æ·Î´Â /usr/local/man°ú /usr/local/share/manÀÌ´Ù. ±×·¯³ª À̰͸¸À¸·Î´Â ÃæºÐÇÏÁö ¾ÊÀ» °æ¿ì°¡ »ý±ä´Ù. ¿¹¸¦µé¾î Perl(12)ÀÇ µµ¿ò¸»Àº /usr/lib/perl5/man¿¡ À§Ä¡Çϴµ¥, ¹èÆ÷ÆÇ¿¡ µû¶ó¼­ ¸ÇÆäÀÌÁö °æ·Î ¹®Á¦·Î µµ¿ò¸»À» ÂüÁ¶ÇÏÁö ¸øÇÏ´Â °æ¿ì°¡ ¹ß»ýÇÒ ¼öµµ ÀÖ´Ù. °æ·Î¸¦ Ãß°¡ÇÏ°í ½Í´Ù¸é .bashrcµîÀÇ ÆÄÀÏ¿¡ ´ÙÀ½°ú °°Àº ³»¿ëÀ» Ãß°¡ÇÏ¸é µÈ´Ù.
MANPATH="/usr/local/man:/usr/man:/usr/share/man:/usr/X11R6/man:/usr/lib/perl5/man 
 
ÀÌÁ¦ "man Pod::Man"°ú°°Àº ¹æ¹ýÀ¸·Î PerlÀÇ µµ¿ò¸»À» ÂüÁ¶ÇÒ ¼ö ÀÖ°Ô µÈ´Ù.

2.3 man page ¸¸µé±â

¸ÇÆäÀÌÁöÀÇ ÀÛ¼ºÀº ¸Å¿ì °£´ÜÇÏ´Ù. °£´ÜÇÑ ¸¶Å©¾÷ ¾ð¾îÀÇ ÇüŸ¦ °¡Áö¸ç ´ÜÁö ¸î°³ÀÇ Å°¿öµå¸¸ ¾Ë°í ÀÖÀ¸¸é µÈ´Ù. ÀÌ·¯ÇÑ Å°¿öµå´Â ¸ÅÅ©·Î¶ó´Â À̸§À¸·Î ºÎ¸£´Âµ¥, ´ÙÀ½°ú °°Àº Áß¿äÇÑ ¸î°³ÀÇ ¸ÅÅ©·Î°¡ Á¸ÀçÇÑ´Ù.
.TH  -> ¸ÇÆäÀÌÁöÀÇ Å¸ÀÌÆ² ½ÃÀÛÀ» ¾Ë·ÁÁØ´Ù. 
.SH  -> ¼½¼Ç Çìµå 
.PP  -> »õ·Î¿î ¹®´Ü 
."   --> ÁÖ¼® 
.TP  --> µé¿©¾²±â¸¦ À§Çؼ­ »ç¿ëÇÑ´Ù. 
 

.TH ´Â ´ÙÀ½°ú °°ÀÌ »ç¿ëÇÑ´Ù.
.TH [ÇÁ·Î±×·¥ À̸§] [¼¾¼Ç ¹øÈ£] [center footer] [left footer] [center header] 
 

.SH ´Â ´ÙÀ½°ú °°ÀÌ »ç¿ëÇÑ´Ù.
.SH Á¦¸ñÀ» ¾´´Ù. 
 

.PP ´Â ¹®´ÜÀÇ ±¸ºÐÀ» À§Çؼ­ »ç¿ëÇÑ´Ù. À̰ÍÀ» »ç¿ëÇÏ¸é °³ÇàÀÌ ÀÌ·ç¾îÁø´Ù.

2.3.1 ¼½¼Ç

¸Ç ÆäÀÌÁö´Â ¼½¼Ç(.SH) ´ÜÀ§·Î ÆäÀÌÁö¸¦ ÀÛ¼ºÇÏ°Ô µÈ´Ù(´Ù¸¥ ¹®¼­µéµµ ´ëºÎºÐ ±×·¯ÇϰÚÁö¸¸). ¸Ç ÆÐÀÌÁö´Â Ç¥ÁØÀûÀÎ ±¸Á¶¸¦ À¯ÁöÇϱâ À§Çؼ­ °¢ ¼½¼Ç¸¶´Ù »ç¿ëµÇ´Â ¸ÅÅ©·Î°¡ °íÁ¤µÇ¾î ÀÖ´Ù. ´ÙÀ½Àº ¸Ç ÆäÀÌÁö ÀÛ¼º¿¡ ÇÊ¿äÇÑ ¸ÅÅ©·ÎµéÀÌ´Ù.
NAME            ¸í·ÉÀ̳ª ÇÔ¼öÀÇ Á¦¸ñÀ» À§ÇÑ ¼½¼Ç  
SYNOPSIS        »ç¿ë¹æ¹ý 
DESCRIPTION     ÀÏ¹Ý ¼³¸í 
OPTIONS         ¿É¼Ç°ú ÀÎÀÚµé  
RETRUN VALUES   ¸®Åϰª  
ENVIRONMENT     ȯ°æº¯¼ö¿¡ ´ëÇÑ ¼³¸í 
FILES           ÁÖÁ¦¿Í °ü·ÃµÈ °¢Á¾ ÆÄÀϵé 
EXAMPLES        ¿¹Á¦°¡ ÀÖÀ»°æ¿ì »ç¿ë 
DIAGNOSTICS     º¸Åë ÀåÄ¡ÀÇ Æ¯Â¡À» ¼³¸íÇϱâ À§Çؼ­ »ç¿ëÇÑ´Ù.  
ERRORS          2¹ø°ú 3¹ø¼½¼Ç°ú ½Ã±×³Î Çڵ鸵°ú °ü·Ã 
SEE ALSO        Âü°í 
STANDARDS       Ç¥Áذú °ü·ÃµÈ ³»¿ëµé 
BUGS            ¾Ë·ÁÁø ¹ö±×µé 
SECURITY CONSIDERATIONS   ÁÖÀÇÇØ¾ßÇÒ º¸¾È°ü·Ã ¹®Á¦µé 
other           »ç¿ëÀÚ Á¤ÀÇ Çì´õ·Î ÀúÀÚÁ¤º¸µîÀ» Ãß°¡ÇÒ ¼ö ÀÖ´Ù. 
 

2.3.2 ¸Ç ÆäÀÌÁö ¿¹Á¦

ÀÌÁ¦ °£´ÜÇÑ ¸ÇÆäÀÌÁö¸¦ Çϳª ¸¸µé¾î º¸µµ·Ï ÇÏÀÚ. -ÀÇ °æ¿ì hypen°úÀÇ ±¸ºÐÀ» À§Çؼ­ \-·Î »ç¿ëÇØ¾ß ÇÑ´Ù. Àû´çÇÑ ¿¡µðÅÍ·Î ÆíÁýÇÑ´ÙÀ½ cdspeed.1À¸·¯ ÀúÀåÇÏÀÚ.
.TH cdspeed 1  "September 10, 2003" "version 0.3" "À¯Àú ¸í·É" 
.SH NAME 
cdspeed \- decrease the speed of you cdrom to get faster access time 
.SH SYNOPSIS 
.B cdspeed 
[\-h] [\-d device] \-s speed 
.SH DESCRIPTION 
Modern cdrom drives are too fast. It can take several seconds 
on a 60x speed cdrom drive to spin it up and read data from 
the drive.  The result is that these drives are just a lot slower 
than a 8x or 24x drive.  This is especially true if you are only 
occasionally (e.g every 5 seconds) reading a small file. This 
utility limits the speed and makes the drive more responsive 
when accessing small files. 
.PP 
cdspeed makes the drive also less noisy and is very useful if 
you want to listen to music on your computer. 
.SH OPTIONS 
.TP 
\-h 
display a short help text 
.TP 
\-d 
use the given device instead of /dev/cdrom 
.TP 
\-s 
set the speed. The argument is a integer. Zero means restore maximum 
speed. 
.SH EXAMPLES 
.TP 
Set the maximum speed to 8 speed cdrom: 
.B cdspeed 
\-s 8 
.PP 
.TP 
Restore maximum speed: 
.B cdspeed 
\-s 0 
.PP 
.SH EXIT STATUS 
cdspeed returns a zero exist status if it succeeds to change to set the 
maximum speed of the cdrom drive. Non zero is returned in case of failure. 
.SH AUTHOR 
Guido Socher (guido (at) linuxfocus.org) 
.SH SEE ALSO 
eject(1).TH cdspeed 1  "September 10, 2003" "version 0.3" "USER COMMANDS" 
.SH NAME 
cdspeed \- decrease the speed of you cdrom to get faster access time 
.SH SYNOPSIS 
.B cdspeed 
[\-h] [\-d device] \-s speed 
.SH DESCRIPTION 
Modern cdrom drives are too fast. It can take several seconds 
on a 60x speed cdrom drive to spin it up and read data from 
the drive.  The result is that these drives are just a lot slower 
than a 8x or 24x drive.  This is especially true if you are only 
occasionally (e.g every 5 seconds) reading a small file. This 
utility limits the speed and makes the drive more responsive 
when accessing small files. 
.PP 
cdspeed makes the drive also less noisy and is very useful if 
you want to listen to music on your computer. 
.SH OPTIONS 
.TP 
\-h 
display a short help text 
.TP 
\-d 
use the given device instead of /dev/cdrom 
.TP 
\-s 
set the speed. The argument is a integer. Zero means restore maximum 
speed. 
.SH EXAMPLES 
.TP 
Set the maximum speed to 8 speed cdrom: 
.B cdspeed 
\-s 8 
.PP 
.TP 
Restore maximum speed: 
.B cdspeed 
\-s 0 
.PP 
.SH EXIT STATUS 
cdspeed returns a zero exist status if it succeeds to change to set the 
maximum speed of the cdrom drive. Non zero is returned in case of failure. 
.SH AUTHOR 
Guido Socher (guido (at) linuxfocus.org) 
.SH SEE ALSO 
eject(1) 
 

¸ÇÆäÀÌÁö´Â man2htmlÀ» ÀÌ¿ëÇØ¼­ htmlÆ÷¸ËÀ¸·Î ½±°Ô º¯È¯½Ãų ¼ö ÀÖ´Ù.
cdpeed.html
# man2html cdspeed.1 > cdspeed.html 
 

2.4 Joinc Man Page º¸±â

  1. Joinc Man Page System
EmailÀ» ±âÀÔÇϸé, ´ñ±ÛÀÌ ¸ÞÀÏ·Î Àü´ÞµË´Ï´Ù.