¥¤¥ó¥¹¥È¡¼¥ë †
¥Ï¡¼¥É¥¦¥§¥¢Í×·ï †
CPU | SPARC 200MHz°Ê¾å¡¢X86 120MHz°Ê¾å¡¢ÉâÆ°¾®¿ôÅÀ±é»»¤Î¥µ¥Ý¡¼¥È¤¬É¬Í× |
MEM | ºÇ¾® 64MB¡¢¿ä¾© 256MB¡¢GUI 384MB |
HDD | ºÇ¾® 2GB |
SWAP | ¥Ç¥Õ¥©¥ë¥È 512MB |
¥¤¥ó¥¹¥È¡¼¥ëÁ°¤Ë·è¤á¤Æ¤ª¤¯¤³¤È †
- ¥Û¥¹¥È̾
- ¥í¥±¡¼¥ë
- IP¥¢¥É¥ì¥¹
- ¥µ¥Ö¥Í¥Ã¥È¥Þ¥¹¥¯
- ¥É¥á¥¤¥ó̾
- ¥Í¡¼¥à¥µ¡¼¥Ó¥¹(DNS,NIS,NIS+)
- ¥Í¡¼¥à¥µ¡¼¥Ð¤Î¥Û¥¹¥È̾¤ÈIP¥¢¥É¥ì¥¹
- root¥¢¥«¥¦¥ó¥È¤Î¥Ñ¥¹¥ï¡¼¥É
¥¤¥ó¥¹¥È¡¼¥ë¤Î¼ïÎà †
- ¥¤¥Ë¥·¥ã¥ë¥¤¥ó¥¹¥È¡¼¥ë
- ¥¢¥Ã¥×¥°¥ì¡¼¥É
- Solaris 7,8,9 ¤«¤é¥¢¥Ã¥×¥°¥ì¡¼¥É²Äǽ
- ¥¹¥¿¥ó¥À¡¼¥É¥¢¥Ã¥×¥°¥ì¡¼¥É
- ´û¸¤Î¥Ñ¥é¥á¡¼¥¿ÀßÄê¤ò²Äǽ¤Ê¸Â¤ê»È¤Ã¤Æ¥¢¥Ã¥×¥°¥ì¡¼¥É
- ¥é¥¤¥Ö¥¢¥Ã¥×¥°¥ì¡¼¥É
- ´û¸¤Î¥Ñ¥é¥á¡¼¥¿ÀßÄê¤òÂÔÈò¤·¤Æ¤«¤é¥¹¥¿¥ó¥À¡¼¥É¥¢¥Ã¥×¥°¥ì¡¼¥É
- ¥¢¥Ã¥×¥°¥ì¡¼¥É¤¬¤¦¤Þ¤¯¤¤¤«¤Ê¤«¤Ã¤¿¤é¸µ¤ËÌ᤻¤ë
ñ°ì¥·¥¹¥Æ¥à¤Ø¤Î | CD/DVD¤«¤é¤Î | ÂÐÏü°¥¤¥ó¥¹¥È¡¼¥ë |
ñ°ì¥·¥¹¥Æ¥à¤Ø¤Î | LAN·Ðͳ¤Ç¤Î | ÂÐÏü°¥¤¥ó¥¹¥È¡¼¥ë |
Ê£¿ô¥·¥¹¥Æ¥à¤Ø¤Î | ¥«¥¹¥¿¥àJumpStart?¤ò»ÈÍѤ·¤¿ | ¼«Æ°¥¤¥ó¥¹¥È¡¼¥ë |
Ê£¿ô¥·¥¹¥Æ¥à¤Ø¤Î | Solaris¥Õ¥é¥Ã¥·¥å¥¢¡¼¥«¥¤¥Ö¤ò»ÈÍѤ·¤¿ | ¼«Æ°¥¤¥ó¥¹¥È¡¼¥ë |
Ê£¿ô¥·¥¹¥Æ¥à¤Ø¤Î | WAN¥Ö¡¼¥È¤ò»ÈÍѤ·¤¿ | ¼«Æ°¥¤¥ó¥¹¥È¡¼¥ë |
Solaris¥é¥¤¥Ö¥¢¥Ã¥×¥°¥ì¡¼¥É |
Solaris¥¾¡¼¥ó¾å¤ËÆÈΩ¤·¤¿¥¢¥×¥ê¥±¡¼¥·¥ç¥ó´Ä¶¤ò¥¤¥ó¥¹¥È¡¼¥ë |
¥¤¥ó¥¹¥È¡¼¥é¡¼¤¬µ¯Æ°¤¹¤ë¤Þ¤Ç(SPARC) †
- ¥¤¥ó¥¹¥È¡¼¥ë¥á¥Ç¥£¥¢(CD/DVD)¤ò¥É¥é¥¤¥Ö¤Ë¥»¥Ã¥È
- ¥·¥¹¥Æ¥à¤Î¥Ö¡¼¥È
- Ää»ßÃæ¤Î¾ì¹ç¤Ë¤ÏÅŸ»¤òÆþ¤ì¤ë
- ²ÔƯÃæ¤Î¾ì¹ç¤Ë¤ÏºÆµ¯Æ°¤¹¤ë
- init¥³¥Þ¥ó¥É
- halt¥³¥Þ¥ó¥É
- ¥Ö¡¼¥È¥³¥Þ¥ó¥É¤¬É½¼¨¤µ¤ì¤ë
ok
- ¥Ö¡¼¥È¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¡¢¥¤¥ó¥¹¥È¡¼¥é¡¼¤òµ¯Æ°¤¹¤ë
ok boot cdrom
- ¥¤¥ó¥¹¥È¡¼¥ë¤¬½ª¤ï¤Ã¤¿¤é
# reboot
¥¤¥ó¥¹¥È¡¼¥é¡¼¤¬µ¯Æ°¤¹¤ë¤Þ¤Ç(X86) †
- ´ðËÜŪ¤Ë SPARC ¤ÈƱ¤¸¤À¤¬¡¢¥Ç¥Ð¥¤¥¹¤ÎÀßÄ꤬¤Ç¤¤ë
- DCA (Solaris Device Configuration Assistant)
- ¥Ö¡¼¥È¸å5ÉðÊÆâ¤Ë [ESC] ¥¡¼¤ò²¡¤¹¤È DCA ¤ÎÀßÄê²èÌ̤ËÆþ¤ë¤³¤È¤¬¤Ç¤¤ë¡¡
- Êѹ¹¤Ç¤¤ë¤³¤È
- ¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤Þ¤¿¤Ï¡¢ITUs(Install Time Updates)¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë
- ACPI(Advanced Configuration and Power Interface)¤ò¥ª¥Õ¤Ë¤¹¤ë
- ¥·¥ê¥¢¥ë¥³¥ó¥½¡¼¥ë¤ò¥»¥Ã¥È¥¢¥Ã¥×¤¹¤ë
- ¥Ç¥Õ¥©¥ë¥È¤Î¥Ö¡¼¥È¥Ç¥Ð¥¤¥¹¤ò¥ê¥»¥Ã¥È¤¹¤ë
¥¤¥ó¥¹¥È¡¼¥ë¥í¥° †
- Ä̾ï¤Î¥í¥°
- /var/sdam/system/logs
- /var/sdam/install/logs
- ¥¢¥Ã¥×¥°¥ì¡¼¥ÉÃæ¤ÎÉÔ¶ñ¹ç
- /a/var/sdam/system/data/upgrade_clean|
¥¤¥ó¥¹¥È¡¼¥ë¥â¡¼¥É †
- ¥Æ¥¥¹¥È¥¤¥ó¥¹¥È¡¼¥é¡¼¥â¡¼¥É
- ok boot cdrom -nowin
- tip ¥³¥Þ¥ó¥É
- ok boot cdrom -text (¥á¥â¥ê64MB¡Á127MB)
- Window¥·¥¹¥Æ¥à¤Î¥¿¡¼¥ß¥Ê¥ë¾å¤Ç¥Æ¥¥¹¥È¥¤¥ó¥¹¥È¡¼¥é¡¼¥â¡¼¥É
- ok boot cdrom -text (¥á¥â¥ê128MB¡Á383MB)
- Window¥·¥¹¥Æ¥à¤Î¥°¥é¥Õ¥£¥«¥ë¥æ¡¼¥¶¡¼¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹(GUI)¥â¡¼¥É
- ¥«¥¹¥¿¥à¥¤¥ó¥¹¥È¡¼¥ë¤È¥Ç¥Õ¥©¥ë¥È¥¤¥ó¥¹¥È¡¼¥ë
| ¥Æ¥¥¹¥È¥¤¥ó¥¹¥È¡¼¥é¡¼¥â¡¼¥É | ¥°¥é¥Õ¥£¥«¥ë¥æ¡¼¥¶¡¼¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹(GUI)¥â¡¼¥É |
¥«¥¹¥¿¥à¥¤¥ó¥¹¥È¡¼¥ë | ¡û(½é´üÃͤ˿侩Ãͤ¬Æþ¤Ã¤Æ¤¤¤ë) | ¡û |
¥Ç¥Õ¥©¥ë¥È¥¤¥ó¥¹¥È¡¼¥ë | ¡ß | ¡û |
¥½¥Õ¥È¥¦¥¨¥¢¥°¥ë¡¼¥× †
- ¥½¥Õ¥È¥¦¥§¥¢¥°¥ë¡¼¥×¢â¥¤¥ó¥¹¥È¡¼¥ë¥ª¥×¥·¥ç¥ó
- ¾å°Ì¤Î¥½¥Õ¥È¥¦¥§¥¢¥°¥ë¡¼¥×¤Ï¡¢ ²¼°Ì¤Î¥½¥Õ¥È¥¦¥§¥¢¥°¥ë¡¼¥×¤ò´Þ¤à
- Reduced Network Support Software Group
- (¸ÂÄê¥Í¥Ã¥È¥ï¡¼¥¯¥µ¥Ý¡¼¥È¥½¥Õ¥È¥¦¥§¥¢¥°¥ë¡¼¥×)
- ºÇ¾®¹½À®
- ɬÍץǥ£¥¹¥¯¥¹¥Ú¡¼¥¹ 2.0GB
- Core System Support Software Group
- (¥³¥¢¥·¥¹¥Æ¥à¥µ¥Ý¡¼¥È¥½¥Õ¥È¥¦¥§¥¢¥°¥ë¡¼¥×)
- ¥Í¥Ã¥È¥ï¡¼¥¯¤¬»È¤¨¤ë
- ɬÍץǥ£¥¹¥¯¥¹¥Ú¡¼¥¹ 2.0GB
- End User Solaris Software Group
- (¥¨¥ó¥É¥æ¡¼¥¶Solaris¥½¥Õ¥È¥¦¥§¥¢¥°¥ë¡¼¥×)
- CDE¤¬Æ°¤¯
- ɬÍץǥ£¥¹¥¯¥¹¥Ú¡¼¥¹ 5.0GB
- Developer Solaris Software Group
- (³«È¯¼ÔSolaris¥½¥Õ¥È¥¦¥§¥¢¥°¥ë¡¼¥×)
- ³«È¯¼Ô¥Ñ¥Ã¥±¡¼¥¸¡£¤¿¤À¤·¡¢¥³¥ó¥Ñ¥¤¥é¤ò´Þ¤Þ¤ì¤Ê¤¤
- ɬÍץǥ£¥¹¥¯¥¹¥Ú¡¼¥¹ 6.0GB
- Entire Solaris Software Group
- (Á´ÂÎSolaris¥½¥Õ¥È¥¦¥§¥¢¥°¥ë¡¼¥×)
- ¥µ¡¼¥Ð¡¼¤Î¥µ¥Ý¡¼¥ÈÍÑ¥½¥Õ¥È¥¦¥§¥¢
- ɬÍץǥ£¥¹¥¯¥¹¥Ú¡¼¥¹ 6.5GB
- Entire Solaris Software Group plus Original Equipment Manufacturer (OEM) support
- (Á´ÂÎSolaris¥½¥Õ¥È¥¦¥§¥¢¥°¥ë¡¼¥×)
- »È¤ï¤ì¤Æ¤¤¤Ê¤¤¥É¥é¥¤¥Ð¤ò´Þ¤à
- ɬÍץǥ£¥¹¥¯¥¹¥Ú¡¼¥¹ 6.7GB
¥Ñ¥Ã¥±¡¼¥¸ †
- ¥Ñ¥Ã¥±¡¼¥¸
- Sun¤ä¥µ¡¼¥É¥Ñ¡¼¥Æ¥£¤ÎºîÀ®¤·¤¿ÄɲÃŪ¤Ê¥½¥Õ¥È¥¦¥§¥¢¥³¥ó¥Ý¡¼¥Í¥ó¥È
- ¥¯¥é¥¹¥¿
- µ¡Ç½Åª¤Ë´ØÏ¢¤·¤¿¥Ñ¥Ã¥±¡¼¥¸¤ò½¸¤á¤¿¤â¤Î
- (¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó¤Ï¼ç¤Ê¤â¤Î¤Î¤ß·ÇºÜ¤·¤Æ¤¤¤ë)
pkgask †
¥Ñ¥Ã¥±¡¼¥¸¤«¤é±þÅú¥Õ¥¡¥¤¥ë¤ò¼è¤ê½Ð¤¹
pkgask [-d <device>] [-R <root_path>] -r <response> <instance>...
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
[-d <device>] | ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë¤òÃÖ¤¤¤Æ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê | µ¬ÄêÃÍ : /var/spool/pkg |
[-R <root_path>] | ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¤Î¥¤¥ó¥¹¥È¡¼¥ëÀè¥Ç¥£¥ì¥¯¥È¥ê | µ¬ÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ëÃÍ |
-r <response> | ±þÅú¥Õ¥¡¥¤¥ë¤Î½ÐÎÏÀè¥Õ¥¡¥¤¥ë̾ |
<instance> | ¥Ñ¥Ã¥±¡¼¥¸¤Î¥¤¥ó¥¹¥¿¥ó¥¹(¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë̾) |
- ±þÅú¥Õ¥¡¥¤¥ë : pkgadd ¤Ç¡¢¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ëºÝ¤Ë¡¢¥æ¡¼¥¶¡¼¤¬ÂÐÏÃŪ¤ËÆþÎϤ·¤Ê¤±¤ì¤Ð¤¤¤±¤Ê¤¤¥Ñ¥é¥á¡¼¥¿¤òµ½Ò¤·¤¿¥Õ¥¡¥¤¥ë
- pkgasd¤Ç¼è¤ê½Ð¤·¤¿±þÅú¥Õ¥¡¥¤¥ë¤òÊÔ½¸¤·¡¢pkgadd¤òµ¯Æ°¤¹¤ë¤È¤¤Î [-r <response>]¥ª¥×¥·¥ç¥ó ¤Ë»ØÄꤹ¤ë¤È¡¢pkgadd ¤Ï¥æ¡¼¥¶¤ËÌ䤤¹ç¤ï¤»¤º¤Ë¡¢±þÅú¥Õ¥¡¥¤¥ë¤ò¸«¤Æ¥¤¥ó¥¹¥È¡¼¥ëºî¶È¤ò¹Ô¤¦¡£
pkgadd †
¥Ñ¥Ã¥±¡¼¥¸¤Î¥¤¥ó¥¹¥È¡¼¥ë¤ò¹Ô¤¦
pkgadd [-n] [-a <admin>] [-d <device>] [-G] [-r <response>] [-R <rootPath>] [<source>] [<instances>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
[-n] | ÀßÄêÃÍ : ¥¤¥ó¥¹¥È¡¼¥ë¥â¡¼¥É¤òÈóÂÐÏü°¤ËÀßÄꤹ¤ë | µ¬ÄêÃÍ : ¥¤¥ó¥¹¥È¡¼¥ë¥â¡¼¥É¤ÏÂÐÏü° |
[-a <admin>] | ÀßÄêÃÍ : ¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë»ÈÍѤ¹¤ë¥¤¥ó¥¹¥È¡¼¥ë´ÉÍý¥Õ¥¡¥¤¥ë | µ¬ÄêÃÍ : ¼¡¤Î½çÈ֤ǥ¤¥ó¥¹¥È¡¼¥ë´ÉÍý¥Õ¥¡¥¤¥ë¤òõ¤¹¡£1.¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê 2./var/sdam/install/admin/¥Ç¥£¥ì¥¯¥È¥ê |
[-d <device>] | ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë¤òÃÖ¤¤¤Æ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê("source"¥ª¥×¥·¥ç¥ó¤ÈƱ¤¸) | µ¬ÄêÃÍ : /var/spool/pkg |
[-G] | ÀßÄêÃÍ : ¥«¥ì¥ó¥È¥¾¡¼¥ó¤Î¤ß¤Ë¥Ñ¥Ã¥±¡¼¥¸¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë | µ¬ÄêÃÍ : Á´¤Æ¤Î¥¾¡¼¥ó¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë |
[-r <response>] | ÀßÄêÃÍ : ¥¤¥ó¥¹¥È¡¼¥ë»þ¤ËÍѤ¤¤ë±þÅú¥Õ¥¡¥¤¥ë̾ | µ¬ÄêÃÍ : ±þÅú¥Õ¥¡¥¤¥ë¤ò»È¤ï¤º¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤ò¹Ô¤¦ |
[-R <root_path>] | ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¤Î¥¤¥ó¥¹¥È¡¼¥ëÀè¥Ç¥£¥ì¥¯¥È¥ê | µ¬ÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ëÃÍ |
[<source>] | ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë¤òÃÖ¤¤¤Æ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê("-d"¥ª¥×¥·¥ç¥ó¤ÈƱ¤¸) | µ¬ÄêÃÍ : /var/spool/pkg |
<instance> | ¥Ñ¥Ã¥±¡¼¥¸¤Î¥¤¥ó¥¹¥¿¥ó¥¹(¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë̾) |
¥Ñ¥Ã¥±¡¼¥¸¤Î¼èÆÀ¤Î¤ß¤ò¹Ô¤¦
pkgadd -d <deviceName> -s <spoolDir> <pkgid>...
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-d <device> | ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë¤¬ÃÖ¤¤¤Æ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê |
-s <splloDir> | ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë¤òÃÖ¤¯¥Ç¥£¥ì¥¯¥È¥ê |
<pkgid>... | ÀßÄêÃÍ : ¼èÆÀ¤¹¤ë¥Ñ¥Ã¥±¡¼¥¸¤ÎID(¥«¥ó¥Þ¤Þ¤¿¤Ï¥¹¥Ú¡¼¥¹¶èÀÚ¤ê¤ÇÊ£¿ô»ØÄê²Ä) |
pkgchk †
pkgadd ¤Ë¤è¤ë¥¤¥ó¥¹¥È¡¼¥ë·ë²Ì¤Î¸¡¾Ú¤ò¹Ô¤¦
pkgchk [-acv|-l] [-p <pathName>...] [<pkgid>...]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
[-ac] | ÀßÄêÃÍ : a:¥Õ¥¡¥¤¥ë°À¤Î¤ß¤ò¸¡¾Ú¤¹¤ë¡£c:¥Õ¥¡¥¤¥ë¤ÎÆâÍƤΤߤò¸¡¾Ú¤¹¤ë | µ¬ÄêÃÍ : ¥Õ¥¡¥¤¥ë°À¤ÈÆâÍƤò¸¡¾Ú¤¹¤ë |
[-v] | ÀßÄêÃÍ : verbose mode(¾ÜºÙ¤Ê¼Â¹Ô¥í¥°¤òɽ¼¨¤¹¤ë) | µ¬ÄêÃÍ : ¾ÜºÙ¤Ê¼Â¹Ô¥í¥°¤Ï½ÐÎϤ·¤Ê¤¤ |
[-l] | ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸Æâ¤Î¥Õ¥¡¥¤¥ë¾ðÊó¤ò¥ê¥¹¥Èɽ¼¨¤¹¤ë | µ¬ÄêÃÍ : ¥ê¥¹¥Èɽ¼¨¤Ï¹Ô¤ï¤Ê¤¤ |
[-p <pathName>...] | ÀßÄêÃÍ : ¸¡¾Ú¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê(¥«¥ó¥Þ¤Þ¤¿¤Ï¥¹¥Ú¡¼¥¹¶èÀÚ¤ê¤ÇÊ£¿ô»ØÄê²Ä) | µ¬ÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ëÃÍ |
[<pkgid>...] | ÀßÄêÃÍ : ¸¡¾Ú¤¹¤ë¥Ñ¥Ã¥±¡¼¥¸¤ÎID(¥«¥ó¥Þ¤Þ¤¿¤Ï¥¹¥Ú¡¼¥¹¶èÀÚ¤ê¤ÇÊ£¿ô»ØÄê²Ä) | µ¬ÄêÃÍ : Á´¤Æ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥Ñ¥Ã¥±¡¼¥¸¤Î¸¡¾Ú¤ò¹Ô¤¦ |
pkgadd ¤Ë¤è¤ê¥¹¥×¡¼¥ë¤µ¤ì¤¿¥Ñ¥Ã¥±¡¼¥¸¤Î¸¡¾Ú¤ò¹Ô¤¦
pkgchk -d <device>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-d <device> | ¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë¤¬ÃÖ¤¤¤Æ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê |
pkginfo †
pkgadd ¤Ë¤è¤Ã¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¥Ñ¥Ã¥±¡¼¥¸¤Î¾ðÊó¤òÆÀ¤ë
pkginfo [-i|-p] [-l|-q|-x] [-c <category>] [<instances>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
[-ip] | ÀßÄêÃÍ : i:´°Á´¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¥Ñ¥Ã¥±¡¼¥¸¤Î¾ðÊó¤Î¤ß¤òɽ¼¨¤¹¤ë¡£p:°ìÉô¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¥Ñ¥Ã¥±¡¼¥¸¤Î¾ðÊó¤Î¤ß¤òɽ¼¨¤¹¤ë | µ¬ÄêÃÍ : Á´¤Æ¤Î¥Ñ¥Ã¥±¡¼¥¸¤Î¾ðÊó¤òɽ¼¨¤¹¤ë |
[-lqx] | ÀßÄêÃÍ : l:¥í¥ó¥°¥Õ¥©¡¼¥Þ¥Ã¥È¡£q:²¿¤âɽ¼¨¤·¤Ê¤¤¡£x:¥ê¥¹¥È·Á¼° (¤É¤ì¤«¤ò»ØÄꤹ¤ëɬÍפ¢¤ê) |
[-c <category>] | ÀßÄêÃÍ : ɽ¼¨¤¹¤ë¥Ñ¥Ã¥±¡¼¥¸¤Î¥«¥Æ¥´¥ê | µ¬ÄêÃÍ : pkginfo ¥Õ¥¡¥¤¥ë¤Î CATEGORYÃÍ |
pkgadd ¤Ë¤è¤ê¥¹¥×¡¼¥ë¤µ¤ì¤¿¥Ñ¥Ã¥±¡¼¥¸¤Ë´Ø¤¹¤ë¾ðÊó¤òÆÀ¤ë
pkginfo -d <device>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-d <device> | ¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë¤¬ÃÖ¤¤¤Æ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê |
pkgparam †
¥Ñ¥Ã¥±¡¼¥¸¤Ë´Ø¤¹¤ë¥Ñ¥é¥á¡¼¥¿¤òÆÀ¤Þ¤¹¡£(pkginfo -l ¤È¤Û¤ÜƱ¤¸ÆâÍƤ¬ÆÀ¤é¤ì¤ë)
pkgparam [-v] pkg-abbrev [param...]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
[-v] | ÀßÄêÃÍ : ¥Ñ¥é¥á¡¼¥¿Ì¾¤È¤½¤ÎÃͤòɽ¼¨¤¹¤ë | µ¬ÄêÃÍ : ¥Ñ¥é¥á¡¼¥¿Ì¾¤Î¤ß¤òɽ¼¨¤¹¤ë |
pkg-abbrev | ¥Ñ¥Ã¥±¡¼¥¸Ì¾ |
[param...] | ÀßÄêÃÍ : ɽ¼¨¤¹¤ë¥Ñ¥é¥á¡¼¥¿(¥«¥ó¥Þ¤Þ¤¿¤Ï¥¹¥Ú¡¼¥¹¶èÀÚ¤ê¤ÇÊ£¿ô»ØÄê²Ä) | µ¬ÄêÃÍ : Á´¤Æ¤Î¥Ñ¥é¥á¡¼¥¿¤òɽ¼¨¤¹¤ë |
pkgrm †
¥·¥¹¥Æ¥à¤«¤é¥Ñ¥Ã¥±¡¼¥¸¤òºï½ü¤¹¤ë
pkgrm [-a <admin>] [-A] [-n] [<pkgid>...]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
[-a <admin>] | ÀßÄêÃÍ : ¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë»ÈÍѤ¹¤ë¥¤¥ó¥¹¥È¡¼¥ë´ÉÍý¥Õ¥¡¥¤¥ë | µ¬ÄêÃÍ : ¼¡¤Î½çÈ֤ǥ¤¥ó¥¹¥È¡¼¥ë´ÉÍý¥Õ¥¡¥¤¥ë¤òõ¤¹¡£1.¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê 2./var/sdam/install/admin/¥Ç¥£¥ì¥¯¥È¥ê |
[-A] | ÀßÄêÃÍ : ¾¤Î¥Ñ¥Ã¥±¡¼¥¸¤È¶¦Í¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤âºï½ü¤¹¤ë | µ¬ÄêÃÍ : ¾¤Î¥Ñ¥Ã¥±¡¼¥¸¤È¶¦Í¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤Ïºï½ü¤·¤Ê¤¤ |
[-n] | ÀßÄêÃÍ : ¥¤¥ó¥¹¥È¡¼¥ë¥â¡¼¥É¤òÈóÂÐÏü°¤ËÀßÄꤹ¤ë | µ¬ÄêÃÍ : ¥¤¥ó¥¹¥È¡¼¥ë¥â¡¼¥É¤ÏÂÐÏü° |
[<pkgid>...] | ÀßÄêÃÍ : ºï½ü¤¹¤ë¥Ñ¥Ã¥±¡¼¥¸¤ÎID(¥«¥ó¥Þ¤Þ¤¿¤Ï¥¹¥Ú¡¼¥¹¶èÀÚ¤ê¤ÇÊ£¿ô»ØÄê²Ä) | µ¬ÄêÃÍ : ºï½ü²Äǽ¤ÊÁ´¤Æ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥Ñ¥Ã¥±¡¼¥¸¤Îºï½ü¤ò¹Ô¤¦ |
- pkgadd ¤Ç¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¥Õ¥¡¥¤¥ë¤ò rm ¤Çºï½ü¤·¤Æ¤Ï¤¤¤±¤Ê¤¤
pkgadd ¤Ë¤è¤ê¥¹¥×¡¼¥ë¤µ¤ì¤¿¥Ñ¥Ã¥±¡¼¥¸¤Îºï½ü¤ò¹Ô¤¦
pkgrm -s <spoolDir>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-s <spoolDir> | ÀßÄêÃÍ : ¥Ñ¥Ã¥±¡¼¥¸¤¬¥¹¥×¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê | µ¬ÄêÃÍ : /var/sdam/pkg |
pkgmk¡¢pkgtrans †
- ¥Ñ¥Ã¥±¡¼¥¸¤òºî¤ë¤È¤¤Ë»È¤¦
- pkgtrans ¤Ç´û¸¤Î¥¹¥È¥ê¡¼¥à¥Õ¥©¡¼¥Þ¥Ã¥È¤Î¥Ñ¥Ã¥±¡¼¥¸¤ò¥Ç¥£¥ì¥¯¥È¥ê¥Õ¥©¡¼¥Þ¥Ã¥È¤ËÊÑ´¹¤¹¤ë¤³¤È¤â¤Ç¤¤ë(¤Ç¡¢½¤Àµ¤·¤ÆºÆ¤Ó¥¹¥È¥ê¡¼¥à¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë¤¹¤ë)
- pkgadd ¤Ï¡¢¥Ç¥£¥ì¥¯¥È¥ê¥Õ¥©¡¼¥Þ¥Ã¥È¡¦¥¹¥È¥ê¡¼¥à¥Õ¥©¡¼¥Þ¥Ã¥È¤Î¤É¤Á¤é¤â°·¤¨¤ë¤¬¡¢ÇÛÉÛ¤·¤ä¤¹¤¤¤Î¤Ï¥¹¥È¥ê¡¼¥à¥Õ¥©¡¼¥Þ¥Ã¥È
¥Ñ¥Ã¥Á †
- Solaris10 ¤Î½¤Àµ¤ä³ÈÄ¥¤ò¹Ô¤¦¤¿¤á¤Î¥½¥Õ¥È¥¦¥§¥¢¥³¥ó¥Ý¡¼¥Í¥ó¥È(Solaris 2.x¤«¤é¤Îµ¡Ç½)
- ¥Ñ¥Ã¥ÁÇÛÉÛ¥µ¥¤¥È http://sunsolve.sun.com
patchadd †
¥Ñ¥Ã¥Á¤òŬÍѤ¹¤ë
pachadd [-d] [-G] [-u] [-B <backoutDir>] <source> [<destination>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
[-d] | ÀßÄêÃÍ : ¥Ñ¥Ã¥Á¤òŬÍѤ¹¤ë¤È¤¤Ë¥Õ¥¡¥¤¥ë¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤ò¤È¤é¤Ê¤¤ | µ¬ÄêÃÍ : ¥Õ¥¡¥¤¥ë¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤ò¹Ô¤¦ |
[-G] | ÀßÄêÃÍ : ¥«¥ì¥ó¥È¥¾¡¼¥ó¤Î¤ß¤Ë¥Ñ¥Ã¥Á¤òŬÍѤ¹¤ë | µ¬ÄêÃÍ : Á´¤Æ¤Î¥¾¡¼¥ó¤Ë¥Ñ¥Ã¥Á¤òŬÍѤ¹¤ë |
-[u] | ÀßÄêÃÍ : ¥Ñ¥Ã¥Á¤Î¸¡¾Ú¤ò¹Ô¤ï¤Ê¤¤ | µ¬ÄêÃÍ : ¥Ñ¥Ã¥Á¤Î¸¡¾Ú¤ò¹Ô¤¦ |
[-B <backoutDir] | ¥Ñ¥Ã¥Á¤òŬÍѤ¹¤ë¤È¤¤Ë¥Õ¥¡¥¤¥ë¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤òÊݸ¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê |
<source> | ¥Ñ¥Ã¥Á¤ò¼èÆÀ¤¹¤ë¥½¡¼¥¹(¥Ç¥£¥ì¥¯¥È¥ê¤ä¥Ñ¥Ã¥ÁID) |
[<destination>] | ÀßÄêÃÍ : ¥Ñ¥Ã¥Á¤ÎŬÍÑÀè | µ¬ÄêÃÍ : ¥«¥ì¥ó¥È¥·¥¹¥Æ¥à¤Ë¥Ñ¥Ã¥Á¤òŬÍѤ¹¤ë |
- patchadd -p <destination>
- ¸½ºß¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥Ñ¥Ã¥Á¤ò³Îǧ¤¹¤ë¤È¤
- [-p <destination>] : ¥Ñ¥Ã¥Á¤ÎŬÍÑÀè
- ¥Ñ¥Ã¥ÁŬÍÑ¤Î¥í¥° : /var/sdam/patch/<patch-ID>/log
- ¥Ñ¥Ã¥Á¤¬Å¬ÍѤǤ¤Ê¤¤¤È¤
- ¥·¥¹¥Æ¥à¤Ë´°Á´¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤Ê¤¤¥Ñ¥Ã¥±¡¼¥¸¤Î¾ì¹ç
- ¥Ñ¥Ã¥Á¥Ñ¥Ã¥±¡¼¥¸¤Î¥¢¡¼¥¥Æ¥¯¥Á¥ã¡¼¤È¡¢¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥·¥¹¥Æ¥à¤Î¥¢¡¼¥¥Æ¥¯¥Á¥ã¡¼¤¬°Û¤Ê¤ë¤È¤
- ¥Ù¡¼¥¹¥³¡¼¥É¤¬Æ±¤¸¤Ç¥ê¥Ó¥¸¥ç¥óÈÖ¹æ¤Î¹â¤¤¥Ñ¥Ã¥Á¤¬¤¹¤Ç¤ËŬÍѤµ¤ì¤Æ¤¤¤ë¤È¤
- ³ºÅö¥Ñ¥Ã¥Á¤ò̵ÍѤˤ¹¤ë¥Ñ¥Ã¥Á¤¬¤¹¤Ç¤ËŬÍѤµ¤ì¤Æ¤¤¤ë¾ì¹ç
- ¥·¥¹¥Æ¥à¤ËŬÍѺѤߤΥѥåÁ¤È¸ß´¹À¤Î¤Ê¤¤¥Ñ¥Ã¥Á¤òŬÍѤ·¤è¤¦¤È¤·¤¿¾ì¹ç
- ³ºÅö¥Ñ¥Ã¥Á¤¬°Í¸¤·¤Æ¤¤¤ë¾¤Î¥Ñ¥Ã¥Á¤ÎÃæ¤Ë¡¢Ì¤Å¬ÍѤ˥â¥Î¤¬¤¢¤ë¾ì¹ç
showrev †
- showrev -p
- ¥·¥¹¥Æ¥à¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥Ñ¥Ã¥Á¤Î¥ê¥Ó¥¸¥ç¥ó¾ðÊó¤ò¼èÆÀ¤¹¤ë
patchrm †
¥Ñ¥Ã¥Á¤òºï½ü¤¹¤ë
patchrm [-f] [-G] [-B <backoutDir>] <patchID>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
[-f] | ¶¯À©Åª¤Ë¥Ñ¥Ã¥Á¤Îºï½ü¤ò¹Ô¤¦ |
[-G] | ¥«¥ì¥ó¥È¥¾¡¼¥ó¤Î¤ß¤Ë¥Ñ¥Ã¥Á¤òŬÍѤ¹¤ë |
[-B <backoutDir] | ¥Ñ¥Ã¥Á¤òºï½ü¤¹¤ë¤È¤¤Ë¥Õ¥¡¥¤¥ë¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤òÊݸ¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê |
<patchID> | ¥Ñ¥Ã¥ÁÈÖ¹æ |
SPARC ¥Þ¥·¥ó ¤Î Boot ¥×¥í¥»¥¹ †
¥Ö¡¼¥È¥×¥í¥»¥¹¤È¥Ñ¥ï¡¼¥µ¥¤¥¯¥ë †
¥Ñ¥ï¡¼¥µ¥¤¥¯¥ë | ¥Þ¥·¥ó¤ÎÅŸ»¤òÆþ¤ì¤Æ¥Ö¡¼¥È¤·¤Æ¤«¤é¥·¥ã¥Ã¥È¥À¥¦¥ó¤¹¤ë¤Þ¤Ç |
¥Ö¡¼¥È¥×¥í¥»¥¹ | ¥Ö¡¼¥È»þ¤Ë¹Ô¤ï¤ì¤ë½èÍý |
Boot PROM ¤È NVRAM †
Boot PROM | ¥Õ¥¡¡¼¥à¥¦¥§¥¢¤¬³ÊǼ¤µ¤ì¤Æ¤¤¤ëROM |
Open Boot PROM ¥â¥Ë¥¿ | ¥Õ¥¡¡¼¥à¥¦¥§¥¢ |
NVRAM | ¥Ö¡¼¥È¥×¥í¥»¥¹¤Î¥Ñ¥é¥á¡¼¥¿¤¬³ÊǼ¤µ¤ì¤Æ¤¤¤ëÉÔ´øȯRAM |
NVRAM(Open Boot)¹½À®ÊÑ¿ô | ¥Ö¡¼¥È¥×¥í¥»¥¹¤Î¥Ñ¥é¥á¡¼¥¿ |
eeprom | NVRAM(Open Boot)¹½À®ÊÑ¿ô¤òÊѹ¹¤¹¤ë¥æ¡¼¥Æ¥£¥ê¥Æ¥£ |
¥Ö¡¼¥È¥×¥í¥»¥¹ †
- Boot PROM ¥Õ¥§¡¼¥º
- POST(Power On Self Test)
- ¥Ï¡¼¥É¥¦¥§¥¢¤È¥á¥â¥ê¤ò¸¡¾Ú¤·¡¢¥Ç¥Ð¥¤¥¹¥Ä¥ê¡¼¤òºî¤ë
- ROM ¤«¤é bootblk ¥×¥í¥°¥é¥à¤¬ RAM ¤ËÆɤ߹þ¤Þ¤ì¤ë
- ¥Ö¡¼¥È¥×¥í¥°¥é¥à¥Õ¥§¡¼¥º
- bootblk ¥×¥í¥°¥é¥à¤¬¡¢UFS(Unix File System) ¤«¤é ufsboot ¥×¥í¥°¥é¥à¤ò¥á¥â¥ê¤ËÆɤ߹þ¤à
- ¥«¡¼¥Í¥ë½é´ü²½¥Õ¥§¡¼¥º
- ufsboot ¥×¥í¥°¥é¥à¤¬¡¢¥«¡¼¥Í¥ë¤ò¥á¥â¥ê¤ËÆɤ߹þ¤à
- ¥«¡¼¥Í¥ë¤Ï¼«¿È¤Î½é´ü²½¤ò¹Ô¤¦
- ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à(/)¤Î¥Þ¥¦¥ó¥È¤ËɬÍפʥ⥸¥å¡¼¥ë¤ÎÆɤ߹þ¤ß
- init¥Õ¥§¡¼¥º
- °ìÈÌŪ¤ÊUnix ¤ÈƱ¤¸¤è¤¦¤Ë /sbin/init ¤¬µ¯Æ°¤µ¤ì¤ë
- /sbin/init ¤Ï¡¢/etc/inittab ¤ÎÄêµÁ¤Ë½¾¤Ã¤Æ¥µ¡¼¥Ó¥¹¤òΩ¤Á¾å¤²¤ë
- Solaris 10 ¤Î¾ì¹ç¤Ï¡¢SMF(/lib/svc/bin/svc.startd)¤òµ¯Æ°¤¹¤ë¤À¤±
bash-3.00# cat /etc/inittab
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
(Ãæά)
ap::sysinit:/sbin/autopush -f /etc/iu.ap
sp::sysinit:/sbin/soconfig -f /etc/sock2path
smf::sysinit:/lib/svc/bin/svc.startd >/dev/msglog 2<>/dev/msglog </dev/consol e
p3:s1234:powerfail:/usr/sbin/shutdown -y -i5 -g0 >/dev/msglog 2<>/dev/msglog
pt:s1234:powerfail:/usr/lib/svc/method/installupdates lock
½ñ¼° id:rstate:action:process
id | ¼±ÊÌ»Ò |
rstate | run level ¤Î¥ê¥¹¥È |
action | ¥×¥í¥»¥¹¤Î¼Â¹ÔÊýË¡ |
process | ¥¹¥¯¥ê¥×¥È |
- µ¯Æ°»þ¤Î¥é¥ó¥ì¥Ù¥ë
- ¼Â¼ÁŪ¤Ë svc.startd ¤Î milestone ¥×¥í¥Ñ¥Æ¥£¤ÎÀßÄêÃͤ¬¥é¥ó¥ì¥Ù¥ë¤Ë¤Ê¤ë
- ̵ÍýÌðÍý milestone ¤ò̵¸ú¤Ë¤¹¤ë¤È¡¢/etc/inittab ¤Î initdefault ¥×¥í¥Ñ¥Æ¥£¤ÎÀßÄêÃͤ¬»È¤ï¤ì¤ë
Boot PROM ¥³¥Þ¥ó¥É †
- Open Boot ¥æ¡¼¥¶¥¤¥ó¥¿¥Õ¥§¡¼¥¹
- ¥Ö¡¼¥È»þ¤Ë¹½À®ÊÑ¿ô auto-boot? ¤¬ false ¤Î¤È¤¡¢POST ¤Ç¥Ö¡¼¥È¤¬»ß¤Þ¤ê¡¢Open Boot ¥æ¡¼¥¶¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ÇÄä»ß¤¹¤ë
- ¥·¥¹¥Æ¥à²ÔƯÃæ¤Î¶ÛµÞ¥³¥Þ¥ó¥É([Stop]+[A])¤Ç¡¢Open Boot ¥æ¡¼¥¶¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ë°Ü¹Ô¤¹¤ë
- ¥×¥í¥ó¥×¥È¤Ï ok
- ¼ç¤Ê Boot PROM ¥³¥Þ¥ó¥É
¥³¥Þ¥ó¥É | ÀâÌÀ |
ok banner | ¥Ð¥Ê¡¼É½¼¨ |
ok boot [<device>] [<arguments>] | <device>:cdrom,disk,floppy,net,tape / <arguments>:boot¥Õ¥¡¥¤¥ë̾¡¢¾Êά»þ¤Ï NVRAM¥Ñ¥é¥á¡¼¥¿¤Îboot-file |
ok .enet-addr | Ethernet ¥¢¥É¥ì¥¹¤òɽ¼¨ |
ok .version | Boot PROM¤Î¥Ð¡¼¥¸¥ç¥ó¤òɽ¼¨ |
ok eject <media> | <media>:cdrom,floppy,tape |
ok help | |
ok password | ¥Ñ¥¹¥ï¡¼¥ÉÀßÄê |
ok printenv | NVRAM¹½À®ÊÑ¿ô¤Îɽ¼¨ |
ok setenv <varName> <value> | NVRAM¹½À®ÊÑ¿ô¤òÀßÄꤹ¤ë |
ok set-default <varName> | NVRAM¹½À®ÊÑ¿ô¤ò¥Ç¥Õ¥©¥ë¥ÈÃÍ(¹©¾ì½Ð²Ù»þ)¤Ë¤¹¤ë |
ok set-defaults | NVRAM¹½À®ÊÑ¿ô¤òÁ´¤Æ¥Ç¥Õ¥©¥ë¥ÈÃÍ(¹©¾ì½Ð²Ù»þ)¤Ë¤¹¤ë |
ok show-devs | ¥Ç¥Ð¥¤¥¹¥Ä¥ê¡¼¤òɽ¼¨¤¹¤ë |
ok reset-all | ¥·¥¹¥Æ¥à¤ò¥ê¥»¥Ã¥È¤¹¤ë |
ok sync | ¥Ð¥Ã¥Õ¥¡¤È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òƱ´ü¤·¡¢¥¯¥é¥Ã¥·¥å¥À¥ó¥×¤ò½ñ¤½Ð¤µ¤»¤ë |
ok devalias | Á´¥Ç¥Ð¥¤¥¹¤Î¥¨¥¤¥ê¥¢¥¹(ÊÌ̾)¤òɽ¼¨¤µ¤»¤ë |
ok devalias <alias> | »ØÄꤷ¤¿¥¨¥¤¥ê¥¢¥¹¤Î¼Â¥Ç¥Ð¥¤¥¹¤òɽ¼¨¤µ¤»¤ë |
ok devalias <alias> <devicePath> | ¼Â¥Ç¥Ð¥¤¥¹¤ò¥¨¥¤¥ê¥¢¥¹¤Ë³ä¤êÉÕ¤±¤ë¡£ÅŸ»¤òÍî¤È¤¹¤È¾Ãµî¤µ¤ì¤ë |
ok nvvalias <alias> <devicePath> | ¼Â¥Ç¥Ð¥¤¥¹¤ò¥¨¥¤¥ê¥¢¥¹¤Ë³ä¤êÉÕ¤±¡¢NVRAM¤ÇÊÝ»ý¤¹¤ë |
ok nvunalias <alias> | NVRAM¤ÇÊÝ»ý¤·¤Æ¤¤¤ë¥¨¥¤¥ê¥¢¥¹¤òºï½ü¤¹¤ë |
- ¶ÛµÞ¥³¥Þ¥ó¥É
¥³¥Þ¥ó¥É | ÀâÌÀ |
[Stop] | POST¤ò¥Ð¥¤¥Ñ¥¹¤¹¤ë |
[Stop]+[A] | ¥·¥¹¥Æ¥à¤ò¥¢¥Ü¡¼¥È¤¹¤ë¡£(¥·¥¹¥Æ¥à²ÔƯÃæ¤Î¥¢¥Ü¡¼¥È¤ò̵¸ú²½¤·¤¿¤¤¾ì¹ç¤Ï /etc/dfault/kdb ¤Ë KEYBOARD_ABORT=disable ¤òÀßÄê) |
[Stop]+[D] | ¿ÇÃǥ⡼¥É¤Ë°Ü¹Ô¤¹¤ë |
[Stop]+[N] | NVRAM¤ÎÆâÍƤò¥Ç¥Õ¥©¥ë¥ÈÃÍ(¹©¾ì½Ð²Ù»þ)¤Ë¤¹¤ë |
NVRAM(Open Boot)¹½À®ÊÑ¿ô †
¥Ñ¥é¥á¡¼¥¿ | ÀâÌÀ | ¥Ç¥Õ¥©¥ë¥ÈÃÍ |
auto-boot? | true:¼«Æ°¥Ö¡¼¥È / false:Boot PROM ¥æ¡¼¥¶¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ç¥Ö¡¼¥È¤òÄä»ß | true |
boot-command | auto-boot? ¤¬ true ¤Î¤È¤¡¢¤³¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô | boot |
boot-device | ¥·¥¹¥Æ¥à¤ò¥Ö¡¼¥È¤¹¤ë¥Ç¥Ð¥¤¥¹ | disk net |
boot-file | ¥Ö¡¼¥È¥×¥í¥°¥é¥à¤Î°ú¿ô | ""(¤Ê¤·) |
diag-device | ¿ÇÃÇ¥Ö¡¼¥È»þ¤Î¥·¥¹¥Æ¥à¤ò¥Ö¡¼¥È¤¹¤ë¥Ç¥Ð¥¤¥¹ | net |
diag-file | ¿ÇÃÇ¥Ö¡¼¥È»þ¤Î¥Ö¡¼¥ÈÉظޥ°¥é¥à¤Î°ú¿ô | ""(¤Ê¤·) |
diag-switch? | true:¿ÇÃÇ¥Ö¡¼¥È / false:Ä̾ï¥Ö¡¼¥È | false |
fcode-debug | FCode¤òdebug¥â¡¼¥É¤ÇÆ°¤«¤¹¤«¡©FCode:¥¤¥ó¥¿¥×¥ê¥¿¥Ù¡¼¥¹¤Î¥É¥é¥¤¥Ðµ½Ò¸À¸ì | false |
input-device | keyboard,ttya,ttyb¤Ê¤É | keyboard |
output-device | screen,ttya,ttyb¤Ê¤É | screen |
screen#columns | | 80 |
screen#rows | | 34 |
security-mode | none:¥Ö¡¼¥È»þ¤Ë¥Ñ¥¹¥ï¡¼¥É¤òÍ׵ᤷ¤Ê¤¤/command,full:¥Ö¡¼¥È»þ¤Ë¥Ñ¥¹¥ï¡¼¥É¤òÍ×µá(x86¤Ç¤Ï°ÕÌ£¤Ê¤·) | none |
security-password | ¥Ñ¥¹¥ï¡¼¥É(x86¤Ç¤Ï°ÕÌ£¤Ê¤·) | ""(¤Ê¤·) |
security-#badlogins | ¥Ñ¥¹¥ï¡¼¥É¤Î¼ºÇÔµöÍƲó¿ô(x86¤Ç¤Ï°ÕÌ£¤Ê¤·) | ""(¤Ê¤·) |
use-nvramrc? | true:¥Ö¡¼¥È»þ¤Ënvramrc¤ò¼Â¹Ô / false:¼Â¹Ô¤·¤Ê¤¤ | false |
nvramrc | ¥Ö¡¼¥È»þ¤Ë¼Â¹Ô¤¹¤ë¥¹¥¯¥ê¥×¥È | ""(¤Ê¤·) |
oem-banner? | true:¥Ö¡¼¥È»þ¤Ëoem-banner¤òɽ¼¨ / false:ɽ¼¨¤·¤Ê¤¤(SUN¤Î¥Ð¥Ê¡¼¤òɽ¼¨) | false |
oem-banner | ¥Ö¡¼¥È»þ¤Ëɽ¼¨¤¹¤ëOEM¥á¡¼¥«¡¼¤Î¥Ð¥Ê¡¼ | ""(¤Ê¤·) |
oem-logo? | true:¥Ö¡¼¥È»þ¤Ëoem-logo¤òɽ¼¨ / false:ɽ¼¨¤·¤Ê¤¤(SUN¤Îlogo¤òɽ¼¨) | false |
oem-logo | ¥Ö¡¼¥È»þ¤Ëɽ¼¨¤¹¤ëOEM¥á¡¼¥«¡¼¤Î¥í¥´(64x64Çò¹õ) | ""(¤Ê¤·) |
eeprom †
x86/x64 ¥Þ¥·¥ó¤Î Boot ¥×¥í¥»¥¹ †
BIOS ¤È MBR †
BIOS | Basic Input/Output System |
MBR | Master Boot Record |
mboot | MBR¤Ë¤¢¤ëpboot¤ò¥¥Ã¥¯¤¹¤ë¤¿¤á¤À¤±¤Î¥×¥í¥°¥é¥à |
pboot | Solaris¤Î¥Ö¡¼¥È¥×¥í¥°¥é¥à(Boot PROMÁêÅö) |
bootblk | ¥×¥é¥¤¥Þ¥ê¥Ö¡¼¥È¥×¥í¥°¥é¥à |
boot.bin(ufsboot) | ¥»¥«¥ó¥À¥ê¥Ö¡¼¥È¥×¥í¥°¥é¥à |
¥Ö¡¼¥È¥×¥í¥»¥¹ †
- ºÇ½é¤Ë¡¢x86 CPU¤Ï¡¢Ìµ¾ò·ï¤ËFFFF0h¤Ë¤¢¤ë¥¸¥ã¥ó¥×Ì¿Îá(BIOS¤ÎÀèƬÈÖÃÏ)¤ò¼Â¹Ô¤¹¤ë
- BIOS ¤Ï¡¢POST¤ò¼Â¹Ô¤·¤ÆÀܳ¤µ¤ì¤Æ¤¤¤ëµ¡´ï¤òÄ´¤Ù¤ë
- BIOS ¤Ï¡¢POST¤Ç¸«¤Ä¤«¤Ã¤¿¥×¥é¥¤¥Þ¥ê¥Ç¥£¥¹¥¯¤Î MBR ¤Ë³ÊǼ¤µ¤ì¤Æ¤¤¤ë mboot ¤ò¼Â¹Ô¤¹¤ë
- mboot ¤Ï¡¢¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¥Æ¡¼¥Ö¥ë¤òÄ´¤Ù¤Æ¥¢¥¯¥Æ¥£¥Ö¤Ê¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥Ö¡¼¥È¥»¥¯¥¿¤ÎÆâÍƤò¥á¥â¥ê¤ËÆɤ߹þ¤ó¤Ç¼Â¹Ô¤¹¤ë
- Solaris10¤Î¾ì¹ç¡¢pboot(Boot PROMÁêÅö)¤¬¼Â¹Ô¤µ¤ì¤ë¡£
- pboot¤Ï¡¢bootblk¤ò¼Â¹Ô¤¹¤ë
- bootblk¤Ï¡¢UFS(Unix File System)¤ò¥Þ¥¦¥ó¥È¤·¤Æ /boot.bin(ufsboot)¤ò¼Â¹Ô¤¹¤ë
- ¤³¤³¤Ç¡¢/etc/bootrc ¤¬¼Â¹Ô¤µ¤ì¡¢µ¯Æ°¥ª¥×¥·¥ç¥óÁªÂò²èÌ̤¬É½¼¨¤µ¤ì¤ë
- /boot.bin(ufsboot)¤Ï¡¢¥«¡¼¥Í¥ë¤Î½é´ü²½¤ò¹Ô¤¤¡¢/sbin/init¡¢/sbin/inittab¡¢/lib/svc/bin/svc.startd ¤ò¼Â¹Ô¤·¤Æ¥Ö¡¼¥È¥×¥í¥»¥¹½ªÎ»
¥Ö¡¼¥È´ØÏ¢¤Î¥Ñ¥é¥á¡¼¥¿ †
- Solris10µ¯Æ°¸å¤Ï¡¢¥Ñ¥é¡¼¥á¡¼¥¿¥Õ¥¡¥¤¥ëÎà¤Ï /boot ¤Ë¤¢¤ë¥Õ¥¡¥¤¥ë¤È¤·¤Æ¸«¤¨¤ë
- SPARC¥Þ¥·¥ó¤Î NVRAM ¤ËÁêÅö¤¹¤ë¥Ñ¥é¥á¡¼¥¿¥Õ¥¡¥¤¥ë¤Ï /boot/solaris/bootenv.rc
bash-3.00# cat /boot/solaris/bootenv.rc
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "@(#)bootenv.rc 1.33 07/03/03 SMI"
#
# bootenv.rc -- boot "environment variables"
#
setprop ata-dma-enabled 1
setprop atapi-cd-dma-enabled 0
setprop ttyb-rts-dtr-off false
setprop ttyb-ignore-cd true
setprop ttya-rts-dtr-off false
setprop ttya-ignore-cd true
setprop ttyb-mode 9600,8,n,1,-
setprop ttya-mode 9600,8,n,1,-
setprop lba-access-ok 1
setprop prealloc-chunk-size 0x2000
setprop bootpath /pci@0,0/pci15ad,1976@10/sd@0,0:a
setprop keyboard-layout 'US-English'
setprop console 'text'
- eeprom ¥³¥Þ¥ó¥É¤ÇÃͤòÊѹ¹¤Ç¤¤ë
¥Ç¥£¥¹¥×¥ì¥¤¤È¥¡¼¥Ü¡¼¥É¤Î¹½À® †
kdmconfig †
- CUI¥Ù¡¼¥¹¤Î¥Ç¥Ð¥¤¥¹¹½À®¥Ä¡¼¥ë
- ÊÔ½¸ÂоݤΥե¡¥¤¥ë
/etc/openwin/server/etc/OWconfig | x86¥Þ¥·¥ó¤Î¥¡¼¥Ü¡¼¥É¡¢¥Ç¥£¥¹¥×¥ì¥¤¡¢¥Þ¥¦¥¹¾ðÊó |
/etc/bootparams | ¥Ç¥£¥¹¥¯¥ì¥¹¥¯¥é¥¤¥¢¥ó¥È¤¬¥Ö¡¼¥È»þ¤Ë¥µ¡¼¥Ð¤«¤éÅϤµ¤ì¤ë¥¡¼¥Ü¡¼¥É¡¢¥Ç¥£¥¹¥×¥ì¥¤¡¢¥Þ¥¦¥¹¾ðÊó |
sysidcfg(System Identification Configuration) | ¥Ç¥£¥¹¥¯¥ì¥¹¥¯¥é¥¤¥¢¥ó¥È¤¬¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë»È¤¦¥¡¼¥Ü¡¼¥É¡¢¥Ç¥£¥¹¥×¥ì¥¤¡¢¥Þ¥¦¥¹¾ðÊó |
- ¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-c | /etc/openwin/server/etc/OWconfig¥Õ¥¡¥¤¥ë¤ÎÊÔ½¸¤ò¹Ô¤¦ |
-s <hostname> | /etc/bootparams¥Õ¥¡¥¤¥ë¤ÎÊÔ½¸¤ò¹Ô¤¦ |
-d <filename> | sysidcfg¥Õ¥¡¥¤¥ë¤ÎÊÔ½¸¤ò¹Ô¤¦ |
-f | ¶¯À©¼Â¹Ô¥â¡¼¥É(¥Í¥Ã¥È¥ï¡¼¥¯´Ä¶¤Î¸¡¾Ú¤ò¹Ô¤ï¤Ê¤¤) |
-t | ¥Æ¥¹¥È¥â¡¼¥É |
-u | ¹½À®²ò½ü |
-v | ¾éĹ¥â¡¼¥É |
¢¨¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Ê¤¤¤È -c ¤ò»ØÄꤷ¤¿¤Î¤ÈƱ¤¸¤Ë¤Ê¤ë
¤½¤Î¾¤Î¥Ç¥£¥¹¥×¥ì¥¤¤È¥¡¼¥Ü¡¼¥É¹½À®¥³¥Þ¥ó¥É †
- /usr/X11/bin/xorgconfig
- /usr/X11/bin/Xorg -configure
¥é¥ó¥ì¥Ù¥ë¤È¥·¥ã¥Ã¥È¥À¥¦¥ó †
- ¥é¥ó¥ì¥Ù¥ë¤Î¼ïÎà
| | ŽÌŽ§Ž²ŽÙŽ¼Ž½ŽÃŽÑ | ŽÏŽÙŽÁŽÕŽ°Ž»ŽÞ¡¡ | NFS ¡¡¡¡ | È÷¹Í |
0 | ¥Ñ¥ï¡¼¥À¥¦¥ó | ¡ß | ¡ß | ¡ß | ÅŸ»ÀÚÃǤ¬²Äǽ¤Ê¾õÂÖ |
S/s | ¥·¥ó¥°¥ë¥æ¡¼¥¶ | ¢¤ | ¡ß | ¡ß | |
1 | ¥·¥ó¥°¥ë¥æ¡¼¥¶´ÉÍý | ¡û | ¡ß | ¡ß | |
2 | ¥Þ¥ë¥Á¥æ¡¼¥¶ | ¡û | ¡û | ¡ß | |
3 | ¥Þ¥ë¥Á¥æ¡¼¥¶(with NFS) | ¡û | ¡û | ¡û | ¥Ç¥Õ¥©¥ë¥È¤Î¥é¥ó¥ì¥Ù¥ë |
4 | ¥ª¥ë¥¿¥Ê¥Æ¥£¥Ö ¥Þ¥ë¥Á¥æ¡¼¥¶ | ¡© | ¡© | ¡© | ̤ÄêµÁ |
5 | ¥Ñ¥ï¡¼¥À¥¦¥ó | ¡ß | ¡ß | ¡ß | (¥Ï¡¼¥É¥¦¥§¥¢¤¬Âбþ¤·¤Æ¤¤¤ì¤Ð)ÅŸ»ÀÚÃÇ |
6 | ¥ê¥Ö¡¼¥È | ¡ß | ¡ß | ¡ß | |
- ¥é¥ó¥ì¥Ù¥ë¤ÎÊѹ¹ÊýË¡
- Shutdown
/usr/sbin/halt | Run Level 0 ¤Ø°Ü¹Ô¡£Èó¿ä¾© |
/usr/sbin/poweroff | Run Level 5 ¤Ø°Ü¹Ô¡£Èó¿ä¾© |
/usr/sbin/init 5 | sync¤¹¤ë¡£Â¾¤Î¥æ¡¼¥¶¤Ø¤ÎÄÌÃÎ̵¤· |
/usr/sbin/shutdown -i5 -g0 -y | sync¤¹¤ë¡£wall¤Ç¡¢Â¾¤Î¥æ¡¼¥¶¤Ø¤ÎÄÌÃΤò¹Ô¤¦ |
- Reboot
/usr/sbin/reboot | Run Level 6 ¤Ø°Ê¹ß¡£Èó¿ä¾© |
/usr/sbin/init 6 | sync¤¹¤ë¡£Â¾¤Î¥æ¡¼¥¶¤Ø¤ÎÄÌÃÎ̵¤· |
/usr/sbin/shutdown -i6 -g0 -y | sync¤¹¤ë¡£wall¤Ç¡¢Â¾¤Î¥æ¡¼¥¶¤Ø¤ÎÄÌÃΤò¹Ô¤¦ |
- ¥é¥ó¥ì¥Ù¥ë¤Î¥×¥í¥ó¥×¥È
¥é¥ó¥ì¥Ù¥ë | SPARC | x86 |
0(¥Ñ¥ï¡¼¥À¥¦¥ó) | ok | (Ǥ°Õ¤Î¥¡¼¤ò²¡¤¹¤È¥ê¥Ö¡¼¥È) |
S(¥·¥ó¥°¥ë¥æ¡¼¥¶¥ì¥Ù¥ë) | # | # |
3(¥Þ¥ë¥Á¥æ¡¼¥¶¥ì¥Ù¥ë) | login: | login: |
- ¥é¥ó¥ì¥Ù¥ë¤Î³ÎǧÊýË¡
SMF †
- Solaris 10 ¤«¤éƳÆþ¤µ¤ì¤¿¥µ¡¼¥Ó¥¹(¾ïÃó¥×¥í¥°¥é¥à)´ÉÍýµ¡¹½¡£Service Management Facility
- ¥µ¡¼¥Ó¥¹¤Ï¡¢FMRI ¤Ç´ÉÍý¤µ¤ì¤ë
FMRI (Fault-Managed Resource Identifier) †
svcs (¥µ¡¼¥Ó¥¹¤Ë´Ø¤¹¤ë¾ðÊó¤òɽ¼¨¤¹¤ë) †
¥³¥Þ¥ó¥É | µ¡Ç½ |
svcs -\? | ¥³¥Þ¥ó¥É¥Ø¥ë¥× |
svcs -a | Á´¥µ¡¼¥Ó¥¹¤ÎÎóµó |
svcs -p [FMRI] | ¥µ¡¼¥Ó¥¹¤Î¥×¥í¥»¥¹¾ðÊó¤Îɽ¼¨ |
svcs -d [FMRI] | [FMRI]¤Ë°Í¸¤·¤Æ¤¤¤ë¥µ¡¼¥Ó¥¹¤òɽ¼¨ |
svcs -D [FMRI] | [FMRI]¤¬°Í¸¤·¤Æ¤¤¤ë¥µ¡¼¥Ó¥¹¤òɽ¼¨ |
svcs -l [FMRI] | [FMRI]¤ÎÀâÌÀ |
svcs -x [FMRI] | [FMRI]¤Î¥Þ¥Ë¥å¥¢¥ë¡¦¥í¥°¥Õ¥¡¥¤¥ë¤Î³ÊǼ¾ì½ê¡¢¾ã³²¾ðÊó¤Ê¤É |
svcadm (¥µ¡¼¥Ó¥¹¤Îµ¯Æ°¡¦Ää»ß) †
¥³¥Þ¥ó¥É | µ¡Ç½ |
svcadm -\? | ¥³¥Þ¥ó¥É¥Ø¥ë¥× |
svcadm enable [FMRI] | ¥µ¡¼¥Ó¥¹¤ò£Ï£Óµ¯Æ°»þ¤Ëµ¯Æ°¤¹¤ë¤è¤¦¤Ë¤¹¤ë |
svcadm enable -t [FMRI] | ¥µ¡¼¥Ó¥¹¤òº£²ó¤Ë¸Â¤êµ¯Æ°¤¹¤ë |
svcadm disable [FMRI] | ¥µ¡¼¥Ó¥¹¤ò£Ï£Óµ¯Æ°»þ¤Ëµ¯Æ°¤·¤Ê¤¤¤è¤¦¤Ë¤¹¤ë |
svcadm disable -t [FMRI] | ¥µ¡¼¥Ó¥¹¤òº£²ó¤Ë¸Â¤êÄä»ß¤¹¤ë |
svcadm restart [FMRI] | ¥µ¡¼¥Ó¥¹¤òºÆµ¯Æ°¤¹¤ë |
svcadm (¥µ¡¼¥Ó¥¹ÄêµÁ¤ÎÈÇ¿ô´ÉÍý) †
¥³¥Þ¥ó¥É | µ¡Ç½ |
svcadm mark -l degraded | ¥µ¡¼¥Ó¥¹ÄêµÁ¤ò¹±µ×Ū¤Ë degraded ¾õÂ֤˰ܹԤ¹¤ë |
svcadm mark -l maintenance | ¥µ¡¼¥Ó¥¹ÄêµÁ¤ò¹±µ×Ū¤Ë maintenance ¾õÂ֤˰ܹԤ¹¤ë |
svcadm mark -t degraded | ¥µ¡¼¥Ó¥¹ÄêµÁ¤òº£²ó¤Ë¸Â¤ê degraded ¾õÂ֤˰ܹԤ¹¤ë |
svcadm mark -t maintenance | ¥µ¡¼¥Ó¥¹ÄêµÁ¤òº£²ó¤Ë¸Â¤ê maintenance ¾õÂ֤˰ܹԤ¹¤ë |
svcadm clear [FMRI pattern] | mark¥µ¥Ö¥³¥Þ¥ó¥É¤Ç»ØÄꤷ¤¿¾õÂÖ¤ò¥¯¥ê¥¢¤·¡¢¥µ¡¼¥Ó¥¹¤òµ¯Æ°¤Ç¤¤ë¤è¤¦¤Ë¤¹¤ë |
svcadm (¥é¥ó¥ì¥Ù¥ë¤ÎÊѹ¹) †
¥³¥Þ¥ó¥É | µ¡Ç½ |
svcadm milestone [milestone_FMRI] | [FMRI]¤ò¥Þ¥¤¥ë¥¹¥È¡¼¥ó¤Ë°ÜÆ°¤¹¤ë(ºÆµ¯Æ±»þ¤Ë¤³¤Î¥µ¡¼¥Ó¥¹ÄêµÁ¤Ç¤Ïµ¯Æ°¤·¤Ê¤¤) |
svcadm milestone -d [milestone_FMRI] | [FMRI]¤ò¥Þ¥¤¥ë¥¹¥È¡¼¥ó¤Ë°ÜÆ°¤¹¤ë(ºÆµ¯Æ±»þ¤Ë¤³¤Î¥µ¡¼¥Ó¥¹ÄêµÁ¤Çµ¯Æ°¤¹¤ë) |
- milestone_FMRI ¤ËÀßÄê¤Ç¤¤ëÃÍ
milestone_FMRI | °ÜÆ°¤·¤¿Àè¤Î¾õÂÖ |
milestone/single-user | ¥é¥ó¥ì¥Ù¥ëS |
milestone/multi-user | ¥é¥ó¥ì¥Ù¥ë2 |
milestone/multi-user-server | ¥é¥ó¥ì¥Ù¥ë3 |
all | °ì»þŪ¤Ë disable/enable ¤Ë¤µ¤ì¤Æ¤¤¤ë¥µ¡¼¥Ó¥¹¤Î¾õÂÖ¤ò¸µ¤ËÌ᤹ |
none | ¥Þ¥¹¥¿¡¼¥ê¥¹¥¿¡¼¥¿(svc:/system/svc/restarter:default)°Ê³°¤ÎÁ´¤Æ¤Î¥µ¡¼¥Ó¥¹¤òÄä»ß¤¹¤ë |
svcprop (¥µ¡¼¥Ó¥¹¤ÎÀßÄêÆâÍƤÎɽ¼¨) †
¥³¥Þ¥ó¥É | µ¡Ç½ |
svcprop [FMRI] | [FMRI]¤ÎÀßÄêÆâÍƤòɽ¼¨¤¹¤ë |
svcprop -p name[/name] | name[/name]¤Ë¹çÃפ¹¤ë¥µ¡¼¥Ó¥¹¤ÎÀßÄêÆâÍƤòɽ¼¨¤¹¤ë |
svccfg (¥µ¡¼¥Ó¥¹ÄêµÁ¤Î¥¤¥ó¥Ý¡¼¥È¡¦¥¨¥¯¥¹¥Ý¡¼¥È) †
¥³¥Þ¥ó¥É | µ¡Ç½ |
svccfg export [FMRI] | ¥µ¡¼¥Ó¥¹¤ÎÀßÄê¾ðÊó(manifest)¤òɸ½à½ÐÎϤ˽ÐÎÏ |
svccfg import [manifest] | ¥µ¡¼¥Ó¥¹¤ÎÀßÄê¾ðÊó(manifest)¤òÅÐÏ¿ |
svccfg delete [FMRI] | ¥µ¡¼¥Ó¥¹¤ÎÀßÄê¾ðÊó¤òºï½ü(SMF´ÉÍý³°¤Ë¤Ê¤ë¡£¥Õ¥¡¥¤¥ë¼«ÂΤϾ䵤ì¤Ê¤¤) |
½¾Íè¤Î¥µ¡¼¥Ó¥¹ÄêµÁ¤È¤Î¸ß´¹À †
¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à †
ʪÍý¥Ö¥í¥Ã¥¯¤ÈÏÀÍý¥Ö¥í¥Ã¥¯ †
¥Ö¥í¥Ã¥¯¤Î¼ïÎà †
¥Ö¥í¥Ã¥¯¤Î¼ïÎà | ³ÊǼ¾ðÊó |
¥Ö¡¼¥È¥Ö¥í¥Ã¥¯ | ¥·¥¹¥Æ¥à¤Î¥Ö¡¼¥ÈÍѾðÊó¤ò³ÊǼ |
¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯ | ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë´Ø¤¹¤ë¾ðÊó¤ò³ÊǼ |
i-node | ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÃæ¤Î¥Õ¥¡¥¤¥ë¤Ë´Ø¤¹¤ë¾ðÊó¤ò³ÊǼ |
¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯ | ¥Õ¥¡¥¤¥ë¤Î¥Ç¡¼¥¿¤ò³ÊǼ |
i-node †
- ¥Õ¥¡¥¤¥ë̾¤Ï¡¢¥Ç¥£¥ì¥¯¥È¥ê(¤³¤ì¤â¥Õ¥¡¥¤¥ë)¤Ë³ÊǼ¤µ¤ì¤Æ¤¤¤ë
¼ç¤Ê¥Ç¥£¥ì¥¯¥È¥ê †
/ | UFS | ¥ë¡¼¥È¡£¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É¤Ç»È¤¦¥³¥Þ¥ó¥É¤ÏÎ㳰Ū¤Ë / ¤Ë¤¢¤ë(mount¤Ê¤É) |
/sbin | UFS | ¥·¥¹¥Æ¥à´ÉÍý¥³¥Þ¥ó¥É¡£/usr ¤è¤ê¤âÁ°¤Ë¥Þ¥¦¥ó¥È¤µ¤ì¤ë |
/usr | UFS | ¥æ¡¼¥¶¤Ç¶¦Í¤¹¤ë¥Õ¥¡¥¤¥ë¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó |
/bin -> /usr/bin |
/dev | devfs | ¥Ç¥Ð¥¤¥¹¥Õ¥¡¥¤¥ë |
/device |
/lib | UFS | SMF¤Î¼Â¹Ô¥Õ¥¡¥¤¥ë¤ä¶¦Í¥é¥¤¥Ö¥é¥ê |
/etc | UFS | ´ÉÍý¤ª¤è¤Ó¹½À®ÍÑ¥Õ¥¡¥¤¥ë |
/export/home | NFS,UFS | ¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê |
/home |
/mnt | | ³°Éô¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ê¤É¤Î¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È |
/var | UFS | ¥·¥¹¥Æ¥à¥í¥°¤Ê¤É¤ò³ÊǼ |
/var/run | TEMPFS | °ì»þ¥Õ¥¡¥¤¥ëÎΰ衣°ì»þ¥Õ¥¡¥¤¥ëÎΰè¤Ï2¤Ä¤¢¤ë¤³¤È¤ËÃí°Õ! |
/tmp | TEMPFS | °ì»þ¥Õ¥¡¥¤¥ëÎΰè |
/opt | NFS,UFS | ¥µ¡¼¥É¥Ñ¡¼¥Æ¥£À½¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó |
/etc/mnttab | MNTFS | ¥Ç¥Ð¥¤¥¹¤Î¥Þ¥¦¥ó¥È¾ðÊó¤ò³ÊǼ¤¹¤ë |
/proc | PROCFS | ¥×¥í¥»¥¹¤Î¼Â¹Ô¾ðÊó¤ò³ÊǼ¤¹¤ë |
/system/contract | CTFS | Contract(·ÀÌó)¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à |
/system/object | OBJFS | ¥Ç¥Ð¥Ã¥¯¾ðÊó |
¥Ï¡¼¥É¥ê¥ó¥¯¤È¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯ †
¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î·Á¼° †
UFS¤ÎÆÃħ †
- EFT(Extended Fundamental Types)
- 32bit¤ÎUID(User ID)¡¢GID(Group ID)¡¢¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤ò»È¤¨¤ë
- ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º
| ¥é¡¼¥¸¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à | ¥Þ¥ë¥Á¥Æ¥é¥Ð¥¤¥È¥·¥¹¥Æ¥à |
32bit | Á´1TB / 1¥Õ¥¡¥¤¥ëºÇÂç2GB | ¡ß |
64bit | Á´16TB/1¥Õ¥¡¥¤¥ëºÇÂç1TB |
- ¥í¥®¥ó¥°
- ¾õÂ֥ե饰
¾õÂ֥ե饰 | °ÕÌ£ |
FSACTIVE | ¥á¥â¥êÃæ¤Ë£È£Ä£Ä¤Ë̤ȿ±Ç¤Ê¥Ç¡¼¥¿¤¬¤¢¤ë¡£º£ÅŸ»¤òÀÚ¤é¤ì¤ë¤ÈÉÔÀ°¹ç¤¬È¯À¸¤¹¤ë²ÄǽÀ¤¬¤¢¤ë |
FSBAD | ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ËÉÔÀ°¹ç¤¬È¯À¸¤·¤Æ¤¤¤ë |
FSCLEAN | Àµ¾ï¤Ë¥¢¥ó¥Þ¥¦¥ó¥ÈºÑ¤ß |
FSLOG | ¥í¥®¥ó¥°¤¬Í¸ú¤Ç¤¢¤ë |
FSSTABLE | ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎÀ°¹çÀ¤¬°Ý»ý¤µ¤ì¤Æ¤¤¤ë¡£º£ÅŸ»¤òÀÚ¤é¤ì¤Æ¤âÉÔÀ°¹ç¤ÏȯÀ¸¤·¤Ê¤¤ |
newfs †
¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºîÀ®¤¹¤ë¥³¥Þ¥ó¥É
newfs [-NSBTv] [mkfs-options] raw-device
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
NSB | ¼Â¹Ô·ë²Ì¥ì¥Ý¡¼¥È¤Î½ÐÎÏ¥ª¥×¥·¥ç¥ó |
T | ¥Æ¥é¥Ð¥¤¥È¤òĶ¤¨¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºî¤ë¤È¤¤Ë»ØÄꤹ¤ë |
v | ¾ÜºÙ¥í¥°¤ò½ÐÎÏ |
¼Â¹ÔÎã:
# newfs /dev/rdsk/<deviceName>
fsck †
¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¸¡ºº¡¿½¤Éü¤¹¤ë¥³¥Þ¥ó¥É
fsck [-F <FSType>] [-m] [-n|N] [-y|Y] [<rawDevice>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-F <FSType> | ¸¡ººÂоݤò<FSType>¤Ç»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¸ÂÄꤹ¤ë |
-m | ¸¡ºº¤À¤±¤ò¹Ô¤¤½¤Éü¤ò¹Ô¤ï¤Ê¤¤ |
-n(or N) | fsck¼Â¹Ô»þ¤Ë½Ð¤µ¤ì¤ëÁ´¤Æ¤Î¼ÁÌä¤Ë¼«Æ°Åª¤Ë no ¤È²óÅú¤¹¤ë |
-y(or Y) | fsck¼Â¹Ô»þ¤Ë½Ð¤µ¤ì¤ëÁ´¤Æ¤Î¼ÁÌä¤Ë¼«Æ°Åª¤Ë yes ¤È²óÅú¤¹¤ë |
<rawDevice> | /dev/rdsk¤Ë¤¢¤ë¥Ç¥Ð¥¤¥¹Ì¾¡£»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï /etc/vfstab ¤ËµºÜ¤µ¤ì¤Æ¤¤¤ë¥Ç¥Ð¥¤¥¹¤ÎÆâ¡¢fsck pass ¥Õ¥£¡¼¥ë¥É¤ÎÃͤ¬ 0 °Ê¾å¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÁ´¤Æ¸¡ºº¤¹¤ë |
df †
¥Õ¥¡¥¤¥ë¤Î»ÈÍѺѤߡ¦¶õ¤ÍÆÎ̤ò½ÐÎϤ¹¤ë
df [-F <FSType>] [-abkt] [<fileSystem>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-F <FSType> | »ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥¿¥¤¥×¤Î¤ßɽ¼¨ |
-a | Á´¤Æ¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥ì¥Ý¡¼¥È¤µ¤»¤ë |
-b | »ÈÍѲÄǽÍÆÎ̤Τߤò¥¥í¥Ð¥¤¥Èñ°Ì¤Çɽ¼¨¤µ¤»¤ë |
-k | ¥Ç¥£¥¹¥¯¥¹¥Ú¡¼¥¹¤Î»ÈÍѾõ¶·¤ò¥¥í¥Ð¥¤¥Èñ°Ì¤Çɽ¼¨¤µ¤»¤ë(bt¤è¤êÍ¥À褵¤ì¤ë) |
-t | ¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë³Æ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Ç¥Ð¥¤¥¹¡¢»ÈÍѤµ¤ì¤Æ¤¤¤ë¥Ö¥í¥Ã¥¯¤Î¹ç·×¿ô¡¢¥Õ¥¡¥¤¥ë¿ô¤òɽ¼¨¤µ¤»¤ë |
bash-3.00# df -k
¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à kbytes »ÈÍÑºÑ¤ß »ÈÍѲÄǽ ÍÆÎÌ ¥Þ¥¦¥ó¥ÈÀè
/dev/dsk/c1t0d0s0 5712126 4056787 1598218 72% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 869064 920 868144 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
sharefs 0 0 0 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
5712126 4056787 1598218 72% /lib/libc.so.1
fd 0 0 0 0% /dev/fd
swap 868220 76 868144 1% /tmp
swap 868180 36 868144 1% /var/run
/dev/dsk/c1t0d0s7 1990255 2025 1928523 1% /export/home
/hgfs 16777215 4096 16772864 1% /hgfs
/tmp/VMwareDnD 0 0 0 0% /var/run/vmblock
du †
¥Ç¥£¥ì¥¯¥È¥ê¤ä¥Õ¥¡¥¤¥ë¤ÎÀêͤ¹¤ë¥Ç¥£¥¹¥¯¥¹¥Ú¡¼¥¹¤ò³Îǧ¤¹¤ë
du [-ahks] [<file>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-a | »ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥êÆâ¤ÎÁ´¤Æ¤Î¥Õ¥¡¥¤¥ë¤È¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤Î¥µ¥¤¥º¤ª¤è¤Ó¹ç·×¥Ö¥í¥Ã¥¯¿ô¤ò½ÐÎϤ¹¤ë |
-h | ¿Í´Ö¤Ë¤È¤Ã¤Æ²ÄÆÉÀ¤Î¹â¤¤Ã±°Ì¤Ç½ÐÎϤ¹¤ë(KB,MB,GB) |
-k | »ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥êÆâ¤ÎÁ´¤Æ¤Î¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤Î¥µ¥¤¥º¤ª¤è¤Ó¹ç·×¥Ö¥í¥Ã¥¯¿ô¤ò½ÐÎϤ¹¤ë |
-s | »ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥ì¥¯¥È¥ê¤Î¥µ¥¤¥º¤Î¤ß¤ò½ÐÎϤ¹¤ë |
<file> | ³ÎǧÂоݤΥե¡¥¤¥ë¡£¾Êά»þ¤Ï"."(¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê) |
$bash-3.00# du -hk /boot/
38K /boot/solaris/bin
30K /boot/solaris/devicedb
1K /boot/solaris/drivers/isa.025
1K /boot/solaris/drivers/isa.125
1K /boot/solaris/drivers/isa.150
1K /boot/solaris/drivers/isa.162
44K /boot/solaris/drivers/isa.175
1K /boot/solaris/drivers/notisa.010
1K /boot/solaris/drivers/notisa.020
51K /boot/solaris/drivers
1K /boot/solaris/machines
213K /boot/solaris
1K /boot/acpi/tables
2K /boot/acpi
1K /boot/rc.d
377K /boot/grub/bin
1K /boot/grub/bootsign
1.1M /boot/grub
1K /boot/platform/i86pc/kernel
2K /boot/platform/i86pc
3K /boot/platform
77M /boot
quot †
¥æ¡¼¥¶¤´¤È¤ÎÀêͤ¹¤ë¥Ç¥£¥¹¥¯¥¹¥Ú¡¼¥¹¤ò³Îǧ¤¹¤ë
quot [-afv] [<fileSystem>+]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-a | Á´¤Æ¤Î¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÂоݤȤ¹¤ë |
-f | »ÈÍѺѤߥ֥í¥Ã¥¯(KB)¡¢½êÍ¥Õ¥¡¥¤¥ë̾¡¢¥æ¡¼¥¶Ì¾¤ò½ÐÎϤ¹¤ë |
-v | ²áµî30Æü¡¢60Æü¡¢90Æü´Ö¤Ë¥¢¥¯¥»¥¹¤µ¤ì¤Ê¤«¤Ã¤¿¥Ö¥í¥Ã¥¯¤¹¤ë¤òɽ¼¨¤¹¤ë |
<fileSystem> | ÂоݤȤ¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à |
bash-3.00# quot -afv
/dev/rdsk/c1t0d0s0 (/):
4049860 184780 root 2743812 2743787 2743787
754 44 uucp 735 735 735
304 124 bin 304 304 304
114 3 svctag 0 0 0
23 16 noaccess 0 0 0
20 10 adm 0 0 0
13 13 lp 0 0 0
8 8 postgres 0 0 0
7 11 nobody 0 0 0
6 6 daemon 0 0 0
2 2 gdm 0 0 0
2 2 smmsp 0 0 0
2 2 webservd 0 0 0
/dev/rdsk/c1t0d0s7 (/export/home):
9 2 root 0 0 0
¥Ç¥Ð¥¤¥¹´ÉÍý †
ʪÍý¥Ç¥Ð¥¤¥¹Ì¾¡¢¥¤¥ó¥¹¥¿¥ó¥¹Ì¾¡¢ÏÀÍý¥Ç¥Ð¥¤¥¹Ì¾ †
ÏÀÍý¥Ç¥Ð¥¤¥¹Ì¾ | /devices SolarisÆȼ«¤Î¥Ç¥Ð¥¤¥¹¥Õ¥¡¥¤¥ë |
¥¤¥ó¥¹¥¿¥ó¥¹Ì¾ | ¥«¡¼¥Í¥ë¤ÎºîÀ®¤¹¤ë¥Ç¥Ð¥¤¥¹¤Îû½Ì̾ |
ÏÀÍý¥Ç¥Ð¥¤¥¹Ì¾ | /dev ½¾Íè¤ÎUnix¤È¸ß´¹¤Ê¥Ç¥Ð¥¤¥¹¥Õ¥¡¥¤¥ë¡£/devices ¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£Ä̾異¥×¥ê¥±¡¼¥·¥ç¥ó¤Ï¤³¤Á¤é¤ò»È¤¦ |
¥Ç¥Ð¥¤¥¹¤Î¥Ç¥Ð¥¤¥¹Ì¾¤ò³Îǧ¤¹¤ë¥³¥Þ¥ó¥É †
¥³¥Þ¥ó¥É | ³µÍ× | ʪÍýŽÃŽÞŽÊŽÞŽ²Ž½Ì¾ | Ž²ŽÝŽ½ŽÀŽÝŽ½Ì¾ | ʪÍý<->Ž²ŽÝŽ½ŽÀŽÝŽ½Âбþ |
dmesg | Ž¼Ž½ŽÃŽÑŽÊŽÞŽ¯ŽÌŽ§¤Ë¤¢¤ëŽÊŽ°ŽÄŽÞŽ³ŽªŽ±¿ÇÃǵϿ¤òɽ¼¨¤¹¤ë | ¡û | ¡û | ¡û |
format | ¥Ç¥£¥¹¥¯¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î´ÉÍý | ¡û | ¡ß | ¡ß |
prtconf | ¥·¥¹¥Æ¥à¹½À®¤òɽ¼¨¤¹¤ë | ¡û | ¡û | ¡ß |
sysdef | ¥·¥¹¥Æ¥àÄêµÁ¤òɽ¼¨¤¹¤ë | ¡û | ¡û | ¡ß |
less /etc/path_to_inst | ¡ß | ¡û | ¡û |
dmesg †
¥·¥¹¥Æ¥à¥Ð¥Ã¥Õ¥¡¤Ë¤¢¤ë¥Ï¡¼¥É¥¦¥§¥¢¿ÇÃǵϿ¤òɽ¼¨¤¹¤ë
bash-3.00# dmesg | more
2009ǯ02·î25Æü (¿å) 20»þ52ʬ31Éà JST
Feb 25 20:49:40 solamame pseudo: [ID 129642 kern.info] pseudo-device: ppm0
Feb 25 20:49:40 solamame genunix: [ID 936769 kern.info] ppm0 is /pseudo/ppm@0
Feb 25 20:49:40 solamame rootnex: [ID 349649 kern.info] npe0 at root: space 0 offset 0
Feb 25 20:49:40 solamame genunix: [ID 936769 kern.info] npe0 is /pci@0,0
Feb 25 20:49:40 solamame scsi: [ID 365881 kern.info] /pci@0,0/pci15ad,1976@10 (mpt0):
Feb 25 20:49:40 solamame Rev. 1 LSI, Inc. 1030 found.
Feb 25 20:49:40 solamame pcplusmp: [ID 637496 kern.info] pcplusmp: pci1000,30 (mpt) instance 0 vector 0x11
ioapic 0x1 intin 0x11 is bound to cpu 0
Feb 25 20:49:40 solamame scsi: [ID 365881 kern.info] /pci@0,0/pci15ad,1976@10 (mpt0):
Feb 25 20:49:40 solamame mpt0 Firmware version v0.0.0.0 (?)
Feb 25 20:49:40 solamame scsi: [ID 365881 kern.info] /pci@0,0/pci15ad,1976@10 (mpt0):
Feb 25 20:49:40 solamame mpt0: IOC Operational.
Feb 25 20:49:40 solamame npe: [ID 236367 kern.info] PCI Express-device: pci15ad,1976@10, mpt0
Feb 25 20:49:40 solamame genunix: [ID 936769 kern.info] mpt0 is /pci@0,0/pci15ad,1976@10
-- ·Ñ³ --
prtconf †
¥·¥¹¥Æ¥à¹½À®¤òɽ¼¨¤¹¤ë
/usr/sbin/prtconf [-a] [-c] [-v] [V] [-x] [<devPath>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-a | <devPath>¤Ç»ØÄꤷ¤¿¥Ç¥Ð¥¤¥¹¤ÎÁÄÀè¥Î¡¼¥É¤òÁ´¤Æɽ¼¨¤¹¤ë |
-c | <devPath>¤Ç»ØÄꤷ¤¿¥Ç¥Ð¥¤¥¹¤Î»Ò¹¥Î¡¼¥É¤òÁ´¤Æɽ¼¨¤¹¤ë |
-v | ¾ÜºÙ¥í¥°¤òɽ¼¨ |
-V | SPARC:Open Boot PROM ¤ÎÀßÄê¾ðÊó¤òɽ¼¨¡¢x86:pboot ¤ÎÀßÄê¾ðÊó¤òɽ¼¨ |
-x | ¥·¥¹¥Æ¥à¤¬64bit¤ËÂбþ¤·¤Æ¤¤¤ë¤«¤òɽ¼¨¤¹¤ë |
bash-3.00# /usr/sbin/prtconf | more
System Configuration: Sun Microsystems i86pc
Memory size: 1024 Megabytes
System Peripherals (Software Nodes):
i86pc
scsi_vhci, instance #0
isa, instance #0
i8042, instance #0
keyboard, instance #0
mouse, instance #0
lp, instance #0
asy, instance #0
asy, instance #1
fdc, instance #0
-- ·Ñ³ --
less /etc/path_to_inst †
¥Ç¥Ð¥¤¥¹¤Î¥Ç¥Ð¥¤¥¹Ì¾¤òÄêµÁ¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¡£OS¤¬»È¤Ã¤Æ¤¤¤ë¤Î¤ÇÊѤ¨¤Á¤ã¤À¤á
bash-3.00# cat -n /etc/path_to_inst | more
1 #
2 # Caution! This file contains critical kernel state
3 #
4 "/iscsi" 0 "iscsi"
5 "/pseudo" 0 "pseudo"
6 "/options" 0 "options"
7 "/xsvc" 0 "xsvc"
8 "/objmgr" 0 "objmgr"
9 "/scsi_vhci" 0 "scsi_vhci"
10 "/isa" 0 "isa"
11 "/isa/i8042@1,60" 0 "i8042"
12 "/isa/i8042@1,60/keyboard@0" 0 "kb8042"
13 "/isa/i8042@1,60/mouse@1" 0 "mouse8042"
14 "/isa/lp@1,378" 0 "ecpp"
15 "/isa/asy@1,3f8" 0 "asy"
-- ·Ñ³ --
¥Ç¥Ð¥¤¥¹¤ÎºÆ¹½ÃÛ †
ºÆµ¯Æ°¤·¤Æ¥Ç¥Ð¥¤¥¹¥Ä¥ê¡¼¤òºÆ¹½ÃÛ¤¹¤ë †
bash-3.00# touch /reconfigure
bash-3.00# /usr/sbin/shutdown -i6 -g0 -y
- Solaris ¤Ï¡¢µ¯Æ°»þ¤Ë /reconfigure ¤¬¤¢¤ë¤È¡¢¥Ï¡¼¥É¥¦¥§¥¢¹½À®¤Î¸«Ä¾¤·¤ò¹Ô¤¦¡£
- /reconfigure ¥Õ¥¡¥¤¥ë¤Ï¡¢¥ê¥Ö¡¼¥È»þ¤Ëºï½ü¤µ¤ì¤ë¡£
²ÔƯÃæ¤Ë¥Ç¥Ð¥¤¥¹¥Ä¥ê¡¼¤òºÆ¹½ÃÛ¤¹¤ë †
/usr/sbin/devfsadm [-c <deviceClass>]* [-C] [-i <driverName>]* [-n] [-s] [-v]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-c <deviceClass> | ÁàºîÂоݤΥǥХ¤¥¹¤ò <deviceClass> ¤ËÀ©¸Â¤¹¤ë¡£deviecClass = {disk,tape,port,audio,pseudo} |
-C | Cleanup¡£/dev ¤Î¥ê¥ó¥¯ÀÚ¤ì¥Õ¥¡¥¤¥ë¤òºï½ü¤¹¤ë |
-i <driverName> | Æɤ߹þ¤à¥É¥é¥¤¥Ð¤ò <driverName> ¤ËÀ©¸Â¤¹¤ë |
-n | ¥É¥é¥¤¥Ð¤ÎÆɤ߹þ¤ß¤ª¤è¤Ó¿·µ¬¥Ç¥Ð¥¤¥¹(¿·µ¬¥Î¡¼¥É¤Î¥Ç¥Ð¥¤¥¹¥Ä¥ê¡¼)¤ÎÄɲäò¹Ô¤ï¤Ê¤¤ |
-s | /dev ¤Ø¤ÎÊѹ¹¤ò¹Ô¤ï¤Ê¤¤ |
-v | ¾ÜºÙ¥í¥°¤ò½ÐÎϤ¹¤ë |
bash-3.00# /usr/sbin/devfsadm -c tape
- /device ¤¬Êѹ¹¤µ¤ì¤ë
- /dev (¤Î¥ê¥ó¥¯)¤¬Êѹ¹¤µ¤ì¤ë
- /etc/path_to_inst ¥Õ¥¡¥¤¥ë¤¬½ñ¤´¹¤¨¤é¤ì¤ë
¥Ç¥£¥¹¥¯¥Ç¥Ð¥¤¥¹ †
¥Ç¥£¥¹¥¯¤ÎÏÀÍý¥Ç¥Ð¥¤¥¹Ì¾ †
¥×¥é¥Ã¥È¥Û¡¼¥à | ¥Ç¥Ð¥¤¥¹ | ̿̾ˡ | Îã |
SPARC | block¥Ç¥Ð¥¤¥¹ | /dev/ dsk/c(k)t(l)d(m)s(n) | /dev/ dsk/c0t0d0s0 |
raw¥Ç¥Ð¥¤¥¹ | /dev/rdsk/c(k)t(l)d(m)s(n) | /dev/rdsk/c0t0d0s0 |
X86 | block¥Ç¥Ð¥¤¥¹ | /dev/ dsk/c(k)__d(m)s(n) | /dev/ dsk/c0d0s0 |
raw¥Ç¥Ð¥¤¥¹ | /dev/rdsk/c(k)__d(m)s(n) | /dev/rdsk/c0d0s0 |
- c(k) : ÏÀÍý¥³¥ó¥È¥í¡¼¥éÈÖ¹æ
- t(l) : ÏÀÍý¥Ð¥¹¥¿¡¼¥²¥Ã¥ÈÈÖ¹æ
- d(m) : ¥É¥é¥¤¥ÖÈÖ¹æ
- s(n) : ¥¹¥é¥¤¥¹ÈÖ¹æ
SPARC¥×¥é¥Ã¥È¥Û¡¼¥à¤Èx86¥×¥é¥Ã¥È¥Û¡¼¥à¤Î¥Ç¥£¥¹¥¯¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î°ã¤¤ †
¥×¥é¥Ã¥È¥Û¡¼¥à | ¥Ç¥£¥¹¥¯¥Ñ¡¼¥Æ¥£¥·¥ç¥ó |
SPARC | ¥Ç¥£¥¹¥¯Á´ÂΤò Solaris ¤Ë»È¤¦ |
x86 | ºÇÂç 4 ¤Ä¤Î FDISK ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºî¤ê¡¢¤½¤ì¤¾¤ìÊ̤ΠOS ¤ò¥¤¥ó¥¹¥È¡¼¥ë²Äǽ |
¥Ç¥£¥¹¥¯¥é¥Ù¥ë †
- ¥Ç¥£¥¹¥¯¥é¥Ù¥ë : Äã¥ì¥Ù¥ë¥Õ¥©¡¼¥Þ¥Ã¥È¤Î·Á¼°
- ¥Ç¥£¥¹¥¯¥é¥Ù¥ë·Á¼°
·Á¼° | ³µÍ× |
SMI(VTOC) Label | ÈÆÍÑ¥³¥ó¥Ô¥å¡¼¥¿¤Îή¤ì¤ò¼õ¤±·Ñ¤°µìÍè¤Î¥Ç¥£¥¹¥¯¥é¥Ù¥ë(Volume Table of Contents)¡£SMI¤Ï¡¢Sun MIcrosystems¤Îά? |
EFI | 64bit´Ä¶¤Ç¤Ï1TB¤òĶ¤¨¤ë¥Ç¥£¥¹¥¯¤ò°·¤¨¤ë¤è¤¦¤Ë¤·¤¿¿·¤·¤¤¥Ç¥£¥¹¥¯¥é¥Ù¥ë(32bit´Ä¶¤Ç¤Ï1TB¤Þ¤Ç) |
- ¥¹¥é¥¤¥¹¹½À®
¥¹¥é¥¤¥¹ÈÖ¹æ | SMI | EFI | ³ä¤êÅö¤Æ¤é¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê(Îã)¡¢È÷¹Í |
SPARC | x86 | SPARC | x86 |
| | 0¡Á33¥»¥¯¥¿¤ËEFI¥é¥Ù¥ë¤ò³ÊǼ | |
0 | VTOC¥é¥Ù¥ë | (Ǥ°Õ¤ËÍøÍѲÄǽ) | / (EFI¤Î0ÈÖ¥¹¥é¥¤¥¹¤Ï34¥»¥¯¥¿¤«¤é) |
1 | | | | | /swap |
2 | ¥Ç¥£¥¹¥¯Á´Âλ²¾ÈÍÑ | (Ǥ°Õ¤ËÍøÍѲÄǽ) | |
3 | | | | | /export |
4 | | | | | |
5 | | | | | /opt |
6 | | | | | /usr |
7 | | | ***** ¤Ê¤· ***** | ***** ¤Ê¤· ***** | /home |
8 | ***** ¤Ê¤· ***** | bootblk(GRUB) | EFIͽÌóÎΰè | |
9 | ***** ¤Ê¤· ***** | ÂåÂØŽ¾Ž¸ŽÀŽ½Ž×Ž²Ž½ | ***** ¤Ê¤· ***** | ***** ¤Ê¤· ***** | |
- EFI ¤È MSI(VTOC) ¥é¥Ù¥ë¤Î°ã¤¤
- EFI ¥é¥Ù¥ë¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤«¤é¤Ï¡¢boot ¤Ç¤¤Ê¤¤
- EFI ¤Ç¤Ï¡¢1TB °Ê¾å¤Î¥Ç¥£¥¹¥¯¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë
- EFI ¤Ç¤Ï¡¢¥Ç¥£¥¹¥¯¤ÎÀèƬ 34 ¥»¥¯¥¿(0ÈÖ¥»¥¯¥¿¡Á33ÈÖ¥»¥¯¥¿)¤Ë¡¢EFI ¥é¥Ù¥ë¤¬³ÊǼ¤µ¤ì¤Æ¤¤¤ë
- 0ÈÖ¥¹¥é¥¤¥¹¤Ï¡¢34ÈÖ¥»¥¯¥¿¤«¤é»Ï¤Þ¤ë
- EFI ¤Ç¤Ï¡¢¥Ç¥£¥¹¥¯¤ÎºÇ¸å 2 ¥·¥ê¥ó¥À(EFIͽÌóÎΰè)¤Ë¥Ç¥£¥¹¥¯¹½À®¾ðÊ󤬳ÊǼ¤µ¤ì¤ë¡£¤³¤ÎÎΰè¤Ï Âè 8 ¥¹¥é¥¤¥¹¤È¤·¤Æ³ä¤êÅö¤Æ¤é¤ì¤Æ¤ë
- EFI ¥é¥Ù¥ë¤Ë¤Ï¡¢¥·¥ê¥ó¥À¡¦¥Ø¥Ã¥À¡¦¥»¥¯¥¿¤Î¾ðÊó¤Ï´Þ¤Þ¤ì¤Ê¤¤
- EFI ¤Ç¤Ï¡¢¥ì¥Ý¡¼¥È¤µ¤ì¤ë¥µ¥¤¥º¤Ï¥Ö¥í¥Ã¥¯Ã±°Ì
format †
¥Ç¥£¥¹¥¯¤òÁýÀߤ·¤¿¤È¤¤Ë¡¢Äã¥ì¥Ù¥ë¥Õ¥©¡¼¥Þ¥Ã¥È¤ò¹Ô¤¦¥æ¡¼¥Æ¥£¥ê¥Æ¥£
format [-d <deviceName>] [-f <commandFile>] [-l <logfile>] [-m] [-M] [-s]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-d <deviceName> | format¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Î¥«¥ì¥ó¥È¥Ç¥£¥¹¥¯ |
-f <commandFile> | format¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ø¤Î¥³¥Þ¥ó¥ÉÆþÎϤòɸ½àÆþÎϤ«¤é¤Ç¤Ï¤Ê¤¯¡¢command file ¤«¤é¹Ô¤¦¤è¤¦¤Ë¤¹¤ë |
-l <logfile> | log¥Õ¥¡¥¤¥ë |
-m | ¾ÜºÙ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸ |
-M | ¾ÜºÙ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¡¡¡Ü¡¡¿ÇÃÇ¥á¥Ã¥»¡¼¥¸ |
-s | format¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Î½ÐÎϤò¾Êά¤¹¤ë |
bash-3.00# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <DEFAULT cyl 4092 alt 2 hd 128 sec 32>
/pci@0,0/pci15ad,1976@10/sd@0,0
Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]
Warning: Current Disk has mounted partitions.
/dev/dsk/c1t0d0s0 is currently mounted on /. Please see umount(1M).
/dev/dsk/c1t0d0s1 is currently used by swap. Please see swap(1M).
/dev/dsk/c1t0d0s7 is currently mounted on /export/home. Please see umount(1M).
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format>
partition †
format> partition
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> print
Current partition table (original):
Total disk cylinders available: 4092 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 1259 - 4091 5.53GB (2833/0/0) 11603968
1 swap wu 1 - 256 512.00MB (256/0/0) 1048576
2 backup wm 0 - 4091 7.99GB (4092/0/0) 16760832
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 home wm 257 - 1258 1.96GB (1002/0/0) 4104192
8 boot wu 0 - 0 2.00MB (1/0/0) 4096
9 unassigned wm 0 0 (0/0/0) 0
partition>
- 0¥Ð¥¤¥È¤Î¥¹¥é¥¤¥¹¤òºî¤ë¤³¤È¤â¤Ç¤¤ë (unassigned ¥¿¥°¤¬³ä¤êÉÕ¤±¤é¤ì¤ë)
- 0¥Ð¥¤¥È°Ê¾å¤Î¥¹¥é¥¤¥¹¤Ë unassigned ¥¿¥°¤Ï¤Ä¤±¤é¤ì¤Ê¤¤
modify †
- ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òʬ³ä¤ò³Ú¤Ë¤Ç¤¤ë¤è¤¦¤Ë¤·¤¿¥Ä¡¼¥ë
- ÍÆÎÌ»ØÄê¤Ç¥Ñ¡¼¥Æ¥£¥·¥ç¥óʬ³ä¤¬¤Ç¤¤ë¡Ê¥·¥ê¥ó¥À¶³¦¤ò¹Íθ¤·¤Ê¤¯¤Æ¤âÎɤ¤¡Ë
- ̤³äÅöÎΰè¤ò modify ¥³¥Þ¥ó¥ÉÆâ¤Î²¾ÁÛŪ¤Ê hog ¥¹¥é¥¤¥¹¤È¤·¤Æ°·¤¦
- mount ¤·¤Æ¤¤¤ëÎΰè¤Ç¤Ï»È¤¨¤Ê¤¤
inquiry †
format> inquiry
Vendor: VMware,
Product: VMware Virtual S
Revision: 1.0
¥Ç¥£¥¹¥¯¤Î¾ÜºÙ¾ðÊó¤¬É½¼¨¤µ¤ì¤ë
/etc/format.dat †
/etc/format.dat ¤Ë format ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ç»ÈÍѲÄǽ¤Ê»öÁ°ÄêµÁ¤µ¤ì¤¿¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¥Æ¡¼¥Ö¥ë¤Î¥ê¥¹¥È¤¬³ÊǼ¤µ¤ì¤Æ¤¤¤ë
disk_type = "Quantum ProDrive 80S" \
: ctlr = SCSI : fmt_time = 1 \
: cache = 0x07 : trks_zone = 6 : atrks = 0 : asect = 1 \
: ncyl = 832 : acyl = 2 : pcyl = 834 : nhead = 6 : nsect = 34 \
: rpm = 3662 : bpt = 16896
¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Þ¥¦¥ó¥È †
¥Ö¡¼¥È»þ¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Þ¥¦¥ó¥È †
- bootľ¸å(¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É)
- ¥«¡¼¥Í¥ë¤¬ /¡¢/usr¡¢/var ¤ò¥Þ¥¦¥ó¥È
- OS¤¬¥Þ¥ë¥Á¥æ¡¼¥¶¥â¡¼¥É¤Ë°Ü¹Ô¤¹¤ë
- mountall ¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤ë
- /etc/fstab ¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥Ç¥Ð¥¤¥¹¤Î¤¦¤Á¡¢Mount at boot ¤¬ yes ¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥Þ¥¦¥ó¥È
- (¥·¥ã¥Ã¥È¥À¥¦¥ó¤Ê¤É¤Ç)OS¤¬¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É¤Ë°Ü¹Ô¤¹¤ë
- umountall ¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤ë
- /etc/vfstab ¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥Ç¥Ð¥¤¥¹¤¬Á´¤Æ¥¢¥ó¥Þ¥¦¥ó¥È¤µ¤ì¤ë
- umountall ¤Ê»ö¤ËÃí°Õ (
unmountall ¥³¥Þ¥ó¥É¤Ç¤Ï¤Ê¤¤)
bash-3.00# cat -n /etc/vfstab
1 #device device mount FS fsck mount mount
2 #to mount to fsck point type pass at boot options
3 #
4 fd - /dev/fd fd - no -
5 /proc - /proc proc - no -
6 /dev/dsk/c1t0d0s1 - - swap - no -
7 /dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 / ufs 1 no -
8 /dev/dsk/c1t0d0s7 /dev/rdsk/c1t0d0s7 /export/home ufs 2 yes -
9 /devices - /devices devfs - no -
10 sharefs - /etc/dfs/sharetab sharefs - no -
11 ctfs - /system/contract ctfs - no -
12 objfs - /system/object objfs - no -
13 swap - /tmp tmpfs - yes -
¥Õ¥£¡¼¥ë¥É | °ÕÌ£ |
Device to mount | ¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹Ì¾ |
Device to fsck | raw¥Ç¥Ð¥¤¥¹Ì¾ |
Mount point | ¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È |
FS type | ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à |
fsck pass | fsck¥³¥Þ¥ó¥É¤Ç¸¡ºº¤¹¤ë¤«¤òÆÃÄꤹ¤ë¥Õ¥é¥°¡£fsck pass="-":¸¡ºº¤·¤Ê¤¤¡¢"0":UFS¤Î¾ì¹ç¤Ï¸¡ºº¤·¤Ê¤¤¡¢¤½¤ì°Ê³°¤Î¾ì¹ç¤Ï¸¡ºº¤¹¤ë¡¢"¥¼¥í¤è¤êÂ礤¤":¸¡ºº¤¹¤ë |
Mount at boot | boot»þ¤Ë¥Þ¥¦¥ó¥È¤¹¤ë¤«? "yes" or "no" |
Mount options | ¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç¥ó¡£Ìµ¤¤¾ì¹ç¤Ë¤Ï"-"¤òµÆþ¤¹¤ë |
mount¥³¥Þ¥ó¥É †
¥Ç¥Ð¥¤¥¹¤ò¥Õ¥¡¥¤¥ë¥Ä¥ê¡¼¤Ë¥Þ¥¦¥ó¥È¤¹¤ë
bash-3.00# mount [-F <FSType>] [-m] [-p] [-r] [-v] [-o <specificOptions>] <mountDevice> <mountPoint>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-F <FSType> | ¥Þ¥¦¥ó¥È¤¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤ò»ØÄꤹ¤ë |
-m | /etc/mnttab ¤Ë¥¨¥ó¥È¥ê¤òºîÀ®¤»¤º¤Ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥Þ¥¦¥ó¥È¤¹¤ë |
-p | ¥³¥Þ¥ó¥É¤Î¼Â¹Ô·ë²Ì(¥Þ¥¦¥ó¥È¾ðÊó)¤ò /etc/vfstab ¤Î·Á¼°¤ËÀ°·Á¤¹¤ë |
-r | Æɤ߼è¤êÀìÍѤǥޥ¦¥ó¥È¤¹¤ë |
-v | ¾ÜºÙ¥í¥°¤ò½ÐÎϤ¹¤ë |
-o <specificOptions> | -o devices | ¥Ç¥Ð¥¤¥¹¸ÇͤΥե¡¥¤¥ë¤ò³«¤¯¤³¤È¤òµö²Ä(¥Ç¥Õ¥©¥ë¥ÈÃÍ) |
-o nodevices | ¥Ç¥Ð¥¤¥¹¸ÇͤΥե¡¥¤¥ë¤ò³«¤¯¤³¤È¤ò¶Ø»ß |
-o exec | ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤Î¥×¥í¥°¥é¥à¤Î¼Â¹Ô¤òµö²Ä(¥Ç¥Õ¥©¥ë¥ÈÃÍ) |
-o noexec | ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤Î¥×¥í¥°¥é¥à¤Î¼Â¹Ô¤ò¶Ø»ß¤¹¤ë |
-o rw | ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤Î¥Õ¥¡¥¤¥ë¤Ø¤Î½ñ¤¹þ¤ß¤òµö²Ä(¥Ç¥Õ¥©¥ë¥ÈÃÍ) |
-o ro | ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤Î¥Õ¥¡¥¤¥ë¤òÆɤ߼è¤êÀìÍѤˤ¹¤ë |
-o setuid | ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤Î¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ setuid ¤òµö²Ä(¥Ç¥Õ¥©¥ë¥ÈÃÍ) |
-o nosetuid | ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤Î¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ setuid ¤òµö²Ä¤·¤Ê¤¤ |
- /etc/mnttab ¤Ï¡¢¸½ºß¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î°ìÍ÷¤ò´ÉÍý¤¹¤ë¥Õ¥¡¥¤¥ë
bash-3.00# cat -n /etc/mnttab
1 /dev/dsk/c1t0d0s0 / ufs rw,intr,largefiles,logging,xattr, onerror=
panic,dev=780000 1233585540
2 /devices /devices devfs dev=4700000 1233585531
3 ctfs /system/contract ctfs dev=4740001 1233585531
4 proc /proc proc dev=4780000 1233585531
5 mnttab /etc/mnttab mntfs dev=47c0001 1233585531
6 swap /etc/svc/volatile tmpfs xattr,dev=4800001 1233585531
7 objfs /system/object objfs dev=4840001 1233585531
8 sharefs /etc/dfs/sharetab sharefs dev=4880001 1233585531
9 /usr/lib/libc/libc_hwcap1.so.1 /lib/libc.so.1 lofs dev=780000 1233585536
10 fd /dev/fd fd rw,dev=4a00001 1233585540
11 swap /tmp tmpfs xattr,dev=4800002 1233585543
12 swap /var/run tmpfs xattr,dev=4800003 1233585543
13 /dev/dsk/c1t0d0s7 /export/home ufs rw,intr,largefiles,logging,xattr,o
nerror=panic,dev=780007 1233585549
14 -hosts /net autofs nosuid,indirect,ignore,nobrowse,dev=4ac0001 1233585558
15 auto_home /home autofs indirect,ignore,nobrowse,dev=4ac0002 1233585558
16 solamame:vold(pid590) /vol nfs ignore,noquota,dev=4a80001 1233585561
17 /hgfs /hgfs vmhgfs dev=12c 1233585562
18 /tmp/VMwareDnD /var/run/vmblock vmblock dev=4b40000 1233585599
umount¥³¥Þ¥ó¥É †
¥Ç¥Ð¥¤¥¹¤ò¥Õ¥¡¥¤¥ë¥Ä¥ê¡¼¤«¤é¥¢¥ó¥Þ¥¦¥ó¥È¤¹¤ë
bash-3.00# umount [-f] <mountPoint>
- ¶¯À©¥¢¥ó¥Þ¥¦¥ó¥È(-f)¤ò¤¹¤ë¤È¡¢¥Ç¡¼¥¿¤ÎÉÔÀ°¹ç¤¬µ¯¤¤ë²ÄǽÀ¤¬¤¢¤ë¤Î¤Ç¡¢¤É¤¦¤·¤Æ¤â¤À¤á¤Ê¤È¤°Ê³°¤Ï¤ä¤é¤Ê¤¤
- ¥³¥¤¥Ä¤â umount ¤Ê»ö¤ËÃí°Õ (
unmount ¤Ç¤Ï¤Ê¤¤)
¥Ü¥ê¥å¡¼¥à´ÉÍý †
autofs †
- ³µÍ×
- autofs ¤Ï¡¢ÉáÃʤϼ¥ǥХ¤¥¹¤ò¥Þ¥¦¥ó¥È¤»¤º¤ËÂбþ¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Î¥¨¥ó¥È¥ê¡¼¤Î¤ß¤ò»ý¤Ã¤Æ¤¤¤ë
- autofs ¤Ï¡¢¥æ¡¼¥¶¤ä¥×¥í¥°¥é¥à¤«¤é¤Î¥¢¥¯¥»¥¹Í׵᤬¤¢¤Ã¤Æ¤«¤é¡¢¤Ï¤¸¤á¤Æ¼Â¥Ç¥Ð¥¤¥¹¤Î¥Þ¥¦¥ó¥È¤ò¹Ô¤¦
- (·ë²Ì¤È¤·¤Æ¡¢¥æ¡¼¥¶¤ä¥×¥í¥°¥é¥à¤«¤é¤Ï¡¢Í׵ᤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ï¾ï¤Ë¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤Ë¤ß¤¨¤ë)
- ¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤«¤é¤·¤Ð¤é¤¯»È¤ï¤ì¤Æ¤¤¤Ê¤¤¥Ç¥Ð¥¤¥¹¤Ï¼«Æ°Åª¤Ë¥¢¥ó¥Þ¥¦¥ó¥È¤µ¤ì¤ë
- NAS¾å¤Î¥Ç¥£¥¹¥¯Îΰè¤ò /export/home ¤È¤·¤Æ¸«¤»¤ë¤È¤¤Ê¤É¤Ë»È¤¦
- autofs ¤Î¿¶¤ëÉñ¤¤
- ¥Ö¡¼¥È»þ¤Ë /etc/init.d/autofs ¥¹¥¯¥ê¥×¥È¤¬µ¯Æ°¤µ¤ì¤ë
- automount ¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤ë¡£¥Þ¥¹¥¿¡¼¥Þ¥Ã¥×(/etc/auto_master)¤È¥Þ¥¦¥ó¥È¥Æ¡¼¥Ö¥ë(/etc/mnttab)¤ò¾È¹ç¤·¤Æ¡¢¼Â¥Ç¥Ð¥¤¥¹¤ò autofs ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥¨¥ó¥È¥ê¡¼¤¹¤ë(¥Þ¥¦¥ó¥È¤Ï¤·¤Ê¤¤)
- automountd ¥Ç¡¼¥â¥ó¤¬µ¯Æ°¤µ¤ì¤ë¡£
- ¥æ¡¼¥¶¤â¤·¤¯¤Ï¥×¥í¥°¥é¥à¤«¤é¡¢autofs´ÉÍý²¼¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ø¤Î¥¢¥¯¥»¥¹Í׵᤬¤¢¤Ã¤¿
- autofs ¤Ï¡¢automountd ¤Ë¥Ç¥Ð¥¤¥¹¤Î¥Þ¥¦¥ó¥È¤ò¹Ô¤ï¤»¤ë
- ¥æ¡¼¥¶¤â¤·¤¯¤Ï¥×¥í¥°¥é¥à¤Ï¡¢Í׵ᤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ä¥Õ¥¡¥¤¥ë¤¬»È¤¨¤ë¤è¤¦¤Ë¤Ê¤ë
- automountd ¤Ï¡¢¥Þ¥¦¥ó¥È¤·¤¿¼Â¥Ç¥Ð¥¤¥¹¤¬°ìÄê»þ´Ö»È¤ï¤ì¤Æ¤¤¤Ê¤¤¤È¡¢¾¡¼ê¤Ë¥¢¥ó¥Þ¥¦¥ó¥È¤¹¤ë
- ¥Þ¥Ã¥×¥Õ¥¡¥¤¥ë
- ¤É¤Î¥Ç¥Ð¥¤¥¹¤ò¤É¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥Þ¥¦¥ó¥È¤¹¤ë¤«¤ÎÀßÄê¥Õ¥¡¥¤¥ë
- /etc/auto_master ¤¬¥Þ¥¹¥¿¡¼¥Þ¥Ã¥×¥Õ¥¡¥¤¥ë¡£¾ÜºÙ¾ðÊó¤òÊÌ¥Õ¥¡¥¤¥ë¤Ë³°ÉôÄêµÁ¤¹¤ë¤³¤È¤â²Äǽ
bash-3.00# cat -n /etc/auto_master
1 #
2 # Copyright 2003 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
4 #
5 # ident "@(#)auto_master 1.8 03/04/28 SMI"
6 #
7 # Master map for automounter
8 #
9 +auto_master
10 /net -hosts -nosuid,nobrowse
11 /home auto_home -nobrowse
bash-3.00# cat -n /etc/auto_home
1 #
2 # Copyright 2003 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
4 #
5 # ident "@(#)auto_home 1.6 03/04/28 SMI"
6 #
7 # Home directory map for automounter
8 #
9 +auto_home
bash-3.00#
- ¥Þ¥Ã¥×¥Õ¥¡¥¤¥ë¤òÊѹ¹¤·¤¿¾ì¹ç¤Ë¤Ï¡¢automount ¥³¥Þ¥ó¥É¤Ç autofs ¤ËÆâÍƤòÈ¿±Ç¤¹¤ë¡£¤³¤Î¤È¤¡¢automountd ¥Ç¡¼¥â¥ó¤ÎºÆµ¯Æ°¤ÏÉÔÍ×
¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È †
¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¤ò¹½À®¤¹¤ë¥Õ¥¡¥¤¥ë †
/etc/passwd †
½ñ¼°:
<username>:<password>:<uid>:<gid>:<comment>:<home directory>:<login shell>
¹àÌÜ | ÀßÄêÆâÍÆ |
<username> | ¡¥·¥¹¥Æ¥àÆâ¤Ç¥æ¥Ë¡¼¥¯¢2¡Á8ʸ»ú¤Î±Ñ¿ô»ú£ºÇ½é¤Ï±Ñ»ú¤ºÇÄ㣱ʸ»ú¤Ï±Ñ¾®Ê¸»ú |
<password> | "x"¸ÇÄê(½é´ü¤ÎUnix¤È¤Î¸ß´¹À¤Î¤¿¤á)¡£¼ÂºÝ¤Î¥Ñ¥¹¥ï¡¼¥É¤Ï /etc/shadow ¤Ë°Å¹æ²½¤·¤Æ³ÊǼ¤µ¤ì¤ë |
<uid> | User ID : 0¡Á99:¥·¥¹¥Æ¥à¥¢¥«¥¦¥ó¥È / 100¡Á60000:¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È / 60001¡Á2147483647(2^31-1 :32bitÉä¹æÉÕ¤À°¿ô¤ÎºÇÂçÃÍ):ƿ̾¥æ¡¼¥¶¤Ê¤É |
<gid> | Primary Group ID¡£¥æ¡¼¥¶¤ÏºÇÄã°ì¤Ä¤Î Primary Group ¤Ë°¤¹¤ë¡£¥æ¡¼¥¶¤Ï¡¢ºÇÂç 15 ¤Î Secondary Group ¤Ë°¤¹¤ë¤³¤È¤¬¤Ç¤¤ë(/etc/group ¤ÇÄêµÁ¤¹¤ë) |
<comment> | |
<home directory> | |
<login shell> | |
bash-3.00# cat /etc/passwd
root:x:0:0:Super-User:/:/sbin/sh
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
smmsp:x:25:25:SendMail Message Submission Program:/:
listen:x:37:4:Network Admin:/usr/net/nls:
gdm:x:50:50:GDM Reserved UID:/:
webservd:x:80:80:WebServer Reserved UID:/:
postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh
svctag:x:95:12:Service Tag UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
bash-3.00#
/etc/shadow †
½ñ¼°:
<username>:<password>:<lastchg>:<min>:<max>:<warn>:<inactive>:<expire>:<flag>
¹àÌÜ | ÀßÄêÆâÍÆ |
<username> | |
<password> | crypt¤Ç°Å¹æ²½¤µ¤ì¤¿13ʸ»ú¡£"NP":¥Ñ¥¹¥ï¡¼¥É¤Ê¤·¡£"*LK*":¥¢¥«¥¦¥ó¥È¥í¥Ã¥¯Ãæ |
<lastchg> | ºÇ½ª¹¹¿·Æü»þ¤ÎUnix¥¿¥¤¥à(1970ǯ1·î1Æü¤«¤é¤ÎÉÿô) |
<min> | ¥Ñ¥¹¥ï¡¼¥É¤¬Êѹ¹¤Ç¤¤Ê¤¤ºÇ¾®Æü¿ô |
<max> | ¥Ñ¥¹¥ï¡¼¥É¤¬Í¸ú¤ÊºÇÂçÆü¿ô |
<warn> | ¥Ñ¥¹¥ï¡¼¥É¼º¸ú¤Î²¿ÆüÁ°¤«¤é·Ù¹ð¤ò½Ð¤¹¤« |
<inactive> | ²¿Æü´Ö¥í¥°¥¤¥ó¤·¤Ê¤¤¤È¥¢¥«¥¦¥ó¥È¤¬¥í¥Ã¥¯¤µ¤ì¤ë¤« |
<expire> | ¼º¸úÆü(Unix¥¿¥¤¥à) |
<flag> | ¥Ñ¥¹¥ï¡¼¥Éǧ¾Ú¼ºÇÔ²ó¿ô(4bitÀ°¿ô) |
bash-3.00# cat /etc/shadow
root:xXg3fgE4Y3yac:6445::::::
daemon:NP:6445::::::
bin:NP:6445::::::
sys:NP:6445::::::
adm:NP:6445::::::
lp:NP:6445::::::
uucp:NP:6445::::::
nuucp:NP:6445::::::
smmsp:NP:6445::::::
listen:*LK*:::::::
gdm:*LK*:::::::
webservd:*LK*:::::::
postgres:NP:::::::
svctag:*LK*:6445::::::
nobody:*LK*:6445::::::
noaccess:*LK*:6445::::::
nobody4:*LK*:6445::::::
/etc/group †
<group name>:<group passowrd>:<gid>:<user-list>
¹àÌÜ | ÀßÄêÆâÍÆ |
<group name> | |
<group passowrd> | Ä̾ï¤Ï¶õÇò¤Ë¤¹¤ë(½é´ü¤ÎUnix¤È¤Î¸ß´¹À¤Î¤¿¤á)¡£ÀßÄꤹ¤ë¤È newgrp ¥³¥Þ¥ó¥É¤Ê¤É¤Ç¥Ñ¥¹¥ï¡¼¥É¤¬Ê¹¤«¤ì¤ë¤è¤¦¤Ë¤Ê¤ë |
<gid> | 0¡Á60000:Ä̾ï¤Î¥°¥ë¡¼¥×¤Ë³ä¤êÅö¤Æ¤ë¡£60001¡Á65534:ƿ̾¥æ¡¼¥¶¤Ê¤É |
<user-list> | ½ê°¤¹¤ë¥æ¡¼¥¶¤Î¥ê¥¹¥È(¥«¥ó¥Þ¶èÀÚ¤ê) |
bash-3.00# cat /etc/group
root::0:
other::1:root
bin::2:root,daemon
sys::3:root,bin,adm
adm::4:root,daemon
uucp::5:root
mail::6:root
tty::7:root,adm
lp::8:root,adm
nuucp::9:root
staff::10:
daemon::12:root
sysadmin::14:
smmsp::25:
gdm::50:
webservd::80:
postgres::90:
nobody::60001:
noaccess::60002:
nogroup::65534:
¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¤ò¹½À®¤¹¤ë¥³¥Þ¥ó¥É †
useradd †
¥æ¡¼¥¶¤òÄɲ乤ë
useradd [-c <comment>] [-d <dir>] [-e <expire>] [-f <inactive>]
[-g <group>] [-G <group,group,...>] [-m [-k <skel_dir>]] [-p <profile>]
[-A <authorization,authorization,...>] [-R <role>] [-s <shell>] [-u <uid>]
<login-name>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£¡¦³ÊǼ¾ì½ê |
-u <uid> | /etc/passwd ¤Î <uid> |
-g <group> | /etc/passwd ¤Î <gid> |
-c <comment> | /etc/passwd ¤Î <comment> |
-d <dir> | /etc/passwd ¤Î <home directory>¡£¾Êά»þ¤Ï¡¢<basedir>/<login-name> (<basedir>¤Ï¡¢/usr/sadm/defadduser ¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë ) |
-s <shell> | /etc/passwd ¤Î <login shell |
-f <inactive> | /etc/shadow ¤Î <inactive> |
-e <expire> | /etc/shadow ¤Î <expore> |
-G <group,group,...> | /etc/group ¤Î <user-list> |
-m [-k <skel_dir>] | ¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤òºîÀ®¤¹¤ë¡£ ¤µ¤é¤Ë -k ¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¤È¤¤Ë¤Ï¡¢skelton ¥Ç¥£¥ì¥¯¥È¥ê¤È¤·¤Æ <skel_dir> ¤ò»È¤¦¡£-k¾Êά»þ¤Ï /etc/skel |
-p <profile> | ¥æ¡¼¥¶¤ËŬÍѤµ¤ì¤ë¼Â¹Ô¥×¥í¥Õ¥¡¥¤¥ë¤Î¥ê¥¹¥È(¾ÜºÙ¤Ï¸åȾ¤Î¥Æ¥¹¥ÈÈÏ°Ï) |
-A <authorization,authorization,...> | ¥æ¡¼¥¶¤ËŬÍѤµ¤ì¤ëǧ¾Ú¤Î¥ê¥¹¥È(¾ÜºÙ¤Ï¸åȾ¤Î¥Æ¥¹¥ÈÈÏ°Ï) |
-R <role> | ¥æ¡¼¥¶¤ËŬÍѤµ¤ì¤ë¥í¡¼¥ë¤Î¥ê¥¹¥È(¾ÜºÙ¤Ï¸åȾ¤Î¥Æ¥¹¥ÈÈÏ°Ï) |
<login-name> | /etc/passwd ¤Î <username>¾ |
useradd -D †
useradd ¤Î ¾Êά»þ¤ÎÃͤò´ÉÍý¤¹¤ë
- /usr/sadm/defadduser ¤ÎÊÔ½¸¤ò¹Ô¤¦¥³¥Þ¥ó¥É
- ÀßÄêÃͤÎɽ¼¨
bash-3.00# useradd -D
group=other,1 project=default,3 basedir=/home
skel=/etc/skel shell=/bin/sh inactive=0
expire= auths= profiles= roles= limitpriv=
defaultpriv= lock_after_retries=
bash-3.00# cat /usr/sadm/defadduser
# Default values for useradd. Changed Mon Mar 2 23:43:35 2009
defgroup=1
defgname=other
defparent=/home
defskel=/etc/skel
defshell=/bin/sh
definact=0
defexpire=
defauthorization=
defrole=
defprofile=
defproj=3
defprojname=default
deflimitpriv=
defdefaultpriv=
deflock_after_retries=
- ÀßÄêÃͤνñ¤´¹¤¨
useradd -D [-b <basedir> | -e <expire> | -f <inactive> | -P <prfile> | -R <role>]
usermod †
¥æ¡¼¥¶¾ðÊó¤ò¹¹¿·¤¹¤ë
usermod [-c <comment>] [-d <dir> [-m]] [-e <expire>] [-f <inactive>]
[-g <group>] [-G <group,group,...>] [-l <new_login_name>] [-p <profile>]
[-A <authorization,authorization,...>] [-R <role>] [-s <shell>] [-u <uid>]
<login-name>
(useradd ¤È°ã¤¦¥ª¥×¥·¥ç¥ó)
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-l <new_login_name> | ¿·¤·¤¤¥æ¡¼¥¶Ì¾ |
-d <dir> [-m] | ¥æ¡¼¥¶¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤ò -d ¤Ç»ØÄꤷ¤¿¿·µ¬¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¹¤ë |
-m ¤ò»ØÄꤷ¤ÆÊѹ¹À褬¸ºß¤·¤Ê¤¤¾ì¹ç | ¸µ¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤¬¡¢¿·µ¬¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë°ÜÆ°¤µ¤ì¤ë |
-m ¤ò»ØÄꤷ¤ÆÊѹ¹À褬¸ºß¤¹¤ë¾ì¹ç | Êѹ¹Àè¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤Ï²¿¤â¤·¤Ê¤¤(¸¢¸Â¤ÎÊѹ¹¤ä¥Õ¥¡¥¤¥ë¤Î°ÜÆ°¤Ï¤·¤Ê¤¤) |
userdel †
¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¤òºï½ü¤¹¤ë
userdel [-r] <login_name>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-r | ¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤òºï½ü¤¹¤ë(-r¤ò»ØÄꤷ¤Ê¤¤¤È¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤¬»Ä¤Ã¤¿¤Þ¤Þ¤Ë¤Ê¤ë¤³¤È¤ËÃí°Õ) |
groupadd †
¥°¥ë¡¼¥×¤òÄɲ乤ë
groupadd [-g <gid> [-o]] <group_name>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-g <gid> | ¥°¥ë¡¼¥×ID¡£¾Êά¤·¤¿¾ì¹ç¤Ï¡¢»ÈÍѺѤߤÎID¤Î¼¡¤ÎÃͤ¬³ä¤ê¿¶¤é¤ì¤ë |
-o | GID ¤Î¶¦Í¤òµö¤¹ |
<group_name> | ¥°¥ë¡¼¥×̾ |
groupmod †
¥°¥ë¡¼¥×¥¢¥«¥¦¥ó¥È¤òÊѹ¹¤¹¤ë
groupmod [-g <gid> [-o]] [-n <new_name>] <group_name>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-g <gid> | ¥°¥ë¡¼¥×ID¡£¾Êά¤·¤¿¾ì¹ç¤Ï¡¢»ÈÍѺѤߤÎID¤Î¼¡¤ÎÃͤ¬³ä¤ê¿¶¤é¤ì¤ë |
-o | GID ¤Î¶¦Í¤òµö¤¹ |
-n <new_name> | ¿·¤·¤¤¥°¥ë¡¼¥×̾ |
<group_name> | ¥°¥ë¡¼¥×̾ |
groupdel †
¥°¥ë¡¼¥×¥¢¥«¥¦¥ó¥È¤òºï½ü¤¹¤ë
groupdel <group_name>
SMC (Solaris Management Console) †
bash-3.00# /usr/sbin/smc &
admintool ¤Ï¡¢Solaris 10 ¤«¤éÇÑ»ß †
¥·¥§¥ë½é´ü²½¥Õ¥¡¥¤¥ë †
- ½é´ü²½¥Õ¥¡¥¤¥ë¤Î¼Â¹Ô½ç
Shell | 1 | 2 | 3 |
C Shell | /etc/.login | ~/.cshrc | ~/.login |
Bourne Shell | /etc/profile | ~/.profile | |
Korn Shell | /etc/profile | ~/.profile | ~/.kshrc |
¢¨ ksh ¤Ç£³ÈÖÌܤ˼¹Ԥµ¤ì¤ë¤Î¤Ï¡¢´Ä¶ÊÑ¿ô$ENV ¤Ç¼¨¤µ¤ì¤ë ~/$ENV¡£Ä̾ï ~/.kshrc ¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë
- ½é´ü²½¥Õ¥¡¥¤¥ë¤Î¥¹¥±¥ë¥È¥ó
Shell | ¥¹¥±¥ë¥È¥ó¥Õ¥¡¥¤¥ë |
C Shell | /etc/skel/local.cshrc |
/etc/skel/local.login |
Bourne Shell | /etc/skel/local.profile |
Korn Shell | /etc/skel/local.kshrc |
bash-3.00# cd /etc/skel/
bash-3.00# ls
local.cshrc local.login local.profile
bash-3.00# cat local.cshrc
#ident "@(#)local.cshrc 1.2 00/05/01 SMI"
umask 022
set path=(/bin /usr/bin /usr/ucb /etc .)
if ( $?prompt ) then
set history=32
endif
bash-3.00# cat local.login
#
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
# ident "@(#)local.login 1.7 01/06/23 SMI"
stty -istrip
# setenv TERM `tset -Q -`
bash-3.00# cat local.profile
#
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
# ident "@(#)local.profile 1.10 01/06/23 SMI"
stty istrip
PATH=/usr/bin:/usr/ucb:/etc:.
export PATH
- useradd ¥³¥Þ¥ó¥É¤Ç -m -k <skel_dir> ¤¬»ØÄꤵ¤ì¤Æ¤¤¤ì¤Ð¡¢ºîÀ®¤¹¤ë¥æ¡¼¥¶¤Î¥Ç¥Õ¥©¥ë¥È¡¦¥·¥§¥ë¤Ë¤·¤¿¤¬¤Ã¤Æ¡¢¾åµ¤Î¥Õ¥¡¥¤¥ë¤¬¥æ¡¼¥¶¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥³¥Ô¡¼¤µ¤ì¤ë
- Ä̾-k ¤Ï¡¢useradd -D ¤Ç¥Ç¥Õ¥©¥ë¥ÈÃÍ(/etc/skel)¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë
- ¥ª¥é¤Î Solaris 10 ¤Ë¤Ï¡¢local.kshrc ¤¬Ìµ¤«¤Ã¤¿¤±¤É¡¦¡¦¡¦
¥·¥¹¥Æ¥à¥»¥¥å¥ê¥Æ¥£ †
- ¥»¥¥å¥ê¥Æ¥£
- ¥·¥¹¥Æ¥à¤Ø¤Î¥¢¥¯¥»¥¹
- ¥¢¥¯¥»¥¹´ÉÍý ¢ª ¥Ñ¥¹¥ï¡¼¥É¡¦¥í¥°¥¤¥ó¡¦¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶
- ¥¢¥¯¥»¥¹¸¢¸Â ¢ª FTP¡¦rhosts¡¦ssh
- ¥·¥¹¥Æ¥àÆâ¥ê¥½¡¼¥¹¤Ø¤Î¥¢¥¯¥»¥¹ ¢ª ¥Õ¥¡¥¤¥ë¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó
¥Ñ¥¹¥ï¡¼¥É´ÉÍý †
logins †
passwd †
- ¥Ñ¥¹¥ï¡¼¥É¤ÎÊѹ¹
passwd [-d] [-f] [-l] [-s] [-n <min>] [-w <warn>] [-x <max>] <username>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-d | ¥Ñ¥¹¥ï¡¼¥Éºï½ü¡Ê¥í¥°¥¤¥ó»þ¤Ë¥Ñ¥¹¥ï¡¼¥ÉÆþÎϤ¬µá¤á¤é¤ì¤Ê¤¯¤Ê¤ë) ¢¨¥æ¡¼¥¶¥¢¥«¥¦¥ó¥Èºï½ü(userdel)¤Ç¤Ê¤¤¤³¤È¤ËÃí°Õ |
-f | ¼¡²ó¥í¥°¥¤¥ó»þ¤Ë¡¢¥Ñ¥¹¥ï¡¼¥ÉÊѹ¹¤ò¶¯À©¤¹¤ë |
-l | ¥¢¥«¥¦¥ó¥È¥í¥Ã¥¯¡Ê¥í¥°¥¤¥ó¤Ç¤¤Ê¤¯¤Ê¤ë) |
-s | ¥¢¥«¥¦¥ó¥È¾ðÊó¤òɽ¼¨ |
-n <min> | MINWEEKS |
-w <warn> | WARNWEEKS |
-x <max> | MAXWEEKS |
- passwd ¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤòÀßÄꤹ¤ë¥Õ¥¡¥¤¥ë(¼ç¤ÊÀßÄê¹àÌÜ)
/etc/default/passwd
ÀßÄê¹àÌÜ | °ÕÌ£ |
HISTORY | ¥·¥¹¥Æ¥à¤ËµÏ¿¤¹¤ë²áµî¥Ñ¥¹¥ï¡¼¥É(ºÇÂç26) |
MINWEEKS | ¥Ñ¥¹¥ï¡¼¥É¤òÊѹ¹¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ë¤Þ¤Ç¤ÎºÇ¾®´ü´Ö |
MAXWEEKS | ¥Ñ¥¹¥ï¡¼¥É͸ú´ü¸Â |
WARNWEEKS | ¥Ñ¥¹¥ï¡¼¥É¼º¸ú¤ò²¿½µ´ÖÁ°¤«¤é·Ù¹ð¤¹¤ë¤« |
PASSLENGTH | ¥Ñ¥¹¥ï¡¼¥ÉĹ¤ÎºÇ¾®ÃÍ(ÀßÄê¤Ç¤¤ë¤Î¤Ï6,7,8) |
DICTIONLIST | ¤³¤³¤Ç»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë(¼½ñ)¤ËºÜ¤Ã¤Æ¤¤¤ë¥Ñ¥¹¥ï¡¼¥É¤Ïµö²Ä¤·¤Ê¤¤¡£¥«¥ó¥Þ¶èÀÚ¤ê¤ÇÊ£¿ô»ØÄê²Äǽ |
DICTIONDBDIR | passwd¥×¥í¥°¥é¥à¤«¤éľÀܻȤï¤ì¤ë¼½ñ¤¬À¸À®¤µ¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê¡£/var/passwd ¤Ê¤É |
bash-3.00# cat /etc/default/passwd
#ident "@(#)passwd.dfl 1.7 04/04/22 SMI"
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
MAXWEEKS=
MINWEEKS=
PASSLENGTH=6
# NAMECHECK enables/disables login name checking.
# The default is to do login name checking.
# Specifying a value of "NO" will disable login name checking.
#
#NAMECHECK=NO
# HISTORY sets the number of prior password changes to keep and
# check for a user when changing passwords. Setting the HISTORY
# value to zero (0), or removing/commenting out the flag will
# cause all users' prior password history to be discarded at the
# next password change by any user. No password history will
# be checked if the flag is not present or has zero value.
# The maximum value of HISTORY is 26.
#
# This flag is only enforced for user accounts defined in the
# local passwd(4)/shadow(4) files.
#
#HISTORY=0
#
# Password complexity tunables. The values listed are the defaults
# which are compatible with previous releases of passwd.
# See passwd(1) and pam_authtok_check(5) for use warnings and
# discussion of the use of these options.
#
#MINDIFF=3
#MINALPHA=2
#MINNONALPHA=1
#MINUPPER=0
#MINLOWER=0
#MAXREPEATS=0
#MINSPECIAL=0
#MINDIGIT=0
#WHITESPACE=YES
#
#
# passwd performs dictionary lookups if DICTIONLIST or DICTIONDBDIR
# is defined. If the password database does not yet exist, it is
# created by passwd. See passwd(1), pam_authtok_check(5) and
# mkdict(1) for more information.
#
#DICTIONLIST=
#DICTIONDBDIR=/var/passwd
- ¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¤Îºï½ü
userdel <username>
¥í¥°¥¤¥ó´ÉÍý †
who †
- ¥í¥°¥¤¥óÃæ¤Î¥æ¡¼¥¶¤òÎóµó¤¹¤ë
bash-3.00# who
root console 2·î 25Æü 20:50 (:0)
root pts/3 2·î 25Æü 20:52 (:0.0)
- ¸«½Ð¤·¹ÔÉÕ¤¤Çɽ¼¨¤¹¤ë
bash-3.00# who -H
̾Á° ¹Ô »þ¹ï
root console 2·î 25Æü 20:50 (:0)
root pts/3 2·î 25Æü 20:52 (:0.0)
- Á°²ó¤Î¥ê¥Ö¡¼¥È»þ¹ï¤òɽ¼¨¤µ¤»¤ë
bash-3.00# who -b
. system boot 2·î 25Æü 20:49
- ´ü¸ÂÀÚ¤ì¤Î¥×¥í¥»¥¹¤òɽ¼¨¤¹¤ë
bash-3.00# who -d
- ¥æ¡¼¥¶¤Î¥í¥°¥¤¥óÂÔ¤Á¾õÂ֤ˤ¢¤ë¥×¥í¥»¥¹¤òɽ¼¨¤¹¤ë
bash-3.00# who -l
LOGIN console 2·î 25Æü 20:50 old 388
zsmon . 2·î 25Æü 20:50 old 390
- ¥í¥°¥¤¥óÃæ¤Î¥æ¡¼¥¶¤ò̾´ó¤»¤·¤Æɽ¼¨¤¹¤ë(¤³¤Î¥ª¥×¥·¥ç¥ó¤È¾¤Î¥ª¥×¥·¥ç¥ó¤òƱ»þ¤Ë»ØÄꤷ¤¿¾ì¹ç¡¢Â¾¤Î¥ª¥×¥·¥ç¥ó¤Ï̵»ë¤µ¤ì¤ë)
bash-3.00# who -q
root root
# users=2
- ¸½ºß¤Î¥é¥ó¥ì¥Ù¥ë¤òɽ¼¨¤¹¤ë
bash-3.00# who -r
. run-level 3 2·î 25Æü 20:49 3 0 S
last †
- last ¥³¥Þ¥ó¥É¤Ï¡¢/var/adm/wtmpx ¥Õ¥¡¥¤¥ë¤ÎÆâÍƤòɽ¼¨¤¹¤ë¤À¤±
- ¥æ¡¼¥¶¤Î¥í¥°¥¤¥ó¤È¥í¥°¥¢¥¦¥È¤ÎµÏ¿
- last
bash-3.00# last
root pts/3 :0.0 Wed Feb 25 20:52 ¥í¥°¥¤¥óÃæ¤Ç¤¹¡£
root console :0 Wed Feb 25 20:50 ¥í¥°¥¤¥óÃæ¤Ç¤¹¡£
reboot system boot Wed Feb 25 20:49
reboot system down Wed Feb 25 20:48
root pts/3 :0.0 Mon Feb 2 23:46 - 20:48 (22+21:01)
root console :0 Mon Feb 2 23:39 - 20:48 (22+21:08)
reboot system boot Mon Feb 2 23:38
reboot system down Mon Feb 2 23:38
root pts/3 :0.0 Mon Feb 2 23:29 - 23:38 (00:08)
root console :0 Mon Feb 2 23:21 - Ää»ß (00:17)
reboot system boot Mon Feb 2 23:16
wtmp ¤Î»Ï¤Þ¤ê Mon Feb 2 23:16
- °ú¿ô¤Ë¥æ¡¼¥¶Ì¾¤ò»ØÄꤷ¤Æ¡¢grep ¤¹¤ë¤³¤È¤¬¤Ç¤¤ë
bash-3.00# last root
root pts/3 :0.0 Wed Feb 25 20:52 ¥í¥°¥¤¥óÃæ¤Ç¤¹¡£
root console :0 Wed Feb 25 20:50 ¥í¥°¥¤¥óÃæ¤Ç¤¹¡£
root pts/3 :0.0 Mon Feb 2 23:46 - 20:48 (22+21:01)
root console :0 Mon Feb 2 23:39 - 20:48 (22+21:08)
root pts/3 :0.0 Mon Feb 2 23:29 - 23:38 (00:08)
root console :0 Mon Feb 2 23:21 - Ää»ß (00:17)
wtmp ¤Î»Ï¤Þ¤ê Mon Feb 2 23:16
- reboot ²¾Áۥ桼¥¶¤Î¥í¥°¥¤¥ó»þ¹ï¤òÄ´¤Ù¤ë¤³¤È¤Ë¤è¤ê¡¢¥ê¥Ö¡¼¥È¤µ¤ì¤¿»þ¹ï¤¬Ê¬¤«¤ë
bash-3.00# last reboot
reboot system boot Wed Feb 25 20:49
reboot system down Wed Feb 25 20:48
reboot system boot Mon Feb 2 23:38
reboot system down Mon Feb 2 23:38
reboot system boot Mon Feb 2 23:16
wtmp ¤Î»Ï¤Þ¤ê Mon Feb 2 23:16
¥í¥°¥¤¥ó¤Î¼ºÇÔÍúÎò †
- /var/adm/loginlog ¤òºîÀ®¤¹¤ë¤È¡¢5²óϢ³¤Ç¥Ñ¥¹¥ï¡¼¥Éǧ¾Ú¤Ë¼ºÇÔ¤·¤¿¾ì¹ç¤ËµÏ¿¤¬»Ä¤ë¤è¤¦¤Ë¤Ê¤ë
bash-3.00# touch /var/adm/loginlog
bash-3.00# chmod 600 /var/adm/loginlog
bash-3.00# chgrp sys /var/adm/loginlog
bash-3.00# ls -la /var/adm/loginlog
-rw------- 1 root sys 0 3·î 23Æü 01:13 /var/adm/loginlog
- °ìÈ̥桼¥¶¤¬ 5 ²óϢ³¤Ç¥Ñ¥¹¥ï¡¼¥Éǧ¾Ú¤Ë¼ºÇÔ¤¹¤ë¤È 5 ²óʬ¤Î¥í¥°¤¬µÆþ¤µ¤ì¤ë¡£(root¤Î¥í¥°¥¤¥ó¼ºÇԤϵϿ¤µ¤ì¤Ê¤¤¤è¤¦¤À)
bash-3.00# cat /var/adm/loginlog
kagyuu:/dev/pts/4:Mon Mar 23 01:24:17 2009
kagyuu:/dev/pts/4:Mon Mar 23 01:24:28 2009
kagyuu:/dev/pts/4:Mon Mar 23 01:24:38 2009
kagyuu:/dev/pts/4:Mon Mar 23 01:24:46 2009
kagyuu:/dev/pts/4:Mon Mar 23 01:24:55 2009
- µÏ¿¤ò¤Ï¤¸¤á¤ë²ó¿ô¤òÊѤ¨¤¿¤¤¤È¤¤Ï¡¢/etc/default/login ¤Î RETRIES ¤òÊѹ¹¤¹¤ë
bash-3.00# cat /etc/default/login
#ident "@(#)login.dfl 1.14 04/06/25 SMI"
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Set the TZ environment variable of the shell.
#
#TIMEZONE=EST5EDT
# ULIMIT sets the file size limit for the login. Units are disk blocks.
# The default of zero means no limit.
#
#ULIMIT=0
# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.
#
CONSOLE=/dev/console
# PASSREQ determines if login requires a password.
#
PASSREQ=YES
# ALTSHELL determines if the SHELL environment variable should be set
#
ALTSHELL=YES
# PATH sets the initial shell PATH variable
#
#PATH=/usr/bin:
# SUPATH sets the initial shell PATH variable for root
#
#SUPATH=/usr/sbin:/usr/bin
# TIMEOUT sets the number of seconds (between 0 and 900) to wait before
# abandoning a login session.
#
#TIMEOUT=300
# UMASK sets the initial shell file creation mode mask. See umask(1).
#
#UMASK=022
# SYSLOG determines whether the syslog(3) LOG_AUTH facility should be used
# to log all root logins at level LOG_NOTICE and multiple failed login
# attempts at LOG_CRIT.
#
SYSLOG=YES
# SLEEPTIME controls the number of seconds that the command should
# wait before printing the "login incorrect" message when a
# bad password is provided. The range is limited from
# 0 to 5 seconds.
#
#SLEEPTIME=4
# DISABLETIME If present, and greater than zero, the number of seconds
# login will wait after RETRIES failed attempts or the PAM framework returns
# PAM_ABORT. Default is 20. Minimum is 0. No maximum is imposed.
#
#DISABLETIME=20
# RETRIES determines the number of failed logins that will be
# allowed before login exits. Default is 5 and maximum is 15.
# If account locking is configured (user_attr(4)/policy.conf(4))
# for a local user's account (passwd(4)/shadow(4)), that account
# will be locked if failed logins equals or exceeds RETRIES.
#
#RETRIES=5
#
# The SYSLOG_FAILED_LOGINS variable is used to determine how many failed
# login attempts will be allowed by the system before a failed login
# message is logged, using the syslog(3) LOG_NOTICE facility. For example,
# if the variable is set to 0, login will log -all- failed login attempts.
#
#SYSLOG_FAILED_LOGINS=5
- ¥Ñ¥¹¥ï¡¼¥É¤òÂǤÁ´Ö°ã¤¨¤¿¤¢¤È¤ËÂÔ¤¿¤µ¤ì¤ë»þ´Ö(·ë¹½¤¤¤é¤¤¤é¤¹¤ë)¤Ã¤Æ¡¢¤³¤³¤ÇÄêµÁ¤·¤Æ¤¤¤ë¤Î¤«¡¦¡¦¡¦
¥í¥°¥¤¥ó¤Î°ì»þ¶Ø»ß †
- /etc/nologin ¥Õ¥¡¥¤¥ë¤¬¤¢¤ë¤È¡¢root °Ê³°¤Î°ìÈ̥桼¥¶¤¬¥í¥°¥¤¥ó¤Ç¤¤Ê¤¯¤Ê¤ë¡£
bash-3.00# touch /etc/nologin
bash-3.00# chmod 644 /etc/nologin
bash-3.00# chgrp sys /etc/nologin
bash-3.00# ls -la /etc/nologin
-rw-r--r-- 1 root sys 0 3·î 23Æü 01:32 /etc/nologin
- °ìÈ̥桼¥¶¤Ë¤Ï¡¢Æɤ߹þ¤ß¤Î¤ßµö²Ä¤¹¤ë¤è¤¦¤Ë¥Õ¥¡¥¤¥ë¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤ÎÀßÄê¤ò¤¹¤ë¤³¤È
- root¤Ï¥í¥°¥¤¥ó¤Ç¤¤ë¤³¤È¤ËÃí°Õ(»î¸³Âкö)
- /etc/nologin ¤Ë¤Ï¡¢°ìÈ̥桼¥¶¤¬¥í¥°¥¤¥ó¤·¤è¤¦¤È¤·¤¿¤È¤¤Î¥á¥Ã¥»¡¼¥¸¤òÄêµÁ¤Ç¤¤ë
bash-3.00# vi /etc/nologin
- ¤³¤ó¤Ê´¶¤¸¤Ë¤Ê¤ë
bash-3.00# telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
login: kagyuu
Password:
SORRY THIS SYSTEM IS MAINTAINING NOW m(_ _)m
Connection to localhost closed by foreign host.
¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶ †
su †
su [-] [<username>]
- su = switch user
- ¸½ºß¤Î´Ä¶ÊÑ¿ô¤ò°ú¤·Ñ¤¤¤Ç¥æ¡¼¥¶¤òÊѤ¨¤ë
> su <username>
- Êѹ¹Àè¥æ¡¼¥¶¤Î´Ä¶ÊÑ¿ô¤ËÊѹ¹¤¹¤ë
> su - <username>
- ¢¨ root ¤Ç¥í¥°¥¤¥ó¤·¤Æ¤¤¤ë¤È¤¤Ë¡¢su ¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ¥æ¡¼¥¶¤òÊѹ¹¤·¤Æ¤â¥Ñ¥¹¥ï¡¼¥ÉÆþÎϤ¬µá¤á¤é¤ì¤Ê¤¤¤³¤È¤ËÃí°Õ
- ¢¨ root ¤Ç¥í¥°¥¤¥ó¤·¤Æ¤¤¤ë¤È¤¤Ë¤Ï¡¢¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¤¬ # ¤Ë¤Ê¤ë¤³¤È¤ò³Ð¤¨¤Æ¤ª¤¯¤³¤È
- ¢¨ ¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶ = UID ¤¬ 0¤Î¥æ¡¼¥¶¡£root ¤À¤±¤Ç¤Ê¤¤¤³¤È¤ËÃí°Õ (ÉáÄÌ root ¤À¤±¤Ë¤¹¤ë¤±¤É¡¦¡¦¡¦)
¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Î¥¢¥¯¥»¥¹´Æ»ë †
- /var/adm/sulog ¥Õ¥¡¥¤¥ë
# cat /var/adm/sulog
SU 03/24 00:23 + pts/3 root-root
SU 03/24 00:23 + pts/3 root-kagyuu
SU 03/24 00:26 + pts/3 kagyuu-root
- su ¼Â¹Ô»þ¹ï
- À®ÈÝ ( + : À®¸ù / - : ¼ºÇÔ )
- ¥Ý¡¼¥È
- ÀÚ¤êÂؤ¨Á°¸å¤Î¥æ¡¼¥¶Ì¾
- /etc/default/su ¥Õ¥¡¥¤¥ë
bash-3.00$ cat /etc/default/su
#ident "@(#)su.dfl 1.6 93/08/14 SMI" /* SVr4.0 1.2 */
# SULOG determines the location of the file used to log all su attempts
#
SULOG=/var/adm/sulog
# CONSOLE determines whether attempts to su to root should be logged
# to the named device
#
#CONSOLE=/dev/console
# PATH sets the initial shell PATH variable
#
#PATH=/usr/bin:
# SUPATH sets the initial shell PATH variable for root
#
#SUPATH=/usr/sbin:/usr/bin
# SYSLOG determines whether the syslog(3) LOG_AUTH facility should be used
# to log all su attempts. LOG_NOTICE messages are generated for su's to
# root, LOG_INFO messages are generated for su's to other users, and LOG_CRIT
# messages are generated for failed su attempts.
#
SYSLOG=YES
bash-3.00$
- sulog ¥Õ¥¡¥¤¥ë¤Ë¡¢¥¢¥¯¥»¥¹´Æ»ë¥í¥°¤ò½ÐÎϤ¹¤ë
- SULOG ÊÑ¿ô¤Ë¡¢½ÐÎÏ¥Õ¥¡¥¤¥ë¤òÄêµÁ¤¹¤ë¤È¡¢¥¢¥¯¥»¥¹´Æ»ë¥í¥°¤ò½ÐÎϤ¹¤ë
- OS ¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë¤Ï¡¢/var/adm/sulog ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë
- SULOG ÊÑ¿ô¤ò¥³¥á¥ó¥È¥¢¥¦¥È¤¹¤ë¤È¡¢¥¢¥¯¥»¥¹´Æ»ë¥í¥°¤¬½ÐÎϤµ¤ì¤Ê¤¤
- ¥æ¡¼¥¶¤¬¡¢su ¥³¥Þ¥ó¥É¤Ç¡¢root ¥æ¡¼¥¶¤Ë¤Ê¤í¤¦¤È¤·¤¿¤éľ¤Á¤ËÊó¹ð¤¹¤ë
- CONSOLE ÊÑ¿ô¤Ë¡¢/dev/console ¤òÀßÄꤹ¤ë
¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Î¥¢¥¯¥»¥¹À©¸Â †
- /etc/default/login ¥Õ¥¡¥¤¥ë¤Ë¡¢
CONSOLE=/dev/console
¤ÈµºÜ¤·¤Æ¤¢¤ë¤È¡¢root ¥æ¡¼¥¶¤Ï¡¢¥í¡¼¥«¥ë¤Ç¤Î¥í¥°¥¤¥ó¤Î¤ß¤¬µö²Ä¤µ¤ì¤ë
- ¤³¤ì¤¬¡¢OS¥¤¥ó¥¹¥È¡¼¥ë»þ¤Î¾õÂÖ
- CONSOLE ÊÑ¿ô¤ò¥³¥á¥ó¥È¥¢¥¦¥È¤·¤¿¤ê¡¢Ãͤò¶õ¤Ë¤¹¤ë¤È¡¢root ¥æ¡¼¥¶¤Ï¥í¥°¥¤¥ó¤Ç¤¤Ê¤¯¤Ê¤ë
- root ¤Ç¥í¥°¥¤¥ó¤Ç¤¤Ê¤¯¤Æ¤â su ¥³¥Þ¥ó¥É¤Ç root ¤Ë¤Ê¤ë¤³¤È¤Ï¤Ç¤¤ë
¥¢¥¯¥»¥¹¸¢¸Â †
FTP †
- /etc/ftpd/ftpusers
- ¤³¤Î¥Õ¥¡¥¤¥ë¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥æ¡¼¥¶¤Ï¡¢ftp¤Î»ÈÍѤ¬¶Ø»ß¤µ¤ì¤ë
- ¥æ¡¼¥¶¤Ï¡¢/etc/passwd ¥Õ¥¡¥¤¥ë¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥æ¡¼¥¶
- /etc/ftpd/ftphosts
- /etc/shells
.rhosts †
ssh †
¥Õ¥¡¥¤¥ë¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó †
ls †
bash-3.00$ ls -la ~/Desktop/
¹ç·× 12
drwxr-xr-x 2 kagyuu other 512 3·î 24Æü 00:25 .
drwxr-xr-x 14 kagyuu other 512 3·î 25Æü 01:18 ..
-rw-r--r-- 1 kagyuu other 1431 3·î 24Æü 00:25 star.desktop
-rw-r--r-- 1 kagyuu other 1241 3·î 24Æü 00:25 starthere.desktop
chmod †
chmod [-fR] <permission mode> <file>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-f | ¶¯À© |
-R | ºÆµ¢Åª¤Ë¥Ç¥£¥ì¥¯¥È¥ê¤ò¤¿¤É¤Ã¤Æ¼Â¹Ô |
permission mode | [ugoa] [+-=] [r][w][x] |
[0-7][0-7][0-7] |
- permission mode
- ¼Â¹ÔÎã
bash-3.00$ touch a.sh
bash-3.00$ ls -la | grep a.sh
-rw-r--r-- 1 kagyuu other 0 3·î 28Æü 13:41 a.sh
bash-3.00$ chmod u+x a.sh
bash-3.00$ ls -la | grep a.sh
-rwxr--r-- 1 kagyuu other 0 3·î 28Æü 13:41 a.sh
bash-3.00$ chmod u-w a.sh
bash-3.00$ ls -la | grep a.sh
-r-xr--r-- 1 kagyuu other 0 3·î 28Æü 13:41 a.sh
bash-3.00$ chmod u=r a.sh
bash-3.00$ ls -la | grep a.sh
-r--r--r-- 1 kagyuu other 0 3·î 28Æü 13:41 a.sh
bash-3.00$ chmod 755 a.sh
bash-3.00$ ls -la | grep a.sh
-rwxr-xr-x 1 kagyuu other 0 3·î 28Æü 13:41 a.sh
bash-3.00$
chown †
chown [-fhR] <owner>[:<group>] <file>
- h ¥ª¥×¥·¥ç¥ó
- ¥Õ¥¡¥¤¥ë¤¬¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Î¾ì¹ç¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¤È¡¢¥ê¥ó¥¯Àè¤Î½êͼԤ¬Êѹ¹¤µ¤ì¤ë¡£
- ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤È¡¢¥ê¥ó¥¯¤ò¥Ý¥¤¥ó¥È¤¹¤ë¥Õ¥¡¥¤¥ë¤Î½êͼԤ¬Êѹ¹¤µ¤ì¤ë
chgrp †
chgrp [-fhR] <group> <file>
Æüì¥Õ¥¡¥¤¥ë¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó †
setuid †
bash-3.00$ chmod 4755 a.sh
bash-3.00$ ls -la | grep a.sh
-rwsr-xr-x 1 kagyuu other 0 3·î 28Æü 13:41 a.sh
¢¬
- ls ¥³¥Þ¥ó¥É¼Â¹Ô·ë²Ì¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥óÎó¤Î user ¤Î ¼Â¹Ô¸¢¸Â¤¬ x ¤Ç¤Ê¤¯ s ¤Ë¤Ê¤Ã¤Æ¤¤¤ë
- ¥Õ¥¡¥¤¥ë¤ò¼Â¹Ô¤·¤¿¾ì¹ç¤Ë¡¢¤½¤Î¥×¥í¥»¥¹¤¬¥Õ¥¡¥¤¥ë½êͼԤθ¢¸Â¤ÇÆ°¤¯¤è¤¦¤Ë¤¹¤ë¤¿¤á¤Î¥Õ¥é¥°
- setuid ¤ä setgid ¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤òÀßÄꤹ¤ë¤È¤¡¢¥Õ¥¡¥¤¥ë¤Î½êͼԤ䥰¥ë¡¼¥×¤¬ root ¤À¤È¡¢¥×¥í¥»¥¹¤¬ root ¤ÇÆ°¤¤¤Æ¤·¤Þ¤¦¤³¤È¤ËÃí°Õ¤¹¤ë
setgid †
bash-3.00$ chmod 2755 a.sh
bash-3.00$ ls -la | grep a.sh
-rwxr-sr-x 1 kagyuu other 0 3·î 28Æü 13:41 a.sh
¢¬
- ls ¥³¥Þ¥ó¥É¼Â¹Ô·ë²Ì¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥óÎó¤Î group ¤Î ¼Â¹Ô¸¢¸Â¤¬ x ¤Ç¤Ê¤¯ s ¤Ë¤Ê¤Ã¤Æ¤¤¤ë
- ¥Õ¥¡¥¤¥ë¤ò¼Â¹Ô¤·¤¿¾ì¹ç¤Ë¡¢¤½¤Î¥×¥í¥»¥¹¤¬¥Õ¥¡¥¤¥ë½êÍ¥°¥ë¡¼¥×¤Î¸¢¸Â¤ÇÆ°¤¯¤è¤¦¤Ë¤¹¤ë¤¿¤á¤Î¥Õ¥é¥°
¥¹¥Æ¥£¥Ã¥¡¼¥Ó¥Ã¥È †
bash-3.00$ touch /tmp/matrix.cvs
bash-3.00$ su -
# chmod 1777 /tmp/matrix.cvs
# ls -la /tmp | grep matrix.cvs
-rwxrwxrwt 1 kagyuu other 0 3·î 28Æü 14:36 matrix.cvs
¢¬
- ls ¥³¥Þ¥ó¥É¼Â¹Ô·ë²Ì¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥óÎó¤ÎËöÈø¤Ë t ¤¬¤Ä¤¤¤Æ¤¤¤ë
- ¥Õ¥¡¥¤¥ë¤òºï½ü¤Ç¤¤Ê¤¯¤¹¤ëÍפˤ¹¤ë¤¿¤á¤Î¥Õ¥é¥°
- ºï½ü¤Ç¤¤ë¿Í
- ¥Õ¥¡¥¤¥ë½êͼÔ
- ¥Ç¥£¥ì¥¯¥È¥ê½êͼÔ
- Æø¢¥æ¡¼¥¶(UID¤¬0)
¥×¥í¥»¥¹´ÉÍý †
ps †
ps <options>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-a | ps ¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤¿¥¿¡¼¥ß¥Ê¥ë¤«¤é¤Î¥ê¥¯¥¨¥¹¥ÈÉÑÅ٤νç¤Ë¥½¡¼¥È¤·¤Æɽ¼¨¤¹¤ë |
-A | ¼Â¹ÔÃæ¤ÎÁ´¤Æ¤Î¥×¥í¥»¥¹¤Î¾ðÊó¤òɽ¼¨¤¹¤ë |
-e | -A ¤ÈƱ¤¸ |
-f | ¥ê¥¹¥È¤Î¥Õ¥ëɽ¼¨ |
-l | ¥ê¥¹¥È¤ò¥í¥ó¥°¥Õ¥©¡¼¥Þ¥Ã¥È¤Çɽ¼¨¤µ¤»¤ë |
-P <procList> | <procList> ¤Ë»ØÄꤵ¤ì¤¿ ¥×¥í¥»¥¹ID ¤Ë³ºÅö¤¹¤ë¥×¥í¥»¥¹¤Î¤ßɽ¼¨¤¹¤ë |
-u <uidList> | <uidList> ¤Ë»ØÄꤵ¤ì¤¿ ¼Â¸ú¥æ¡¼¥¶ID(EUID (cf.setuid)) ¤â¤·¤¯¤Ï ¥í¥°¥¤¥ó̾ ¤Ë³ºÅö¤¹¤ë¥×¥í¥»¥¹¤Î¤ßɽ¼¨¤¹¤ë |
-U <uidList> | <uidList> ¤Ë»ØÄꤵ¤ì¤¿ ¼Â¥æ¡¼¥¶ID(UID) ¤â¤·¤¯¤Ï ¥í¥°¥¤¥ó̾ ¤Ë³ºÅö¤¹¤ë¥×¥í¥»¥¹¤Î¤ßɽ¼¨¤¹¤ë |
pgrep †
pgrep <options> <pattern>
- ¡Ö ps | grep <pattern> ¡×¤ò°ì¤Ä¤Î¥³¥Þ¥ó¥É¤Ë¤·¤¿¤â¤Î
- ¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó¤Î¤Û¤È¤ó¤É¤Ï ps ¤ÈƱ¤¸
- pgrepÆÃͤΥ³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-f | /proc/nnnnn/psinf ¥Õ¥¡¥¤¥ë¤Î ps_psargs ¥Õ¥£¡¼¥ë¥É¤«¤é¼èÆÀ¤µ¤ì¤ëÀµµ¬É½¸½¤Ë°ìÃפ¹¤ë¥×¥í¥»¥¹¾ðÊó¤Î¤ßɽ¼¨¤¹¤ë |
-n | <pattern> ¤Ë°ì°Õ¤¹¤ëÃæ¤ÇºÇ¿·¤Î¥×¥í¥»¥¹(ºÇ¤âºÇ¸å¤ËÀ¸À®¤µ¤ì¤¿¥×¥í¥»¥¹)¤Ë´Ø¤¹¤ë¥×¥í¥»¥¹¾ðÊó¤Î¤ß¤òɽ¼¨¤¹¤ë |
-o | <pattern> ¤Ë°ìÃפ¹¤ëÃæ¤ÇºÇ¸Å¤Î¥×¥í¥»¥¹(ºÇ¤âºÇ¸Å¤ËÀ¸À®¤µ¤ì¤¿¥×¥í¥»¥¹)¤Ë´Ø¤¹¤ë¥×¥í¥»¥¹¾ðÊó¤Î¤ß¤òɽ¼¨¤¹¤ë |
-v | ¾ò·ï»ØÄê¤òȿž¤µ¤»¤ë(»ØÄꤷ¤¿¾ò·ï¤Ë°ìÃפ·¤Ê¤¤¥×¥í¥»¥¹¤Ë´Ø¤¹¤ë¥×¥í¥»¥¹¾ðÊó¤òɽ¼¨¤¹¤ë) |
-x | ¼Â¸ú¥Õ¥¡¥¤¥ë̾¤¬ <pattern> ¤Ë´°Á´°ìÃפ¹¤ë¥×¥í¥»¥¹¤Ë´Ø¤¹¤ë¥×¥í¥»¥¹¾ðÊó¤òɽ¼¨¤¹¤ë |
prstat †
pstat [<options>] [<interval> [<count>]]
- °ìÄê´Ö³Ö¤Ç¡¢ps ½ÐÎÏ·ë²Ì¤ò¹¹¿·¤¹¤ë
- interval : ¹¹¿·´Ö³Ö¡£¥Ç¥Õ¥©¥ë¥ÈÃÍ¤Ï 5ÉÃ
- count : ¹¹¿·²ó¿ô¡£¥Ç¥Õ¥©¥ë¥ÈÃÍ¤Ï ÌµÀ©¸Â
- ¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó¤Î¤Û¤È¤ó¤É¤Ï ps ¤ÈƱ¤¸
- pstatÆÃͤΥ³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-a | ¥×¥í¥»¥¹¤È¥æ¡¼¥¶¤Î¾ðÊó¤òɽ¼¨¤µ¤»¤ë |
-c | Á´³«¤Î½ÐÎϤò¾å½ñ¤¤»¤º¡¢Â³¤±¤Æ½ÐÎϤ¹¤ë |
-n <number> | ¾å°Ì <number> ¹Ô¤·¤«É½¼¨¤·¤Ê¤¤ |
-s <key> | <key>¤Ç¡¢¹ß½ç¤Ë¥½¡¼¥È¤¹¤ë¡£<key> := cpu , pri , rss(¢¨) , size , time |
-S <key> | <key>¤Ç¡¢¾º½ç¤Ë¥½¡¼¥È¤¹¤ë¡£ |
¢¨rss : resident set size¡£¼Â¥á¥â¥ê¾å¤Ë¾ïÃ󤷤Ƥ¤¤ë¥µ¥¤¥º¡£
kill, pkill †
kill [ <signal> | -<signal number> ] <pid>
ex.
kill SIGHUP 12345
kill -9 12345
- ¥·¥°¥Ê¥ë°ìÍ÷
bash-3.00$ kill -l
1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL
5) SIGTRAP 6) SIGABRT 7) SIGEMT 8) SIGFPE
9) SIGKILL 10) SIGBUS 11) SIGSEGV 12) SIGSYS
13) SIGPIPE 14) SIGALRM 15) SIGTERM 16) SIGUSR1
17) SIGUSR2 18) SIGCHLD 19) SIGPWR 20) SIGWINCH
21) SIGURG 22) SIGIO 23) SIGSTOP 24) SIGTSTP
25) SIGCONT 26) SIGTTIN 27) SIGTTOU 28) SIGVTALRM
29) SIGPROF 30) SIGXCPU 31) SIGXFSZ 32) SIGWAITING
33) SIGLWP 34) SIGFREEZE 35) SIGTHAW 36) SIGCANCEL
37) SIGLOST 41) SIGRTMIN 42) SIGRTMIN+1 43) SIGRTMIN+2
44) SIGRTMIN+3 45) SIGRTMAX-3 46) SIGRTMAX-2 47) SIGRTMAX-1
48) SIGRTMAX
- ¼ç¤Ê¥·¥°¥Ê¥ë
ÈÖ¹æ | ¥·¥°¥Ê¥ë | °ÕÌ£ |
1 | SIGHUP | ¥Ï¥ó¥°¥¢¥Ã¥× |
2 | SIGINT | ³ä¤ê¹þ¤ß(Interrupt)¡£Ctrl+C |
3 | SIGQUIT | ½ªÎ»(Quit)¡£Ctrl+\ |
6 | SIGABRT | °Û¾ï½ªÎ»(ABORT) |
9 | SIGKILL | ¶¯À©½ªÎ» |
15 | SIGTERM | Àµ¾ï½ªÎ»(Terminate)¡£kill ¥³¥Þ¥ó¥É¤Î¥Ç¥Õ¥©¥ë¥È |
23 | SIGSTOP | °ì»þÄä»ß |
25 | SIGCONT | ºÆ³« |
- pkill
kill [ <signal> | -<signal number> ] [<options>] [<process_name>]
ex.
pkill -9 -U kagyuu,magyuu ( kagyuu ¤È magyuu ¤Îµ¯Æ°¤·¤¿¥×¥í¥»¥¹¤òÄä»ß)
- pgrep ¤È kill ¤ò¹ç¤ï¤»¤¿¤è¤¦¤Ê¥³¥Þ¥ó¥É
- kill ¤Ç¤Ï¡¢process id ¤ò»ØÄꤷ¤¿¤¬¡¢pkill ¤ÇľÀÜ¥×¥í¥»¥¹¤ò»ØÄꤹ¤ë¤È¤¤Ë¤Ï¡¢process name ¤ò»ØÄꤹ¤ë¤³¤È¤ËÃí°Õ
pstop, prun, pwait †
¥³¥Þ¥ó¥É | µ¡Ç½ |
pstop [<pid>]* [<process name>]* | ¥×¥í¥»¥¹¤ò°ì»þÄä»ß¤¹¤ë |
prun [<pid>]* [<process name>]* | ¥×¥í¥»¥¹¤òºÆ³«¤¹¤ë |
pwait [<pid>]* [<process name>]* | ¥×¥í¥»¥¹¤Î½ªÎ»¤òÂÔ¤Ä |
cron,at †
- ¤É¤Á¤é¤â»ØÄꤵ¤ì¤¿»þ¹ï¤Ë¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë
¥³¥Þ¥ó¥É | µ¡Ç½ | ÀßÄê¥Õ¥¡¥¤¥ë |
cron | Äê´üŪ¤Ë¼Â¹Ô¤¹¤ë¥³¥Þ¥ó¥É | /var/spool/cron/crontab |
at | °ì²ó¤À¤±¼Â¹Ô¤¹¤ë¥³¥Þ¥ó¥É | /var/spool/cron/atjobs |
- cron ¤Ï¡¢¥®¥ê¥·¥ã¿ÀÏäΡÖChronos¡×¤ËͳÍ褹¤ë
- at ¤Ï¡¢±Ñ¸ì¤ÎÁ°ÃÖ»ì(?)
cron †
- crontab ¤ÎÆâÍÆ
bash-3.00 # crontab -l
#ident "@(#)root 1.21 04/03/23 SMI"
#
# The root crontab should be used to perform accounting data collection.
#
#
10 3 * * * /usr/sbin/logadm
15 3 * * 0 /usr/lib/fs/nfs/nfsfind
30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean
#
# The rtc command is run to adjust the real time clock if and when
# daylight savings time changes.
#
1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
#10 3 * * * /usr/lib/krb5/kprop_script ___slave_kdcs___
25 3 * * * /usr/lib/patch/swupAuto > /dev/null 2>&1
- crontab ¤Î½ñ¼°
15 3 * * 0 /usr/lib/fs/nfs/nfsfind
ʬ Éà Æü ·î ÍËÆü ¥³¥Þ¥ó¥É
ÍËÆü¤Ï 0:Æü 1:·î 2:²Ð 3:¿å 4:ÌÚ 5:¶â 6:ÅÚ
- crontab ¤ÎÊÔ½¸¡¦É½¼¨¡¦ºï½ü
crontab -[elr] [<user_name>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-e | ÊÔ½¸¡£´Ä¶ÊÑ¿ô VISUAL ¤Þ¤¿¤Ï EDITOR ¤Ç»ØÄꤵ¤ì¤¿¥¨¥Ç¥£¥¿¤Ç crontab ¤ÎÊÔ½¸¤ò¹Ô¤¦¡£´Ä¶ÊÑ¿ô¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï ed ¤¬Î©¤Á¾å¤¬¤ë |
-l | ɽ¼¨ |
-r | ºï½ü¡£¼«Ê¬°Ê³°¤Î crontab ¤ò¾Ã¤¹¤Ë¤Ï root ¸¢¸Â¤¬É¬Í× |
- crontab ¤ÎÊÔ½¸¸¢¸Â
at †
- atjobs ¤ÎÊÔ½¸
at [-m] <time> [<date>]
(at¥³¥Þ¥ó¥É¤òÂǤÁ¹þ¤à¤È¡¢¼Â¹Ô¥³¥Þ¥ó¥É¤ÎÆþÎÏÂÔ¤Á¤Ë¤Ê¤ë¡£¼Â¹Ô¥³¥Þ¥ó¥É¤ò
ÆþÎϤ·¤Æ Ctrl+D ¤ò²¡¤¹¤È¡¢atjobs ¤ËÅÐÏ¿¤µ¤ì¤ë)
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-m | »ØÄꥸ¥ç¥Ö½ªÎ»»þ¤Ë¡¢¥æ¡¼¥¶¤Ë¥á¡¼¥ë¤òÁ÷¤ë |
<time> | »þ¹ï¡£midnight(12:00am)¡¢noon(12:00pm)¡¢now ¤òÍøÍÑ²Ä |
<date> | ÆüÉÕ¡£today¡¢tomorrow¡¢+ 3 days ¤òÍøÍÑ²Ä |
- ¼Â¸úÎã
bash-3.00$ echo "/sbin/shutdown -y -i6 -g0 -y" | at 0400
/usr/bin/bash ¤ò»ÈÍѤ·¤Æ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Þ¤¹¡£
·î 3·î 30 04:00:00 2009 ¤Î¥¸¥ç¥Ö 1238353201.a ¤Ç¤¹
bash-3.00$ cat /var/spool/cron/atjobs/1238353201.a | tail -10
export dtstart_sessionlogfile; dtstart_sessionlogfile='/dev/null'
export COLORTERM; COLORTERM='gnome-terminal'
export _; _='/usr/bin/at'
export OLDPWD; OLDPWD='/export/home/kagyuu/Desktop'
$SHELL << '...the rest of this file is shell input'
#ident "@(#).proto 1.6 00/05/01 SMI" /* SVr4.0 1.2 */
cd /export/home/kagyuu
umask 22
/sbin/shutdown -y -i6 -g0 -y
- at ¤ÎÊÔ½¸¸¢¸Â
bash-3.00$ cat /etc/cron.d/at.deny
daemon
bin
nuucp
listen
nobody
noaccess
¥×¥ê¥ó¥¿ †
Solris¤Î¥×¥ê¥ó¥È¥×¥í¥»¥¹¤Î³µÍ× †
- ¥æ¡¼¥¶¤¬ lp ¤ä lpr ¥³¥Þ¥ó¥É¤Ç¡¢°õºþ»Ø¼¨¤ò½Ð¤¹
- ¥×¥ê¥ó¥¿Ì¾¤¬¾Êά¤µ¤ì¤¿¾ì¹ç¤Î¥×¥ê¥ó¥¿¤Ï¡¢¼¡¤ÎÍ¥Àè½ç°Ì¤Ç·èÄꤵ¤ì¤ë
- ´Ä¶ÊÑ¿ô $PRINTER
- $LPDEST ¤ÎÃÍ
/.priters ¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥×¥ê¥ó¥¿
- /etc/printers.conf ¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¥×¥ê¥ó¥¿
- NIS¤ËÌ䤤¹ç¤ï¤»¤ë
- ¥×¥ê¥ó¥È¥ê¥¯¥¨¥¹¥È¤Ï¡¢¤¤¤Ã¤¿¤ó /var/spool/lp ¤ËÃߤ¨¤é¤ì¤Æ IPP(Internet Printing Protocol) ¤Ç¥×¥ê¥ó¥¿¥µ¡¼¥Ð¤ËÁ÷¤é¤ì¤ë
- IPP¥ê¥¹¥Ê¡¼¤¬¥×¥ê¥ó¥È¥ê¥¯¥¨¥¹¥È¤ò¼õ¤±¼è¤ë
- Apache ¤Î¾å¤ÇÆ°¤¤¤Æ¤¤¤ë Web ¥µ¡¼¥Ó¥¹(Port 631)
- svc:/application/print/ipp-listener
- LP¥×¥ê¥ó¥È¥µ¡¼¥Ó¥¹( = lpsched = ¥×¥ê¥ó¥È¥¹¥±¥¸¥å¡¼¥é )¤Ë¥×¥ê¥ó¥È¥¸¥ç¥Ö¤¬¥¹¥×¡¼¥ë¤µ¤ì¤ë
- ¥×¥ê¥ó¥¿¤ò½é´ü²½¤·¤Æ¡¢¥×¥ê¥ó¥È¥¸¥ç¥Ö¤ÎÄó½Ð¤È½èÍý¤¬¤Ç¤¤ë¤è¤¦¤Ë¤¹¤ë
- ¥Õ¥¡¥¤¥ë¤Î´ÉÍý¤ª¤è¤Ó¥í¡¼¥«¥ë¥×¥ê¥ó¥È¤Î¥ê¥¯¥¨¥¹¥È¤ò¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¤¹¤ë
- ¥×¥ê¥ó¥È¥¸¥ç¥Ö¤Î¾õÂÖ¤òÄÉÀפ¹¤ë
- ¥Õ¥¡¥¤¥ë¤Î¥Õ¥£¥ë¥¿¥ê¥ó¥°¤ò¹Ô¤¤¡¢»ÈÍѤ¹¤ë¥×¥ê¥ó¥¿¤ËÂбþ¤·¤Æ¤¤¤ë¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë¥×¥ê¥ó¥È¥¸¥ç¥Ö¤òÊÑ´¹¤¹¤ë
- ¥×¥ê¥ó¥È¤Ë¾ã³²¤¬È¯À¸¤·¤¿¾ì¹ç¤Ë¥ê¥¯¥¨¥¹¥È¸µ¤Ë·Ù¹ð¤¹¤ë
- ¥×¥ê¥ó¥¿¡¼¤«¤é½ÐÎϤµ¤ì¤ë
¥×¥ê¥ó¥¿¤Î¾õÂ֤γÎǧ †
lpstat [-d] [-p <printer name>] [-D] [-l] [-o [<list>]] [-t]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-d | ¥·¥¹¥Æ¥à¤Î¥Ç¥Õ¥©¥ë¥È¥×¥ê¥ó¥¿¤òɽ¼¨¤¹¤ë |
-p <printer name> | ¥×¥ê¥ó¥¿¤Î¾õÂÖ¤òɽ¼¨¤¹¤ë(Active/idle¡¢Í¸ú¤Ë¤µ¤ì¤¿»þ¹ï/̵¸ú¤Ë¤µ¤ì¤¿»þ¹ï¡¢¥×¥ê¥ó¥È¥ê¥¯¥¨¥¹¥È¤ò¼õ¤±ÉÕ¤±¤Æ¤¤¤ë¤«) |
-D | -p ¤Ç»ØÄꤵ¤ì¤¿¥×¥ê¥ó¥¿¤Î¾ÜºÙ¾ðÊó¤òɽ¼¨ |
-l | -p ¤Ç»ØÄꤵ¤ì¤¿¥×¥ê¥ó¥¿¤ÎÆÃÀ¾ðÊó¤òɽ¼¨ |
-o [<list>] | <list> »ØÄꤷ¤¿¥ê¥¯¥¨¥¹¥È¤Ë´Ø¤¹¤ë¾ðÊó¤òɽ¼¨¡£¥×¥ê¥ó¥¿Ì¾¡¢¥¯¥é¥¹Ì¾¡¢¥ê¥¯¥¨¥¹¥ÈID¡£Ìµ»ØÄê»þ¤Ë¤ÏÁ´¤Æ¤òɽ¼¨ |
-t | LP¥×¥ê¥ó¥È¥µ¡¼¥Ó¥¹¤Î¾õÂÖ¤òɽ¼¨¤µ¤»¤ë |
¥×¥ê¥ó¥È¥¹¥±¥¸¥å¡¼¥é¤Îµ¯Æ°¡¦Ää»ß †
- µ¯Æ°¾õÂ֤γÎǧ
lpstat -r
or
svcs svc:/application/print/server
- ¥×¥ê¥ó¥È¥¹¥±¥¸¥å¡¼¥é¤Îµ¯Æ°
/usr/lib/lpsched
or
svcadm enable svc:/application/print/server
- ¥×¥ê¥ó¥È¥¹¥±¥¸¥å¡¼¥é¤ÎÄä»ß
/usr/lib/loshut
or
svcadm disable svc:/application/print/server
¥×¥ê¥ó¥È¥¹¥±¥¸¥å¡¼¥é¤Î¥í¥° †
¥×¥ê¥ó¥¿¥ê¥¯¥¨¥¹¥È¤Î¥í¥°¤ÏÆó¤Ä¤Î¾ì½ê¤Ë½ÐÎϤµ¤ì¤ë
¥Ç¥£¥ì¥¯¥È¥ê | ¥¢¥¯¥»¥¹²Äǽ¤Ê¥æ¡¼¥¶ |
/var/spool/lp/requests/<system name> | su¡¢lp¥µ¡¼¥Ó¥¹ |
/var/spool/lp/tmp/<system name> | su¡¢lp¥µ¡¼¥Ó¥¹¡¢¥ê¥¯¥¨¥¹¥È¤·¤¿¥æ¡¼¥¶ |
¥×¥ê¥ó¥È¥ê¥¯¥¨¥¹¥È¤Î³Îǧ¤È¥¥ã¥ó¥»¥ë †
¥×¥ê¥ó¥¿¤ÎÄɲà †
lpadmin -p <system name>[!<printer name>]
[-s <system name> | -U <dial info> | -v <device name>]
[-e <printer> | -i <interface> | -m <model>]
# | ¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
1 | -p <system name>!<printer name> | ¥×¥ê¥ó¥¿Ì¾ |
2 | -s <system name> | ¥ê¥â¡¼¥È¥×¥ê¥ó¥¿ |
-U <dial info> | ¥À¥¤¥¢¥ë¥¢¥Ã¥×¤Î¥ê¥â¡¼¥È¥×¥ê¥ó¥¿ |
-v <device name> | ¥í¡¼¥«¥ë¥×¥ê¥ó¥¿ |
3 | -e <printer> | ´û¸¤Î¥×¥ê¥ó¥¿¥É¥é¥¤¥Ð¤òº£²óÄɲ乤ë¥×¥ê¥ó¥¿¤Î¥É¥é¥¤¥Ð¡¼¤È¤·¤Æ¥³¥Ô¡¼¤¹¤ë |
-i <interface> | ¿·µ¬¤Î¥×¥ê¥ó¥¿¥É¥é¥¤¥Ð¤òº£²óÄɲ乤ë¥×¥ê¥ó¥¿¤Î¥É¥é¥¤¥Ð¡¼¤È¤·¤ÆÍøÍѤ¹¤ë¡£(<interface> ¤Ï¡¢¥É¥é¥¤¥Ð¤Î¥Õ¥ë¥Ñ¥¹) |
-m <model> | LP¥×¥ê¥ó¥È¥µ¡¼¥Ó¥¹¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë <model> ̾¤Î¥×¥ê¥ó¥¿¥É¥é¥¤¥Ð¡¼¤òº£²óÄɲ乤ë¥×¥ê¥ó¥¿¤Î¥É¥é¥¤¥Ð¡¼¤È¤·¤ÆÍøÍѤ¹¤ë |
- ¥ê¥â¡¼¥È¥×¥ê¥ó¥¿¡¢¥À¥¤¥¢¥ë¥¢¥Ã¥×¡¢¥í¡¼¥«¥ë¥×¥ê¥ó¥¿ ¤Î¤¤¤Å¤ì¤«¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ë
- ¥×¥ê¥ó¥¿¥É¥é¥¤¥Ð¤Î¶¡µë¸µ¤ò°ì¤Ä»ØÄꤹ¤ëɬÍפ¬¤¢¤ë
- °ì¤Ä¤Î¥×¥ê¥ó¥¿¥Ç¥Ð¥¤¥¹¤Ë¡¢Ê£¿ô¤Î¥×¥ê¥ó¥¿Ì¾¤ò¤Ä¤±¤ë¤³¤È¤¬²Äǽ
- ¥×¥ê¥ó¥¿¤òÄɲ乤ë¤È¡¢¼«Æ°Åª¤Ë LP¥×¥ê¥ó¥È¥µ¡¼¥Ó¥¹(lpsched)¤¬µ¯Æ°¤¹¤ë
- ¥×¥ê¥ó¥¿¤Î¹½À®¾ðÊó : /etc/lp/printers/<printer name>/configuration
¥×¥ê¥ó¥¿¤Îºï½ü †
# reject <printer name>
# disable <printer name>
# lpadmin -x <printer name>
- lpadmin -x ¤Ç¥×¥ê¥ó¥¿¤òºï½ü¤¹¤ëÁ°¤Ë¡¢¥×¥ê¥ó¥È¥ê¥¯¥¨¥¹¥È¤Î¼õ¤±Æþ¤ì¤òÃæ»ß¤·(reject)¡¢¥¹¥×¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥×¥ê¥ó¥È¥ê¥¯¥¨¥¹¥È¤ò¥×¥ê¥ó¥È¤·¤Ê¤¤¤è¤¦¤Ë¤¹¤ë(disable) ɬÍפ¬¤¢¤ë¡£
- lpadmin -x ¤Ï¡¢¼¡¤Î¥Õ¥¡¥¤¥ë¤òºï½ü¤¹¤ë
- ¥×¥ê¥ó¥È¥µ¡¼¥Ð¤Î /etc/lp/printers ¥Ç¥£¥ì¥¯¥È¥ê¤Î¥¨¥ó¥È¥ê¥Õ¥¡¥¤¥ë
- ¥×¥ê¥ó¥È¥µ¡¼¥Ð¤Î /etc/printers.conf ¥Õ¥¡¥¤¥ë¤Î¥¨¥ó¥È¥ê¹Ô
- ¥¯¥é¥¤¥¢¥ó¥È¤Î /etc/printers.conf ¥Õ¥¡¥¤¥ë¤Î¥¨¥ó¥È¥ê¹Ô
¥¯¥é¥¤¥¢¥ó¥È¤ËÂФ¹¤ë¥×¥ê¥ó¥¿¤Î¥¢¥¯¥»¥¹À©¸Â †
- ¥×¥ê¥ó¥È¥ê¥¯¥¨¥¹¥È¤Î¼õÉÕµñÈÝ
reject <printer name>
- ¥×¥ê¥ó¥È¥ê¥¯¥¨¥¹¥È¤Î¼õÉպƳ«
accept <printer name>
- ¥×¥ê¥ó¥È¥ê¥¯¥¨¥¹¥È¤ò¥×¥ê¥ó¥È¤·¤Ê¤¤
disable <printer name>
- ¥×¥ê¥ó¥È¥ê¥¯¥¨¥¹¥È¤Î¥×¥ê¥ó¥È¤òºÆ³«
enable <printer name>
¥æ¡¼¥¶¤ËÂФ¹¤ë¥×¥ê¥ó¥¿¤Î¥¢¥¯¥»¥¹À©¸Â †
¥·¥¹¥Æ¥à¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤È¥ê¥¹¥È¥¢ †
¥Ð¥Ã¥¯¥¢¥Ã¥×¼êË¡¤ÎÈæ³Ó †
¥Ð¥Ã¥¯¥¢¥Ã¥×¼êË¡ | ³µÍ× |
¥Õ¥ë ¥Ð¥Ã¥¯¥¢¥Ã¥× | ¥Ð¥Ã¥¯¥¢¥Ã¥×¸µ¤ò¥¢¥ó¥Þ¥¦¥ó¥È¤·¡¢¥Ç¡¼¥¿¤òÁ´¤ÆÊÌÇÞÂΤËÊݸ¤¹¤ë |
Áýʬ ¥Ð¥Ã¥¯¥¢¥Ã¥× | ¥Ð¥Ã¥¯¥¢¥Ã¥×¸µ¤ò¥¢¥ó¥Þ¥¦¥ó¥È¤·¡¢Á°²ó¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤È¤Îº¹Ê¬¤òÊݸ¤¹¤ë |
¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È ¥Ð¥Ã¥¯¥¢¥Ã¥× | ¥Ð¥Ã¥¯¥¢¥Ã¥×¸µ¤Î¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤ËÂФ·¤Æ¡¢¥Ð¥Ã¥¯¥¢¥Ã¥×¤ò¹Ô¤¦(¥Ð¥Ã¥¯¥¢¥Ã¥×¸µ¤Ï¥Þ¥¦¥ó¥È¤·¤¿¤Þ¤Þ¤Ç¤è¤¤) |
ufsdump †
ufsdump [0123456789fustdWwnNDCcbavloS [<arguments>]] <files>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
0-9 | ¥Ð¥Ã¥¯¥¢¥Ã¥×¥ì¥Ù¥ë |
a <archiveFile> | ¥Ð¥Ã¥¯¥¢¥Ã¥×ÌÜÏ¿¤òºîÀ®¤¹¤ë ufsrestore ¤Ë¤è¤ë¥ê¥¹¥È¥¢»þ¤Ë¡¢¤É¤Î¥Õ¥¡¥¤¥ë¤ò¥ê¥¹¥È¥¢¤¹¤ë¤«¤Î³Îǧ¤ËÍѤ¤¤ë |
u | /etc/dumpdates ¥Õ¥¡¥¤¥ë¤Ë¡¢¥Ð¥Ã¥¯¥¢¥Ã¥×ÌÜÏ¿¤òºîÀ®¤¹¤ë |
D | ¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤Ø¥À¥ó¥×¤¹¤ë |
f <dumpFile> | ¥À¥ó¥×Àè¤ò»ØÄꤹ¤ë¡£¥Ç¥Õ¥©¥ë¥È¤Ï /dev/rmt/0 (¥í¡¼¥«¥ë¤Î¥Æ¡¼¥×)¡£¥í¡¼¥«¥ë¤Î¥Æ¡¼¥×¡¢¥Ç¥£¥¹¥¯¡¢¥ê¥â¡¼¥È¤Î¥Æ¡¼¥×¡¢¥Ç¥£¥¹¥¯¡¢É¸½à½ÐÎϤò»ØÄê²Äǽ |
n | ¥Ð¥Ã¥¯¥¢¥Ã¥×¼Â¹Ô»þ¤ËȯÀ¸¤·¤¿·Ù¹ð¤ò sys ¥°¥ë¡¼¥×¤ÎÁ´¥ª¥Ú¥ì¡¼¥¿¤ËÄÌÃΤ¹¤ë |
o | ¥Ð¥Ã¥¯¥¢¥Ã¥×´°Î»»þ¤Ë¥É¥é¥¤¥Ö¤ò¥ª¥Õ¥é¥¤¥ó¤Ë¤¹¤ë |
S | ¥Ð¥Ã¥¯¥¢¥Ã¥×¤ËɬÍפÊÍÆÎ̤ò·×»»¤¹¤ë(¼ÂºÝ¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤Ï¹Ô¤ï¤Ê¤¤) |
s <size> | ¥Ð¥Ã¥¯¥¢¥Ã¥×Àè¤Î¥Ü¥ê¥å¡¼¥à¥µ¥¤¥º¤ò»ØÄê(ufsdump¤Ï¡¢É¬ÍפÊÍÆÎ̤¬¤¢¤ë¤«¤ò³Îǧ¤¹¤ë¤Î¤Ç¡¢Æä˻ØÄꤹ¤ëɬÍפϤʤ¤) |
v | ¥Ð¥Ã¥¯¥¢¥Ã¥×½ªÎ»¸å¤Ë¡¢¥Ð¥Ã¥¯¥¢¥Ã¥×¥Õ¥¡¥¤¥ë¤Î¸¡¾Ú¤ò¹Ô¤¦¡£É¸½à½ÐÎϤ˥Х寥¢¥Ã¥×¤·¤¿¾ì¹ç¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï»ÈÍÑÉÔ²Ä |
w | ¥Ð¥Ã¥¯¥¢¥Ã¥×¤Î´°Î»¤·¤Ê¤«¤Ã¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥ê¥¹¥Èɽ¼¨¤¹¤ë(/etc/dumpdates¡¢/etc/vfstab ¤Î¾ðÊó¤ò¸µ¤Ë) |
- ¥³¥Þ¥ó¥É¤ÎÆÃħ
- ¥Ð¥Ã¥¯¥¢¥Ã¥×¸µ¤Ï¡¢raw¥Ç¥£¥¹¥¯¥¹¥é¥¤¥¹
- ¥Ð¥Ã¥¯¥¢¥Ã¥×¸µ¤Ï¡¢¥¢¥ó¥Þ¥¦¥ó¥È¤·¤¿¥Ç¥Ð¥¤¥¹ or Æɤ߼è¤êÀìÍѤʥǥХ¤¥¹
- ¥Ð¥Ã¥¯¥¢¥Ã¥×¸µ¤Ë¡¢¥Þ¥¦¥ó¥È¤·¤¿¤Þ¤Þ¤Î¥Ç¥Ð¥¤¥¹¤ò»ØÄê¤Ç¤¤ë¤¬¡¢¥á¥â¥ê¥Ð¥Ã¥Õ¥¡Ãæ¤Î¥Ç¡¼¥¿¤¬¥³¥Ô¡¼¤µ¤ì¤Ê¤¤¤¿¤á¡¢ÉÔ´°Á´¤Ê¥Ð¥Ã¥¯¥¢¥Ã¥×¤¬¹Ô¤ï¤ì¤ë
- µ²±¥Ö¥í¥Ã¥¯¡¢i¥Î¡¼¥É¡¢´ÖÀÜ¥¢¥É¥ì¥¹¥Î¡¼¥É¤«¤é¥Ý¥¤¥ó¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¥Õ¥ê¡¼¤Ê¥Ö¥í¥Ã¥¯¤Ï¥Ð¥Ã¥¯¥¢¥Ã¥×¤µ¤ì¤Ê¤¤¡Êdd ¤ÎÍͤ˥ǥ£¥¹¥¯¥¤¥á¡¼¥¸¤Î¥³¥Ô¡¼¤ò¤·¤Æ¤¤¤ë¤ï¤±¤Ç¤Ï¤Ê¤¤¡Ë
- ¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ï¡¢¥ê¥ó¥¯¥Õ¥¡¥¤¥ë¤Î¤ß¤¬¥³¥Ô¡¼¤µ¤ì¤ë (¥ê¥ó¥¯Àè¤Ï¥³¥Ô¡¼¤µ¤ì¤Ê¤¤)
- ¥À¥ó¥×¥ì¥Ù¥ë¤Î»ØÄê
- 0123456789
- ºÇ¸å¤Ë¹Ô¤ï¤ì¤¿¡¢º£²ó¤è¤ê¾®¤µ¤¤¥ì¥Ù¥ë¤È¤Îº¹Ê¬¥Ð¥Ã¥¯¥¢¥Ã¥×¤ò¹Ô¤¦
- Îã1
ÍËÆü | ¥À¥ó¥×¥ì¥Ù¥ë | ¥Ð¥Ã¥¯¥¢¥Ã¥× |
Æü | 0 | ¥Õ¥ë¥Ð¥Ã¥¯¥¢¥Ã¥× |
·î | 1 | ÆüÍËÆü¤È¤Îº¹Ê¬¥Ð¥Ã¥¯¥¢¥Ã¥× |
²Ð | 2 | ·îÍËÆü¤È¤Îº¹Ê¬¥Ð¥Ã¥¯¥¢¥Ã¥× |
¿å | 3 | ²ÐÍËÆü¤È¤Îº¹Ê¬¥Ð¥Ã¥¯¥¢¥Ã¥× |
ÌÚ | 4 | ¿åÍËÆü¤È¤Îº¹Ê¬¥Ð¥Ã¥¯¥¢¥Ã¥× |
¶â | 5 | ÌÚÍËÆü¤È¤Îº¹Ê¬¥Ð¥Ã¥¯¥¢¥Ã¥× |
ÅÚ | 6 | ¶âÍËÆü¤È¤Îº¹Ê¬¥Ð¥Ã¥¯¥¢¥Ã¥× |
Æü | 0 | ¥Õ¥ë¥Ð¥Ã¥¯¥¢¥Ã¥× |
- Îã2
ÍËÆü | ¥À¥ó¥×¥ì¥Ù¥ë | ¥Ð¥Ã¥¯¥¢¥Ã¥× |
Æü | 0 | ¥Õ¥ë¥Ð¥Ã¥¯¥¢¥Ã¥× |
·î | 9 | ÆüÍËÆü¤È¤Îº¹Ê¬¥Ð¥Ã¥¯¥¢¥Ã¥× |
²Ð | 9 | ÆüÍËÆü¤È¤Îº¹Ê¬¥Ð¥Ã¥¯¥¢¥Ã¥× |
¿å | 9 | ÆüÍËÆü¤È¤Îº¹Ê¬¥Ð¥Ã¥¯¥¢¥Ã¥× |
ÌÚ | 9 | ÆüÍËÆü¤È¤Îº¹Ê¬¥Ð¥Ã¥¯¥¢¥Ã¥× |
¶â | 9 | ÆüÍËÆü¤È¤Îº¹Ê¬¥Ð¥Ã¥¯¥¢¥Ã¥× |
ÅÚ | 9 | ÆüÍËÆü¤È¤Îº¹Ê¬¥Ð¥Ã¥¯¥¢¥Ã¥× |
Æü | 0 | ¥Õ¥ë¥Ð¥Ã¥¯¥¢¥Ã¥× |
- ¥Ð¥Ã¥¯¥¢¥Ã¥×ÍúÎò
- u ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È /etc/dumpdates ¤Ë¥Ð¥Ã¥¯¥¢¥Ã¥×ÍúÎò¤¬µÏ¿¤µ¤ì¤ë
- a ¥ª¥×¥·¥ç¥ó¤ÇǤ°Õ¤Î¥Õ¥¡¥¤¥ë¤Ë¥Ð¥Ã¥¯¥¢¥Ã¥×ÍúÎò¤¬µÏ¿¤µ¤ì¤ë
- ½ñ¼°
- ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à
- ¥À¥ó¥×¥ì¥Ù¥ë
- ¼Â»ÜÆü»þ
ufsrestore(ÈóÂÐÏå⡼¥É) †
ufsrestore(ÂÐÏå⡼¥É) †
# ufsrestore -if /dev/rmt/0m
ufsrestore >
ÍøÍѲÄǽ¤Ê¥³¥Þ¥ó¥É | µ¡Ç½ |
add <file> | Ãê½ÐÍѤ˥ޡ¼¥¯ |
cd <directory> | |
delete <file> | Ãê½ÐÍѤΥޡ¼¥¯¤ò³°¤¹ |
extract | Ãê½ÐÍѤ˥ޡ¼¥¯¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤òÃê½Ð¤¹¤ë |
help , ? | |
ls <directory> | |
marked <directory> | Ãê½ÐÍѤ˥ޡ¼¥¯¤µ¤ì¤¿¥Õ¥¡¥¤¥ë̾¤Î¥ê¥¹¥È¤òɽ¼¨ |
pwd | |
quit | |
verbose | |
cpio †
cpio <mode> [<options>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
mode | -i | copy in (ɸ½à½ÐÎϤ«¤é¥¢¡¼¥«¥¤¥Ö¤ÎÆɤ߹þ¤ß) |
-o | copy out (¥¢¡¼¥«¥¤¥Ö¤ÎºîÀ®¡¢É¸½àÆþÎϤ«¤é¥Õ¥¡¥¤¥ë¤Î¥ê¥¹¥È¤ò¼õ¤±¼è¤ë) |
-p | pass (¥Ç¥£¥ì¥¯¥È¥ê´Ö¤Î¥³¥Ô¡¼) |
-a | -o ¤ÈÁȤ߹ç¤ï¤»¤ë¡£ºîÀ®¤·¤¿¥¢¡¼¥«¥¤¥Ö¤Î¥¢¥¯¥»¥¹¥¿¥¤¥à¤ò¸½»þ¹ï¤Ë¹¹¿·¤¹¤ë |
-A | -o ¤ÈÁȤ߹ç¤ï¤»¤ë¡£´û¸¤Î¥¢¡¼¥«¥¤¥Ö¤ËÄɵ |
-d | -i ¤ÈÁȤ߹ç¤ï¤»¤ë¡£É¬Íפ˱þ¤¸¤Æ¥Ç¥£¥ì¥¯¥È¥ê¤òºîÀ®¤¹¤ë |
-m | -i ¤ÈÁȤ߹ç¤ï¤»¤ë¡£¥Õ¥¡¥¤¥ëÊѹ¹»þ¹ï¤ò°Ý»ý¤¹¤ë |
-t | -i ¤ÈÁȤ߹ç¤ï¤»¤ë¡£¥¢¡¼¥«¥¤¥Ö¤Ë´Þ¤Þ¤ì¤ë¥Õ¥¡¥¤¥ë¤Î¥ê¥¹¥È¤òɽ¼¨¤¹¤ë |
- ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤ò¥Ð¥Ã¥¯¥¢¥Ã¥×¤¹¤ë
$ find . | cpio -oa > /tmp/backup.cpio
- ¥Ð¥Ã¥¯¥¢¥Ã¥×¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤ÎÆâÍƤòɽ¼¨¤¹¤ë
$ cpio -it < /tmp/backup.cpio
- Á´¥Õ¥¡¥¤¥ë¤òÉü¸µ¤¹¤ë
$ cpio -idm < /tmp/backup.cpio
- ÆÃÄê¤Î¥Õ¥¡¥¤¥ë(XML¤ÈXSD)¤Î¤ß¼è¤ê½Ð¤¹
$ cpio -im < /tmp/backup.cpio "*.xml" "*.xsd"
tar †
tar <options> [<tar file name>] [<files to backup>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
c | ¥¢¡¼¥«¥¤¥Ö¤¹¤ë |
x | Ÿ³«¤¹¤ë |
f | <tar file name>¤Ë¡¢°µ½Ì¡¦Å¸³«¤¹¤ë¡£Ì¤»ØÄê»þ¤Ïɸ½àÆþ½ÐÎϤòÁàºî |
t | ¥¢¡¼¥«¥¤¥Ö¤ÎÆâÍƤòɽ¼¨¤¹¤ë |
u | ¥¢¡¼¥«¥¤¥Ö¤ØÄɵ¤¹¤ë |
v | ¾éĹ¥â¡¼¥É |
pax †
pax [<mode>] [<options>]
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
mode | -r | Æɤ߹þ¤ß¥â¡¼¥É |
-w | ½ñ¤¹þ¤ß¥â¡¼¥É |
-rw | ¥³¥Ô¡¼¥â¡¼¥É |
(̤»ØÄê) | ¥ê¥¹¥È¥â¡¼¥É |
-a | ´û¸¤Î¥¢¡¼¥«¥¤¥Ö¤ËÄɵ¤¹¤ë |
-k | ´û¸¤Î¥Õ¥¡¥¤¥ë¤ò¾å½ñ¤¤·¤Ê¤¤ |
-f <archive> | ¥¢¡¼¥«¥¤¥Ö¤ò»ØÄꤹ¤ë(̤»ØÄê»þ¤Ïɸ½àÆþ½ÐÎϤËÂФ¹¤ëÁàºî¤¬¹Ô¤ï¤ì¤ë) |
-x <format> | ¥¢¡¼¥«¥¤¥Ö¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤ò»ØÄꤹ¤ë¡£pax,cpio,ustar,xustar |
dd †
$ dd if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t1d0s2
$ dd if=/dev/rdsk/c0t0d0s2 of=~/backup.file
- ¥Ç¥£¥¹¥¯¥¤¥á¡¼¥¸¤ò¤½¤Î¤Þ¤Þ¥³¥Ô¡¼¤·¤¿¤ê¡¢¥Õ¥¡¥¤¥ë¤Ë½ñ¤½Ð¤¹
- ¥Ö¥í¥Ã¥¯¥ì¥Ù¥ë¤Î¥³¥Ô¡¼¤ò¹Ô¤¦¤Î¤Ç¡¢²ÄÊÑĹ¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¤Ø½ñ¤½Ð¤¹¤È¤¤Ë¤Ï¡¢"bs=128k" ¤Ê¤É¤È¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ë
¥Ð¥Ã¥¯¥¢¥Ã¥×·Ï¥³¥Þ¥ó¥É¤ÎÈæ³Ó †
¥³¥Þ¥ó¥É | ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¶³¦¤Îǧ¼± | Ê£¿ô¥Ü¥ê¥å¡¼¥à¥Ð¥Ã¥¯¥¢¥Ã¥×¤Î¥µ¥Ý¡¼¥È |
ufsdump | Âбþ | Âбþ |
cpio | ÉÔ²Ä | Âбþ |
pax | ÉÔ²Ä | Âбþ |
tar | ÉÔ²Ä | ÉÔ²Ä |
dd | Âбþ | ÉÔ²Ä |
fssnap †
- fssnap ¤Î»ÅÁȤß
- ¼Â¥Õ¥¡¥¤¥ë¤ò fssnap ¥³¥Þ¥ó¥É¤Ç¡¢¥Ð¥Ã¥¥ó¥°¡¦¥¹¥È¥¢¡¦¥Õ¥¡¥¤¥ë¤Ë¥Þ¥Ã¥Ô¥ó¥°¤¹¤ë¡£
- ¥Ð¥Ã¥¥ó¥°¡¦¥¹¥È¥¢¡¦¥Õ¥¡¥¤¥ë¤òÆɤ߼è¤êÀìÍѤΥǥХ¤¥¹¤È¤·¤Æ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¥Þ¥¦¥ó¥È¤¹¤ë¡£
- ¥Ð¥Ã¥¥ó¥°¡¦¥¹¥È¥¢¡¦¥Õ¥¡¥¤¥ë¤ò¥Þ¥¦¥ó¥È¤·¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ËÂФ·¤Æ¡¢ufsdump ¤ä cpio ¤ò¼Â¹Ô¤·¤Æ¥Ð¥Ã¥¯¥¢¥Ã¥×¤ò¹Ô¤¦¡£
- ¤³¤¦¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢¼Â¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥Þ¥¦¥ó¥È¤·¤¿¤Þ¤Þ¥Ð¥Ã¥¯¥¢¥Ã¥×¤¬¹Ô¤¨¤ë(¤«¤Ê¤êÃÙ¤¯¤Ê¤ë¤±¤É¡¦¡¦¡¦)
- fssnap ¥³¥Þ¥ó¥É
fssnap [-F <file system>] -o backing-store=<dest path> [<specific options>]<mount point>
¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó | °ÕÌ£ |
-F <file system> | ¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤ò¤È¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¼ïÎà |
|-o |¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤òºï½ü¤¹¤ë¤È¤¡¢Æ±»þ¤Ë¥Ð¥Ã¥¥ó¥°Ž¥¥¹¥È¥¢Ž¥¥Õ¥¡¥¤¥ë¤âºï½ü¤¹¤ë|
backing-sotre=<dest path> | ɬ¿Ü¡£¥Ð¥Ã¥¥ó¥°¡¦¥¹¥È¥¢¡¦¥Õ¥¡¥¤¥ë¤ò³ÊǼ¤¹¤ë¥Ñ¥¹ |
unlink | ¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥ÈºîÀ®»þ¤Ë¡¢¥Ð¥Ã¥¥ó¥°Ž¥¥¹¥È¥¢Ž¥¥Õ¥¡¥¤¥ë¤Î¥ê¥ó¥¯¤ò²ò½ü¤¹¤ë |
chunksize=<n> | ¥Ð¥Ã¥¥ó¥°¡¦¥¹¥È¥¢¡¦¥Õ¥¡¥¤¥ë¤ËÁ÷¿®¤¹¤ë¥Ç¡¼¥¿¤ÎγÅÙ |
maxsize=<n> | ¥Ð¥Ã¥¥ó¥°¡¦¥¹¥È¥¢¡¦¥Õ¥¡¥¤¥ë¤ÎºÇÂçÍÆÎÌ¡£¤³¤ì¤òĶ¤¨¤ë¤È¡¢¥Ð¥Ã¥¥ó¥°Ž¥¥¹¥È¥¢Ž¥¥Õ¥¡¥¤¥ë¤ÏÇË´þ¤µ¤ì¤ë |
mount point | ɬ¿Ü¡£¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤ò¤È¤ë¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È |
- "backing-store" ¤Ï¡¢"bs" ¤È¾Êά¤¹¤ë¤³¤È¤¬¤Ç¤¤ë
- ¥Ð¥Ã¥¥ó¥°¥¹¥È¥¢¥Õ¥¡¥¤¥ë¤ÎºîÀ®°ÌÃ֤ϡ¢¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤òºîÀ®¤¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤Ï¤Ç¤¤Ê¤¤
- ¥Ð¥Ã¥¥ó¥°¥¹¥È¥¢¥Õ¥¡¥¤¥ë¤ò³ÊǼ¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤Ï¡¢UFS ¤ä NFS ¤Ê¤ÉǤ°Õ¤Î¥¿¥¤¥×¤ò»ÈÍѤǤ¤ë¡£TEMPFS¤â²Ä¡£
- ¥Ð¥Ã¥¥ó¥°¥¹¥È¥¢¥Õ¥¡¥¤¥ë¤Ï¼«Æ°Åª¤ËÊ£¿ôºî¤é¤ì¤ë¡£(³ÈÄ¥»Ò¤¬¡¢.1 .2 .3 ... ¤È¤Ê¤ë)
- ÍøÍÑÎã
# fssnap -F ufs -o backing-store=/backups/home.bkup /export/home
# mkdir /backups/home.bkup
# mount -F UFS -o ro /dev/fssnap/1 /backups/home.bkup
# cd /backups/home.bkup
# tar cvf /dev/rmt/0 .
- ¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤Îºï½ü
- fssnap -d
# fssnap -d /export/home
- ¥ê¥Ö¡¼¥È¤¹¤ë¤È¡¢¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤Ïºï½ü¤µ¤ì¤ë
- ºï½ü»þ¤ÎÃí°Õ»ö¹à
- ¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥ÈºîÀ®»þ¤Ë "-o" ¥ª¥×¥·¥ç¥ó¤ò¤Ä¤±¤Æ¤¤¤Ê¤¤¤È¡¢¥Ð¥Ã¥¥ó¥°Ž¥¥¹¥È¥¢Ž¥¥Õ¥¡¥¤¥ë¤Ï¼«Æ°Åª¤Ëºï½ü¤µ¤ì¤Ê¤¤¤Î¤Ç¡¢¼êÆ°¤Çºï½ü¤¹¤ëɬÍפ¬¤¢¤ë¡£
¥·¥¹¥Æ¥àÉüµì¤Î¼ê½ç †
- ¥¿¡¼¥ß¥Ê¥ë¤ò»È¤Ã¤Æ¤¤¤ë¿Í¤«¤é¡¢¥Ï¥ó¥°¥¢¥Ã¥×¤·¤¿¤È¸À¤ï¤ì¤¿¤È¤¤Ë¹Ô¤¦¼ê½ç¡£¤É¤³¤«¤Ç²ò·è¤¹¤ì¤Ð¤½¤ì¤Ç½ª¤ï¤ê
- ñ¤Ë ¥æ¡¼¥¶¤¬¡¢Ctrl+S (¥³¥ó¥½¡¼¥ë¤Ø¤Î½ÐÎÏÄä»ß) ¤ò²¡¤·¤Æ¥¿¡¼¥ß¥Ê¥ë¤Ë²¿¤âɽ¼¨¤µ¤ì¤Ê¤¤¤À¤±¤«¤â¤·¤ì¤Ê¤¤¤Î¤Ç¡¢¤È¤ê¤¢¤¨¤º Ctrl+Q (½ÐÎϺƳ«) ¤ò²¡¤·¤Æ¤ß¤ë
- Ctrl+\ ¤Ç¼Â¹ÔÃæ¤Î¥×¥í¥»¥¹¤ò½ªÎ»¤µ¤»¤ë
- Ctrl+C ¤Ç¼Â¹ÔÃæ¤Î¥×¥í¥»¥¹¤Ë³ä¤ê¹þ¤ß¤òÆþ¤ì¤Æ¤ß¤ë
- Ê̤Υ¿¡¼¥ß¥Ê¥ë¤«¤é¥·¥¹¥Æ¥à¤Ë¥í¥°¥¤¥ó¤·¤Æ¡¢¥Ï¥ó¥°¥¢¥Ã¥×¤·¤Æ¤¤¤ë¥×¥í¥»¥¹¤Î½ªÎ»¤ò»î¤ß¤ë
- Ê̤Υ¿¡¼¥ß¥Ê¥ë¤«¤é¥·¥¹¥Æ¥à¤Ë¥í¥°¥¤¥ó¤·¤Æ¡¢¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Ë¤Ê¤Ã¤Æ¡¢¥·¥¹¥Æ¥à¤ò¥ê¥Ö¡¼¥È¤·¤Æ¤ß¤ë
- ¶ÛµÞ¥³¥Þ¥ó¥É( Stop+A )¤Ç¡¢Open Boot ¥æ¡¼¥¶¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ë°Ü¹Ô¤·¡¢¥¯¥é¥Ã¥·¥å¥À¥ó¥×(IO¥Ð¥Ã¥Õ¥¡¤È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎƱ´ü)¤ò¼Â¹Ô¤·¤Æ¡¢¥ê¥Ö¡¼¥È¤·¤Æ¤ß¤ë
ok sync
ok boot
- ¤¤¤Ã¤¿¤óÅŸ»¤òÀڤꡢ£±¡Á£²Ê¬ÂԤäơ¢ÅŸ»¤òÆþ¤ìľ¤¹¡£
- Sun ¤Î¥µ¥Ý¡¼¥È¥Ç¥¹¥¯¤ËÅÅÏ乤롣
»²¹Íʸ¸¥ †
Computer#Unix