½Ã½ºÅÛ °ü¸® ¹× ½Ç½À #5
1. ½Ã½ºÅÛ µð·ºÅ丮 ±¸Á¶ È®ÀÎ ¹× ¿ä¾à
/ ->> The root of the overall file file system namespace.
/bin ->> /usr/bin?symbolic link
/dev ->> ·ÎÄà ÀåÄ¡ µð·ºÅ丮.?? /devices symbolic link
/devices ->>? ¹°¸®ÀåÄ¡À̸§
/etc ->> host -specific configuration
/export ->> default directory for commonly shared file systems , user's home directory
/home ->> mount point for a user's home directory
/kernel ->> platform independent loadable kernel moudules
/mnt ->> temporary mount point
/opt ->. default directory or mount point for add-on application packages
/platform ->> platform-dependent loadable kernel modules
/sbin ->> single-user bin directory / booting process and manual system-failure recovery
/tmp ->> tempoary files
/usr ->> all user's application
/var ->> temporary , logging, or status files

/dev µð·ºÅ丮
/dev/cua ->> dial -out devicd files (UUCP), (PPP)
/dev/dsk ->> block disk devices
/dev/fbs ->> Frame buffer device files
/dev/fd ->> file descriptors
/dev/md ->> Logical volume management metadisk devices
/dev/pts ->> Pseudo terminal devices
/dev/rdsk ->> Raw disk devices
/dev/rmt ->> Raw magnetic tape devices
/dev/sound ->> Audio devices and audio-device control files
/dev/term ->> Serial devices

/etc µð·ºÅ丮
/etc/acct ->> Configuration information for the accounting system
/etc/cron.d ->>Configuration information for the cron utility * Á¤±âÀû ÀÛ¾÷½ÇÇà
/etc/default ->> ´Ù¾çÇÑ ÇÁ·Î±×·¥µé¿¡ ´ëÇÑ Default Á¤º¸
/etc/inet ->> ³×Æ®¿öÅ© ¼­ºñ½ºµé ÀÇ Configuration ÆÄÀϵé
/etc/init.d ->> run ·¹º§À» º¯È¯Çϴµ¿¾È ½ÃÀÛ/ÁßÁö ¼­ºñ½ºµéÀÇ ½ºÅ©¸³Æ®µé
/etc/lib ->> /usr ÆÄÀÏ ½Ã½ºÅÛÀÌ ÀÌ¿ë ºÒ°¡´ÉÇÒ¶§ µ¿Àû ¸µÅ· ¶óÀ̺귯¸®·Î ÇÊ¿ä
/etc/lp ->> ÇÁ¸°ÅÍ ¼­ºê ½Ã½ºÅÛ ¼³Á¤ Á¤º¸
/etc/mail ->> ¸ÞÀÏ ¼­ºê½Ã½ºÅÛ ¼³Á¤ Á¤º¸
/etc/nfs ->> NFS(Network File System) server logging
/etc/opt ->> optional packages Á¤º¸
/etc/rc#.d ->> run ·¹º§ Á¤Àǽà ½ÇÇàµÇ´Â ½ºÅ©¸³Æ®µé
/etc/skel ->> Ãʱâ È­ÀϵéÀÇ Templete files

/usr µð·ºÅ丮
/usr/bin? ->> Standard system commands
/usr/ccs ->> C-compilation ÇÁ·Î±×·¥µé°ú ¶óÀ̺귯¸® µé
/usr/demo ->> Demonstration? ÇÁ·Î±×·¥µé °ú µ¥ÀÌÅÍ
/usr/dt ->> ÀÏ¹Ý µ¥½ºÅ©Åé ȯ°æ dt (desk top ) Common Desktop Environment
/usr/include ->>Çì´õÆÄÀÏ
/usr/java ->> ÀÚ¹Ù ±â¼ú ÇÁ·Î±×·¥µé°ú ¶óÀ̺귯¸®µé
/usr/kernel ->> Ç÷§Æû µ¶¸³ÀûÀÎ Ä¿³Î ¸ðµâµéÀ» ºÎÆðúÁ¤ µ¿¾È ·Îµå ÇÑ´Ù
/usr/lib ->> ´Ù¾çÇÑ ÇÁ·Î±×·¥ ¶óÀ̺귯¸® , µ¥ÀÌÅͺ£À̽ºµéÀÇ µ¶¸³ÀûÀÎ ¾ÆÅ°ÅØÃÄ, ¹ÙÀ̳ʸ®µé
/usr/opt ->> optional packages
/usr/sbin ->> ½Ã½ºÅÛ °ü¸® ¸í·É¾î
/usr/spool ->> /var/spool? Symbolic link
2. 4ÀÚ¸® ÆÛ¹Ì¼Ç ±¸Á¶ ÀÌÇØ ¹× ½Ç½À (stcky, setuid, setgid)
sticky - 1000 : ¸ðµç »ç¿ëÀÚ°¡ Àбâ, ¾²±â, ½ÇÇàÀÌ °¡´ÉÇÏ°Ô ¼³Á¤
setuid - 4000 : ÆÄÀÏÀÇ ¼ÒÀ¯ÀÚ ±ÇÇÑÀÌ ¾Æ´Ñ »ç¿ëÀÚ ±ÇÇÑÀ¸·Î Àбâ, ¾²±â, ½ÇÇàÀÌ °¡´ÉÇϵµ·Ï ¼³Á¤
setgid - 2000 : ÆÄÀÏÀÇ ¼ÒÀ¯ÀÚ ±ÇÇÑÀÌ ¾Æ´Ñ ±×·ìÀÇ ±ÇÇÑÀ¸·Î Àбâ, ¾²±â, ½ÇÇàÀÌ °¡´ÉÇϵµ·Ï ¼³Á¤
3. umask È®ÀÎ ¹× ½Ç½À
»ç¿ëÀÚ°¡ ¸¸µå´Â °¢ ÆÄÀÏÀÇ ±âº»¼Ó¼ºÀ» ¼³Á¤Çϴµ¥ »ç¿ëµÈ´Ù. umask -S ¸í·É¾î¸¦ Ä¡¸é ÇöÁ¦ÀÇ umask °ªÀ» ¾Ë ¼ö ÀÖ´Ù.
chmod¿Í´Â ´Þ¸® 7¿¡¼­ Àбâ, ¾²±â, ½ÇÇàÀÇ °ªÀ» »©¼­ Àû¿ëÇÑ´Ù. ±×·¯¸é·Î umask 022 = chmod 755ÀÌ´Ù.
4. manÀ¸·Î ls, lsattr ±â´É È®ÀÎ ¹× Á¤¸®
ls - ÆÄÀÏÀÇ Á¤º¸¸¦ Ãâ·ÂÇÑ´Ù. ÇöÀçÀÇ Æú´õ¿¡ ÀÖ´Â ÆÄÀÏÀÇ Á¤º¸¸¦ »ç¿ëÀÚ¿¡°Ô º¸¿©ÁÖ´Â ¸í·É¾î.
-l : ÆÄÀÏÀÇ ¼¼ºÎÁ¤º¸¸¦ º¸¿©ÁØ´Ù.
-a : ¼û°ÜÁ® ÀÖ´Â ÆÄÀϱîÁö º¸¿©ÁØ´Ù.
-d : µð·ºÅ丮ÀÇ Á¤º¸¸¦ º¸¿©ÁØ´Ù.
-A : .°ú ..¸¦ Á¦¿ÜÇÑ ¸ðµç ÆÄÀÏ Á¤º¸¸¦ º¸¿©ÁØ´Ù.
-R : ¼­ºêµð·ºÅ丮ÀÇ ÆÄÀϱîÁö º¸¿©ÁØ´Ù.
-t : °¡Àå ÃÖ±ÙÀÇ ÆÄÀϺÎÅÍ º¸¿©ÁØ´Ù.
-r : ¹Ý´ë·Î °¡Àå ¿À·¡µÈ ÆÄÀϺÎÅÍ º¸¿©ÁØ´Ù.
-m : ÆÄÀÏ°ú ÆÄÀÏ»çÀÌ¿¡ ,·Î ±¸ºÐÇÏ¿© º¸¿©ÁØ´Ù.
-i : I-nodeÀÇ ¼ö¸¦ Ãâ·ÂÇÏ¿© º¸¿©ÁØ´Ù.
-s : ÆÄÀÏÀ» ų·Î¹ÙÀÌÆ® ´ÜÀ§·Î Ãâ·ÂÇÏ¿© º¸¿©ÁØ´Ù.

lsattr : ¸®´ª½º °³Á¤ È®Àå ÆÄÀϽýºÅÛÀÇ Á¤º¸¸¦ Ãâ·ÂÇÏ¿© º¸¿©ÁØ´Ù.
-v : ÆÄÀÏ ¹öÀüÀ» Ãâ·ÂÇÑ´Ù.
-R : ¼­ºêµð·ºÅ丮ÀÇ ÆÄÀÏ Á¤º¸±îÁö Ãâ·ÂÇÏ¿© º¸¿©ÁØ´Ù.
-a : ¸ðµç ÆÄÀÏÀ» Ãâ·ÂÇÏ¿© º¸¿©ÁØ´Ù.
-d : µð·ºÅ丮ÀÇ Á¤º¸¸¦ Ãâ·ÂÇÏ¿© º¸¿©ÁØ´Ù.

chattr : ¸®´ª½º °³Á¤ È®Àå ÆÄÀϽýºÅÛÀÇ Á¤º¸¸¦ ¼öÁ¤ÇÑ´Ù.
-v : ÆÄÀÏ ¹öÀüÀ» ¼öÁ¤ÇÑ´Ù.
-V : º¯È­µÈ ÆÄÀÏÀÇ ¹öÀüÀ» Ãâ·ÂÇÑ´Ù.
-R : ¼­ºêµð·ºÅ丮ÀÇ ÆÄÀϱîÁö º¯°æÇÑ´Ù.
a : ÆÄÀÏÀ» ¾µ¶§ ¿À·ÎÁö Ãß°¡¼Ó¼ºÀ¸·Î¸¸ ¾µ¼ö ÀÖ´Ù.
c : Ä¿³Î¿¡ ÀÇÇØ µð½ºÅ©»óÀÇ ¾ÐÃà »óŸ¦ ÀúÀåÇÑ´Ù.
d : dump(8)¸í·É¾î ½ÇÇà½Ã ¹é¾÷µÇÁö ¾Ê´Â´Ù.
i : ÆÄÀÏÀ» ¼öÁ¤Çϰųª »èÁ¦ÇÒ ¼ö ¾ø´Ù.
u : ÆÄÀÏÀÌ Áö¿öÀúµµ ³»¿ëÀÌ µð½ºÅ©»ó¿¡ ÀúÀåµÈ´Ù. ´Ù½Ã »ì¸± ¼öµµ ÀÖ´Ù.
 
¸ÇÀ§·Î
1.½Ã½ºÅÛ µð·ºÅ丮 ±¸Á¶ È®ÀÎ
2.4ÀÚ¸® ÆÛ¹Ì¼Ç ±¸Á¶
3.umask
4.manÀ¸·Î ls, lsattr ±â´É È®ÀÎ
 
¸Ç¾Æ·¡·Î
À̵¿