ããã°ã©ãã¼é¢æ¥æã®è³ªåã«çãã¦ã¿ã(1)
以ä¸ã®ãã®ãè¦ã¤ãã¦ãã¾ã£ãã®ã§è³ªåäºé
ã«çãã¦ã¿ããã¨ãã£ã¦ãããã°ã©ãã¼ã§ã¯ãªãããªãäºå®ããªããèªåã®ç¥èã®ç¢ºèªã®ããã«çãã¦ã¿ãã
無精で短気で傲慢なプログラマ 技術者・SE・プログラマ面接時の技術的な質問事項
é·ãã®ã§2åã«åãã¾ãã
ã§ã¯ããã¾ãã
UNIX
触ã£ã¦ã¿ãçµé¨ã¨ãããã¨ãªããFreeBSDãLinuxãSolarisãHP-UXã§ãã
ç¾å¨ä½¿ã£ã¦ãããã®ã¨ãããã¨ãªãLinuxã§ãã
grep/tar/find ã®ä½¿ç¨çµé¨â
cron è¨å®çµé¨â
ãã¹ã¦æãã§ãã
ãã¼ããã·ã§ã³ (chmod 777, chmod rwx ãªã©) ã®æå³â
r:èªã¿åã
w:æ¸ãè¾¼ã¿
x:å®è¡
777ã¯ããããå·¦ããé ã«1æ¡ç®ãèªåèªèº«ã®ã2æ¡ç®ãåãã°ã«ã¼ãã®ã¦ã¼ã¶ã¼ã®ã3æ¡ç®ããã以å¤ã®ã¦ã¼ã¶ã¼ã®æ¨©éã表ãã¾ãã
å権éã¯å®è¡ã1(001b)ãæ¸ãè¾¼ã¿ã2(010b)ãèªã¿è¾¼ã¿ã4(100b)ã§ããããããã足ãåããã(ORãã¨ã)ãã¨ã§è¡¨ç¾ãã¦ãã¾ãã
ãã£ã¬ã¯ããªã«å¯¾ãã r/w/x ã¯ããããã©ãããæå³ãæã¤ãâ
r:åããã¾ãã
w:ãã®ãã£ã¬ã¯ããªç´ä¸ã«ãã¡ã¤ã«ãä½æã§ãããã©ãã
x:ãã®ãã£ã¬ã¯ããªä»¥ä¸ãæ¢ç´¢ã§ãããã©ãã
1755ã»2755ã»4755 ããããã®æå³ã¯ä½ãâ
sticky bitã®éãã¨ãããã¨ã¯åããã¾ããããã以ä¸ã¯åããã¾ããã
ããã±ã¼ã¸ç®¡çã«ã¯ä½ã使ã£ã¦ããã
configure ããã¢ããªã±ã¼ã·ã§ã³ãã³ã³ãã¤ã«ãããã¨ãããã
æãã¾ãã
å ±æã©ã¤ãã©ãªã¨ã¯ä½ã
éçãªããã¯åçã«ãªã³ã¯ããããªãã¸ã§ã¯ããã¡ã¤ã«ã§ä»ã®ãªãã¸ã§ã¯ãã§ä½¿ç¨ããããã¨ãç®çã¨ããé¢æ°ãå«ãã§ãã¾ãã
- ã·ã§ã«ã®å½¹å²ã示ã
- 第ä¸æ®µé: ã³ãã³ãã©ã¤ã³ã«ã¦ ls ã¨ã¿ã¤ãããã¨ã
- 第äºæ®µé: ã³ãã³ãã©ã¤ã³ã«ã¦ ls | sort ã¨ã¿ã¤ãããã¨ã
"ls"ã¨ã ãã¿ã¤ãããã¨ãã¯lsãæ¢ç´¢ãè¦ã¤ãã£ãå ´åã¯forkãã¾ãã"ls|sort"ã¨ããã¨lsã®æ¨æºåºåãsortã®æ¨æºå ¥åã«ã¤ãªãã ä¸ã§forkãã¾ãã
fork/exec ããç°¡åãªã·ã§ã«ãæ¸ããã
ä¸ããããå ¥åãããªãã¸ã§ã¯ããæ¢ç´¢ãfork/execããã ããªãæ¸ãã¾ããããã¤ãããã³ã¸ã§ã管çã¨ãã£ãæ©æ§ã¯ãããèªä¿¡ãããã¾ããã
åããã»ã¹ã親ããã»ã¹ããå¼ãç¶ããã®ãå¼ãç¶ããªããã®ããããããæ°ç¹ãããâ
- å¼ãç¶ããã®
- ãã¡ã¤ã«è¨è¿°å
- ç°å¢å¤æ°
- ãã¤ã¹å¤
- å¼ãç¶ãããªããã®
- ããã»ã¹id
- 親ããã»ã¹id
- å¦çå¾ ã¡ã®ã·ã°ãã«
è¨èª
ã©ã®è¨èªã好ããã使ç¨ãã¦ããè¨èªã®ãã¼ã¸ã§ã³ã¯(è¨èªå ±é)â
Pythonã§ããã¨çãã¦ãã¾ãã¨ä»¥ä¸ã®åãã«è©²å½ããªãã®ã§Cã«ãã¦ããã¾ãã
- Perl
- ã©ã®ã¢ã¸ã¥ã¼ã«ã好ãã
- print 㨠syswrite ã®éãã¯ä½ãâ
- Web ãã¬ã¼ã ã¯ã¼ã¯ã«ã¯ä½ã使ã£ã¦ããã
- Java
- Web ãã¬ã¼ã ã¯ã¼ã¯ã«ã¯ä½ã使ã£ã¦ããã
- ãã¯ã©ã¹å¤æ°/ã¤ã³ã¹ã¿ã³ã¹å¤æ°/ãã¼ã«ã«å¤æ°ã®ãã¡ãã¹ã¬ããã»ã¼ããªã®ã¯ãã¼ã«ã«å¤æ°ã ãã§ãããã¨ã¯ã©ãããæå³ã
- PHP
- Web ãã¬ã¼ã ã¯ã¼ã¯ã«ã¯ä½ã使ã£ã¦ããã
- PEAR ã§å©ç¨ãã¦ããããã±ã¼ã¸ã¯ä½ã
- php.ini ã§å®ç¾©ã§ãã以ä¸ã®ãã£ã¬ã¯ãã£ãã®éããè¿°ã¹ããâ
- default_charset
- mbstring.language
- mbstring.internal_encoding
- mbstring.http_input
- mbstring.http_outputã
- mbstring.encoding_translation
- mbstring.detect_order
- Ruby
- Ruby ã«å¯¾ããç±ãæãã®ãããè¿°ã¹ã
- C
- ãªã³ã¯ãªã¹ããæ¸ããã
- å¯å¤é·å¼æ°ãªé¢æ°ãè¨è¿°ãããã¨ãããã
- malloc(3)/realloc(3) ã«ã¦ãåçã¡ã¢ãªç®¡çãã§ããã
- printf(3) 㨠write(2) ã®éãã¯ä½ã
- Makefile ãæ¸ããã
- ã³ã³ãã¤ã«ã»ã¢ã»ã³ãã«ã»ãªã³ã¯ã¨ã¯ä½ã
- äºä¹ãè¿ããã¯ã #define MY_POW(x) ( (x)*(x) ) ã®åé¡ç¹ã¯ä½ãâ
ãªã³ã¯ãªã¹ãã¯ããã¾ãã
å¯å¤é·å¼æ°ã®é¢æ°ã¯æ¸ãããã¨ããªãã§ãã
malloc/reallocã¯ä½¿ãã¾ãã
printfã¯æ¸å¼ä»åºåã§writeã¯æ¸å¼ãªãã®åºåã§ãã
Makefileã¯æ¸ãã¾ãã
ã³ã³ãã¤ã«ã¯ã½ã¼ã¹ãæ©æ¢°èªãªããã¢ã»ã³ãã©ã«ããè¡çºã§ã¢ã»ã³ãã«ã¯ã¢ã»ã³ãã©ãæ©æ¢°èªã«ããè¡çºã§ãªã³ã¯ã¯è¤æ°ã®ãªãã¸ã§ã¯ãã³ã¼ããä¸ã¤ã«ã¾ã¨ããè¡çºã§ãã
ãã®ãã¯ãã ã¨"MY_POW(i++)"ã¨ããã¨"i++"ãäºåè©ä¾¡ããããã¨ã«ãªãã¾ãã"i=1"ã§å¼ã³åºãããå ´åãè©ä¾¡ã®çµæ1ãè¿ã"i=2"ã¨ãªã£ã¦ããã®ãæã¾ããåä½ã§ãããã®ãã¯ãã§ã¯è©ä¾¡ã®çµæã¯2ã§ãã"i=3"ã¨ãªãã¾ãã
ã³ã³ãã¥ã¼ã¿åºæ¬ç´ é¤
ã¨ã³ã³ã¼ãã£ã³ã°ã¨ã¯ãæåéåã¨ã¯ (ISO-2022-JP 㨠JIS X 0208 ã説æã§ããã)
RFC ãèªãã ãã¨ã¯ãããã
ããã¹ãé åã¨ã¯ä½ããã¹ã¿ãã¯ã¨ã¯ä½ãããã¼ãã¨ã¯ä½ãã
ãã©ã¦ã¶ã« URL ãå ¥åãã¦ããããã¼ã¸ã表示ãããã¾ã§ã®ã¹ãããã示ã
BNF (æ¡å¼µBNF) ã¨ã¯ä½ããç°¡åãªä¾ããããâ
ã¨ã³ã³ã¼ãã£ã³ã°ã¯æåéåãã©ããã£ã符å·ãå²ãå½ã¦ããã決ãããã®ã§ãæåéåã¯ç¬¦å·åãã¹ãæåã®éåã§ãã
RFCã®æ¥æ¬èªè¨³ã¯èªãã ãã¨ãããã¾ãã
ããã¹ãé åã¨ã¯å®è¡ãããã³ã¼ããåãããã¦ããã¡ã¢ãªé åã®ãã¨ã§ããã¾ãã¹ã¿ãã¯ã¯FIFOãªè¨æ¶åã§ãããã¼ãã¯ããã°ã©ã å´ã§èªç±ã«ä½¿ããè¨æ¶åã§ãã
URLãå
¥åãããã¨ã¾ãURLããããã³ã«ããã¹ãåãããã¦ãã¹ã«åå²ãã¾ãã次ã«ãããã³ã«ã«å¿ããå¦çããããããã§ãããä¸ä¾ã¨ãã¦httpã®å ´åã¯ãã¹ãåã示ãå
ã®ç¹ã«æå®ããªããã°80çªã®ãã¼ãã«æ¥ç¶ãã¾ããããã¦ãHTTPã®è¦ç´ã«å¾ãGETããã³POSTã¡ã½ãããç¨ãã¦è¦æ±ãéä¿¡ãç¸æå´ããã®å¿çãå¾
ã¡ããã¼ã¿ãå¾ã¾ããããã§æ£å¸¸ãªå¿çãå¾ããããªãMIMEã³ã¼ãããé©åãªåä½ãé¸æãã¾ããããã§MIMEã³ã¼ããtext/htmlçã§ãã£ãå ´åãã®ãã¼ã¿ããã¤ãã¼ããã¹ãã¨ãã¦è¡¨ç¤ºãã¾ãã
BNFã¨ã¯æ§æãå®ç¾©ãããã®ã§ä¾ãã°ä»¥ä¸ã®ãããªãã®ã§ãã
::= 0|1|2|3|4|5|6|7|8|9 ::= | | .