/usr/share/doc/HOWTO/ja-html/Path-6.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>PATH HOWTO: ¥·¥§¥ë</TITLE>
<LINK HREF="Path-7.html" REL=next>
<LINK HREF="Path-5.html" REL=previous>
<LINK HREF="Path.html#toc6" REL=contents>
</HEAD>
<BODY>
<A HREF="Path-7.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Path-5.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Path.html#toc6">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s6">6. ¥·¥§¥ë</A></H2>
<P>¥æ¡¼¥¶¡¼¥×¥í¥»¥¹¤Ï<CODE>/etc/passwd</CODE>¤Ç½ñ¤«¤ì¤Æ¤¤¤ë¥·¥§¥ë¤Î»Ò¥×¥í¥»¥¹¤Ç¤¹¡£
¥·¥§¥ë¤Î½é´ü¥Õ¥¡¥¤¥ë¤Ï¥Ñ¥¹¤ò½¤Àµ¤¹¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£
<P>¥í¥°¥¤¥ó¤Ç¤Ï¥·¥§¥ë¤Î̾Á°¤Ï<B>-</B>¤òÁ°ÃÖ¤¤·¤Þ¤¹¡£Î㤨¤Ðbash¤Ï<B>-bash</B>¤Î¤è¤¦
¤Ë¤·¤Æ¸Æ¤Ð¤ì¤Þ¤¹¡£¤³¤ì¤Ï¥·¥§¥ë(¤Ä¤Þ¤ê<B>login</B>¥·¥§¥ë)¤Ë¥·¥°¥Ê¥ë¤òÁ÷¤ê¤Þ¤¹¡£
¤³¤Î¾ì¹ç¡¢¥·¥§¥ë¤Ï<B>login</B>½é´ü²½¥Õ¥¡¥¤¥ë¤ò¼Â¹Ô¤·¤Þ¤¹¡£¤½¤¦¤Ç¤Ê¤±¤ì¤Ð
¤¢¤ë ½é´ü²½¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
<P>²Ã¤¨¤Æ¥·¥§¥ë¤Ï¤½¤ì¤¬¥¤¥ó¥¿¥é¥¯¥Æ¥£¥Ö¤«¤É¤¦¤«¥Á¥§¥Ã¥¯¤·¤Þ¤¹ - ¥Õ¥¡¥¤¥ë¤ä
¥¤¥ó¥¿¥é¥¯¥Æ¥£¥Ö¤Êtty¤«¤é¤Î¥³¥Þ¥ó¥É¤Ç¤¹¡£¤³¤ì¤Ï¥·¥§¥ë¤Î½é´ü²½¤ò½¤Àµ¤·¤Æ¡¢
¤½¤Î·ë²Ì¥¤¥ó¥¿¥é¥¯¥Æ¥£¥Ö¤Ç¤Ï¤Ê¤¤(non-interactive)non-login¥·¥§¥ë¤¬
½é´ü²½¤µ¤ì¤Þ¤¹¡£bash¤Ï¤³¤³¤Ç¤Ï¤Ê¤ó¤Î½é´ü²½¥Õ¥¡¥¤¥ë¤â¼Â¹Ô¤·¤Þ¤»¤ó¡£
<P>
<P>
<H2><A NAME="bash"></A> <A NAME="ss6.1">6.1 bash</A>
</H2>
<P>Ä̾ï¤Îlogin¥·¥§¥ë¤È¤·¤Æ¡¢bash¤Ï¥·¥¹¥Æ¥à¹ÈÏ(system-wide)¤Î¥Õ¥¡¥¤¥ë
<CODE>/etc/profile</CODE>¤ò»È¤¤(<B>sources</B>)¤Þ¤¹¡£¤³¤Î¥Õ¥¡¥¤¥ë¤Ï¥·¥¹¥Æ¥à´Ä¶¤È
¥Ñ¥¹¤òbash¥æ¡¼¥¶¡¼ÍѤ˥»¥Ã¥È¤·¤Þ¤¹¡£¤·¤«¤·¥·¥¹¥Æ¥à¤¬non-interactive¤È¤·¤Æ
¼Â»Ü¤µ¤ì¤¿»þ¤Ï¤³¤ì¤Ï¼Â¹Ô¤µ¤ì¤Þ¤»¤ó¡£¤â¤Ã¤È¤â½ÅÍפʥ±¡¼¥¹¤Ï¡¢ÎÙ¤ê¤Î¥Þ¥·¥ó¤Ç
¼Â¹Ô¤µ¤ì¤ë¥ê¥â¡¼¥È¥³¥Þ¥ó¥É¤¬rsh¤Ç¹Ô¤ï¤ì¤¿¾ì¹ç¤Ç¤¹¡£<CODE>/etc/profile</CODE>¤Ï
¼Â¹Ô¤µ¤ì¤º¥Ñ¥¹¤Ïrsh¥Ç¡¼¥â¥ó¤«¤é·Ñ¾µ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
<P>bash¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó°ú¿ô<CODE>-login</CODE>¤È<CODE>-i</CODE>¤ò¼õ¤±¼è¤ê¤Þ¤¹¡£¤³¤Î
°ú¿ô¤Ï¤½¤ì¤¾¤ìlogin¥·¥§¥ë¤¢¤ë¤Ï¥¤¥ó¥¿¥é¥¯¥Æ¥£¥Ö(interactive)¥·¥§¥ë¤È¤·¤Æ
¥·¥§¥ë¤ò¥»¥Ã¥È¤¹¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£
<P>¥æ¡¼¥¶¡¼¤Ï<CODE>~/.bash_profile, ~/.bash_login¡¢~/.profile</CODE>
¥Õ¥¡¥¤¥ë¤òºî¤ë¤³¤È¤Ç<CODE>/etc/profile</CODE>¤Ç¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ëÃͤò¾å½ñ¤¤¹¤ë
¤³¤È¤¬¤Ç¤¤Þ¤¹(¤Ä¤Þ¤ê¥æ¡¼¥¶¡¼¤ÎÀßÄê)¡£
¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤Î¤Ò¤È¤Ä¤á(<CODE>~/.bash_profile</CODE>)¤Ïcsh½é´ü²½¤Î
¥í¥¸¥Ã¥¯¤È°ã¤¦¤³¤È¤ËÃí°Õ¤·¤Æ²¼¤µ¤¤¡£<CODE>~/.bash_login</CODE>¤Ï
login¥·¥§¥ë¤Ë´Ø¤·¤Æ¤ÏÆä˲¿¤â¼Â¹Ô¤»¤º¡¢¤Þ¤¿<CODE>.bash_profile</CODE>¤¬¤¢¤ë¤È
¤¤ÏÁ´¤¯¼Â¹Ô¤µ¤ì¤Þ¤»¤ó¡ª
<P>¤â¤·bash¤¬"bash"¤È¤¤¤¦Ì¾Á°¤ÎÂå¤ï¤ê¤Ësh¤È¤¦Ì¾Á°¤È¤·¤Æ»ÈÍѤµ¤ì¤Æ
¤¤¤ë¤È¡¢¥ª¥ê¥¸¥Ê¥ë¤ÎBourne shell½é´ü²½¤ò¥¨¥ß¥å¥ì¡¼¥È¤·¤Þ¤¹¡§¤½¤ÎºÝ¤Î¥Õ¥¡¥¤¥ë
¤Ï<CODE>/etc/profile</CODE>¡¢<CODE>~/.profile</CODE>¤½¤·¤Ælogin¥·¥§¥ëÍѤÎ
¤â¤Î¤Ç¤¹¡£
<P>
<P>
<H2><A NAME="ss6.2">6.2 tcsh</A>
</H2>
<P>login¥·¥§¥ë¤È¤·¤Ætcsh¤Ï°Ê²¼¤Î¥Õ¥¡¥¤¥ë¤ò¤³¤Î½ç¤Ë¼Â¹Ô¤·¤Þ¤¹¡§
<UL>
<LI><CODE>/etc/csh.cshrc</CODE></LI>
<LI><CODE>/etc/csh.login</CODE></LI>
<LI><CODE>~/.tcshrc</CODE></LI>
<LI><CODE>~/.cshrc</CODE>(¤â¤·<CODE>.tcshrc</CODE>¤¬¸«¤Ä¤«¤é¤Ê¤¤»þ)</LI>
<LI><CODE>~/.history</CODE></LI>
<LI><CODE>~/.login</CODE></LI>
<LI><CODE>~/.cshdirs</CODE></LI>
</UL>
<P>tcsh¤Ïcshrc¥¹¥¯¥ê¥×¥È¤ÎÁ°¤Ëlogin¥¹¥¯¥ê¥×¥È¤ò¼Â¹Ô¤¹¤ë¤è¤¦¤ËÁȤ߹þ¤á¤ë¤³¤È
¤Ë¤âÃí°Õ¤·¤Æ²¼¤µ¤¤¡ª
<P>¥¤¥ó¥¿¥é¥¯¥Æ¥£¥Ö¤Ç¤Ê¤¤¥·¥§¥ë¤Ï<CODE>*cshrc</CODE>¥¹¥¯¥ê¥×¥È¤ò¼Â¹Ô¤·¤Þ¤¹¡£<CODE>*login</CODE>
¥¹¥¯¥ê¥×¥È¤Ïlogin¤Ç°ì²ó¤À¤±¥Ñ¥¹¤ò¥»¥Ã¥È¤¹¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£
<P>
<P>
<HR>
<A HREF="Path-7.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Path-5.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Path.html#toc6">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|