BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡

±Û¾´ÀÌ: SYS adminÀ» À§ÇÑ command Á¶È¸¼ö: 8228


AdminÀ» À§ÇÑ ÀÏ¹Ý ¸í·É¾î

¢¹ ÇöÀç ½Ã½ºÅÛÀÇ Architecture¸¦ È®ÀÎ
# arch -k
: Display The kernel architecture
¢¹ Inode »èÁ¦ ¸í·É¾î clrl
# clrl /dev/dsk/c0t1d0s7 231
: 231 inode¸¦ »èÁ¦
¢¹ TextÆÄÀÏ¿¡¼­ ƯÁ¤ ¹®ÀÚ ÃßÃâÇس»´Â ¸í·É cut
# cut -d":" -f1 /etc/passwd > /tmp/user
: passwd file¿¡¼­ À¯ÀúºÎºÐ¸¸ ÃßÃâÇؼ­ /tmp/user ÆÄÀÏ·Î ÀúÀå
# ypcat passwd | cut -d":" -f1 > /tmp/user
¢¹ Disk »ç¿ë·® °è»ê
# du -s . : ÇöÀç ¹× SUB-dir±îÁöÀÇ Àüü Disk»ç¿ë·® (du:disk use)
-k . : killo byte ´ÜÀ§·Î È®ÀÎ
¢¹ Text fileÀÇ ºñ±³¿Í Directory°£ÀÇ »óÀÌÇÑ ³»¿ëÀÇ ºñ±³
# diff /a /mnt : /a, /mnt directory ¸¦ ºñ±³
# diff /a /b : /a, /b Text file ÀÇ ºñ±³
¢¹ EEPROMÀÇ ³»¿ëÀ» ¸í·ÉÇà ¿¡¼­ º¯°æ
# /usr/sbin/eeprom : »óÅÂÈ®ÀÎ
# /usr/sbin/eeprom boot-device=disk3 : °ª º¯°æ
¢¹ File typeÀ» È®ÀÎ ÇÒ¶§
# file /etc/passwd
/etc/passwd: ¾Æ½ºÅ° ÅؽºÆ®
# file core
core: ELF 32-ºñÆ® MSB ÄÚ¾î ÆÄÀÏ SPARC ¹öÀü 1, ¿øÀμöÇà 'sleep'
: ÀÌ°Ç core file ÀÌ ¿Ö »ý¼º됬´ÂÁö º¸°í ÇÏ°í ÀÖ´Ù.
¢¹ File or Directory À» Áö¿ï¶§
# rm file_name ; ´ÜÀÏ ÆÄÀÏÀ» Áö¿î´Ù.
# rm -r /dir_name ; µð·ºÅ丮±îÁö ÀüºÎ »èÁ¦ÇÑ´Ù.
# rm -i file_name ; "-i"¿É¼ÇÀº ÆÄÀÏÀ» Áö¿ì±â Àü¿¡ Çѹø ´õ È®ÀÎÇÑ´Ù.
# rm 'file name' ; Áß°£¿¡ °ø¹éÀÌ ÀÖ´Â ÆÄÀÏ Áö¿ï¶§.
¢¹ File °Ë»öÀ» À§ÇÑ ¸í·É¾î
# find ~ -name '*%' -print -exec rm {} \;
: home µð·ºÅ丮 '%'·Î ³¡³ª´Â È­ÀÏ Å½»öÇÏ¿© º¸¿©Áָ鼭 »èÁ¦
Option ºÐ·ù(°Ë»ö±â´ÉÀÌ »ó´çÈ÷ ¸¹´Ù. man page·Î È®ÀÎ)
-atime n ; accessed n days ago
-ctime n ; change n days ago
-mtime n ; midified n days ago
-perm ; ÇØ´ç µÇ´Â ÆÛ¹Ì¼Ç ÆÄÀÏ °Ë»ö
...
¢¹ Key input Á¦´ë·Î ¾ÈµÉ ¶§ Remote¿¡¼­ Key mode¸¦ ¹Ù²Û´Ù.
# kbd_mode -a
¢¹ Process¸¦ °­Á¦ Á¾·á ½Ãų¶§
# kill pid : Åë»ó process Á¾·á ½Ãų¶§
# kill -9 pid : °­Á¦ Á¾·á ½Ãų¶§
# kill -HUP pid : process¸¦ hangup
# kill -SEGV pid : process¸¦ °­Á¦·Î segmentation fault ½Ãų¶§
¢¹ Process°ü·Ã ¸í·É¾î
/usr/proc/bin Directory¿¡ ´Ù¼ö°¡ ÀÖ´Ù.
proc tools -
proc, pflags, pcred, pmap, pldd, psig, pstack, pfiles, pwdx, pstop, prun, pwait,
ptree, ptime
¢¹ File list¸¦ Ç¥½ÃÇÑ´Ù.
# ls -al : ¸ðµç fileµéÀ» longÇüÅ·ΠÀÚ¼¼È÷ listing
# ls -ald : directory¸¦ È®ÀÎ ÇÒ ¶§
# ls -li : inode number¸¦ º¸°íÀÚ ÇÒ ¶§
¢¹ NIS ÀÇ ±âµ¿ ¿©ºÎ È®ÀÎ
# nisls -l : ¸¸ÀÏ ¼­¹ö°¡ ´Ù¿îµÇ¾ú´Ù¸é ¾Æ·¡¿Í °°Àº ¸Þ½ÃÁö°¡ »Ñ·ÁÁø´Ù.
"NIS+ server unreachable"
¢¹ ƯÁ¤ Disk partition ÀÇ ÀÚ¼¼ÇÑ Á¤º¸ ȹµæ
# prtvtoc /dev/rdsk/c0t0d0s0 : volume Table ÀÇ ³»¿ë º¼ ¶§
À§´Â c0t0d0s0 slice¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ InformationÀ» º¸¿©ÁØ´Ù.
¢¹ ½Ã½ºÅÛÀÇ »ó¼¼ ConfigurationÀ» È®ÀÎÇÏ´Â ¸í·É¾î
# prtconf : System ConfigurationÀ» º¸¿©ÁØ´Ù.
# sysdef : Current system definitionÀ» Ãâ·Â
# /usr/platform/`uname -i`/sbin/prtdiag : H/W Á¤º¸ (sol 2.6)
; Display system diagnostic information
; SUN Àåºñ¿¡¸¸ Àû¿ëµÇ°í Axilµî¿¡¼­´Â ¾ÈµÊ.
¢¹ CPU¸¦ Enable ¶Ç´Â Disable
psrinfo , psradm
# psrinfo [-v] : CPU Á¤º¸È®ÀÎ
# psradm -f 2 3 : 2,3¹ø CPU¸¦ off_line
# psradm -n 2 3 : 2,3¹ø CPU¸¦ on_line
: ´ëÇü ¼­¹ö µî¿¡¼­ CPU ¼ö¸¦ Á¦ÇÑÇÏ¿© ¼º´É testÇÒ ¶§ À¯¿ëÇÏ´Ù.
¢¹ /etc/shadow ÆÄÀÏÀÇ update
# pwconv : /etc/shadow file »ý¼º ¹× modify
¢¹ ½ÇÇàµÈ ¸í·É¾îµé Display
lastcomm ¼³Á¤¹æ¹ý
# touch /var/adm/pacct ; ²À ÀÌ·¸°Ô ÇÏÁö ¾Ê¾Æµµ µÇ¸ç, º¸¾ÈÀ¯Áö°¡ ÇÊ¿äÇÑ °÷À̶ó¸é,
´Ù¸¥ DIR¿¡ ´Ù¸¥file_nameÀ¸·Î ¼û°Üµµ µÈ´Ù.
±×·¯³ª º¼¶§´Â ¹Ýµå½Ã /var/adm/pacct ·Î copyÇÏ¿© ³õÀºÈÄ »ç¿ë
ÇØ¾ß ÇÔ.
# /usr/lib/acct/accton /var/adm/pacct
# lastcomm
¢¹ Sytem Reconfiguration BOOT
# reboot -- -r :
¢¹ rlogin Á¢¼Ó
# rlogin -l hong basic : hongÀ¸·Î basic½Ã½ºÅÛ¿¡ ÄÜ¼Ö Á¢¼Ó
¢¹ Key-inÀ» À§ÇÑ I/O setting
# stty -a : settingµÈ key µéÀ» º¸¿©ÁØ´Ù
# stty erase ?ÀÓÀÇÀÇÅ°? : erase ´ÜÃà±â´ÉÀ» ÀÓÀÇÀÇ Å°·Î ¹Ù²Ü ¶§.
¢¹ Çö À¯Àú¼ÒÀ¯ÀÇ ºñ¾îÀÖ´Â ÆÄÀÏÀ» »ý¼º ½ÃŲ´Ù.
# touch cream
# ls -al cream
-rw-r--r-- 1 storming staff 0 10¿ù 21ÀÏ 17:02 cream
¢¹ process,°¡»ó¸Þ¸ð¸®,µð½ºÅ©,cpu Monitoring Åë°èÄ¡¸¦ º¸¿©ÁØ´Ù
# vmstat 1 100 : 1Àº intervalÀÌ°í, 100Àº countÀÌ´Ù.
¢¹ ÇöÀç Á¢¼Ó »ç¿ëÀÚ¿¡°Ô ¸Þ½ÃÁö¸¦ »Ñ¸°´Ù.
wall : write to all users --> /usr/sbin/wall [-a] [-g] [filename]
- ±â´É : Broadcast Message from ...
- option : -a broadcast message to the console
and pseudo-terminals.
-g grpname broadcast to a specified group only.
# wall -a text_file : text_fileÀÇ ³»¿ëÀÌ Å͹̳Π¿¡ »Ñ·ÁÁø´Ù.
¢¹ Á¢¼Ó »ç¿ëÀÚ È®ÀÎ ¸í·É¾î
# who -a : Á¢¼Ó»óÅ ÀÇ ÀÚ¼¼ÇÑ Á¤º¸
# who -r : ÇöÀç RUN Level È®ÀÎ
¢¹ ÇÁ·¹ÀÓ ¹öÆÛÀÇ »óÅ º¯°æ
# /usr/platform/'uname -i'/sbin/cg14config
¢¹ ½Ã½ºÅÛ log file µé
/var/adm/utmp , utmpx
/var/adm/wtmp , wtmpx
/var/log/syslog
/var/adm/pacct
¼³¸í : last µîÀÇ ¸í·É¾î·Î À§ÀÇ ÆÄÀϵéÀÇ ³»¿ëÀ» º¼¼ö Àִµ¥, À¯ÀúÀÇ »ç¿ë»óȲÀº
À§ÀÇ ÆÄÀÏ¿¡ °è¼Ó ½×ÀÌ°Ô µÈ´Ù.
±×·±ÀÌÀ¯·Î À§ ÆÄÀÏÀÌ ºñ´ëÇØÁö¸é, zeroÆÄÀÏ·Î ¸¹µé¾î ÁÙ ÇÊ¿ä°¡ ÀÖ´Ù.
#cp /dev/null utmp ÀÌ·± ½ÄÀ¸·Î ...
¢¹ C2 º¸¾È ·¹º§ ÀÌ¿ë ¸í·É
- /etc/security/bsmconv , bsmunconv
À§ÀÇÆÄÀÏ ÀÌ¿ëÇÏ¿© ƯÁ¤ È£½ºÆ® ¹× À¯ÀúÀÇ È°µ¿»óȲÀ» °¨½ÃÇÒ¼ö ÀÖ´Ù.

°ü·Ã±Û : ¾øÀ½ ±Û¾´½Ã°£ : 2002/05/12 16:56 from 61.82.164.84

  system Á¤º¸È®ÀÎ ¸ñ·Ïº¸±â »õ±Û ¾²±â Áö¿ì±â ÀÀ´ä±Û ¾²±â ±Û ¼öÁ¤ setuid,setgid,sticky bit  
BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡