Slide 1

Slide 1 text

ʮlsίϚϯυΛ࡞ΔʯͰֶΜͩ͜ͱ ॳΊͯͷLTձ vol.8 In ϑΟϤϧυϒʔτΩϟϯϓ 2021/8/7 @sadanora

Slide 2

Slide 2 text

ࣗݾ঺հ @sadanora ϑΟϤϧυϒʔτΩϟϯϓ31ظੜ(2020೥8݄ʙ) Ἒ৓ݝग़਎ɺ౦ژॅΈ(෢ଂ໺ࢢˠ๽ా۠ˠੈా୩۠) ࠓͷϓϥΫςΟεɿNginx ޷͖ͳࣗવެԂ Canyon de Chelly ʢΞϝϦΧʣ

Slide 3

Slide 3 text

ςʔϚ • mainϝιουΛఆٛ͢Δ • ॳ৺ऀ͸ม਺໊΍ϝιου໊Λུ͞ͳ͍ • ఏग़෺ͷεΫϦʔϯγϣοτͷࡱΓํ ʮlsίϚϯυΛ࡞ΔʯͰֶΜͩ͜ͱ

Slide 4

Slide 4 text

mainϝιουΛఆٛ͢Δ

Slide 5

Slide 5 text

mainϝιουΛఆٛ͠ͳ͍ίʔυ • Լ͔Β্ʹ໭Γͳ͕Βಡ·ͳ͍ͱ͍͚ͳ͍ • ಡΈʹ͍͘ ϝΠϯϩδοΫ

Slide 6

Slide 6 text

mainϝιουΛఆٛͨ͠ίʔυ • ্͔ΒॲཧͷྲྀΕΛ௥͏͜ͱ͕Ͱ͖Δ • ਓ͕ؒಡΈ΍͍͢ • ϝιου͕௕͗͢ΔͱRubocop͕ݕ஌ͯ͘͠ΕΔ ʢτοϓϨϕϧͩͱݕ஌͠ͳ͍ʣ ɾmain ͱ͍͏ϝιου໊͸೚ҙ ϝΠϯϩδοΫ mainϝιου

Slide 7

Slide 7 text

ॳ৺ऀ͸ม਺໊΍ϝιου໊Λུ͞ͳ͍

Slide 8

Slide 8 text

ॳ৺ऀ͸ม਺໊΍ϝιου໊Λུ͞ͳ͍ • จࣈྻͷ௕͞Λද͢ม਺ • lengthͷུ • ఻ΘΔͩΖ͏ͱ͍͏Ṗͷࣗݾղऍ • rubyͷlengthϝιου͸lenͱུͯ͠ͳ͍

Slide 9

Slide 9 text

ఏग़෺ͷεΫϦʔϯγϣοτʹ͍ͭͯ

Slide 10

Slide 10 text

ఏग़෺ͷεΫϦʔϯγϣοτʹ͍ͭͯ • ࣮૷ͨ͠΋ͷ͕έʔεผʹͪΌΜͱಈ͍͍ͯΔ͔෼͔ΔΑ͏ʹࡱΔ • εΫγϣΛࡱ͍ͬͯͳ͍έʔε͕͋ΔͳΒɺຊ౰ʹ࣮૷͕ඞཁ͔ߟ͑Δ MΦϓγϣϯͷ࣮૷Λྫʹઆ໌

Slide 11

Slide 11 text

ఏग़෺ͷεΫϦʔϯγϣοτʹ͍ͭͯ ϑΝΠϧͷߋ৽࣌ࠁ If the modi f ication time of the f ile is more than 6 months in the past or future, then the year of the last modi f ication is displayed in place of the hour and minute f ields. ϑΝΠϧͷมߋ͕࣌ؒաڈ6͔݄ΑΓલɺ·ͨ͸ະདྷͷ৔߹ɺ࣌ؒͱ෼ͷ୅ΘΓʹ೥͕දࣔ͞Ε·͢ɻ ls -lͷ࣮ߦ݁Ռ man ls ͷlΦϓγϣϯͷઆ໌ εΫγϣΛࡱ͍ͬͯͳ͍έʔε͕͋ΔͳΒɺຊ౰ʹ࣮૷͕ඞཁ͔ߟ͑Δ ʮϑΝΠϧͷมߋ࣌ࠁ͕ϲ݄લ·ͨ͸ະདྷͷ৔߹ʯͱ͍͏৚݅෼ذΛॻ͖ɺςετͤͣʹఏग़

Slide 12

Slide 12 text

ఏग़෺ͷεΫϦʔϯγϣοτʹ͍ͭͯ ϑΝΠϧͷߋ৽࣌ࠁ If the modi f ication time of the f ile is more than 6 months in the past or future, then the year of the last modi f ication is displayed in place of the hour and minute f ields. ϑΝΠϧͷมߋ͕࣌ؒաڈ6͔݄ΑΓલɺ·ͨ͸ະདྷͷ৔߹ɺ࣌ؒͱ෼ͷ୅ΘΓʹ೥͕දࣔ͞Ε·͢ɻ ls -lͷ࣮ߦ݁Ռ man ls ͷlΦϓγϣϯͷઆ໌ εΫγϣΛࡱ͍ͬͯͳ͍έʔε͕͋ΔͳΒɺຊ౰ʹ࣮૷͕ඞཁ͔ߟ͑Δ ʮϑΝΠϧͷมߋ࣌ࠁ͕ϲ݄લ·ͨ͸ະདྷͷ৔߹ʯͱ͍͏৚݅෼ذΛॻ͖ɺςετͤͣʹఏग़ ະདྷͷ࣌ɺ৚݅ʹඞཁʁ

Slide 13

Slide 13 text

·ͱΊ

Slide 14

Slide 14 text

ίʔυΛಡΉ૬खʹ఻ΘΔ͔Ͳ͏͔ ϓϩάϥϛϯά = ίϛϡχέʔγϣϯ ॳ৺ऀͳ͕ΒʹงғؾΛײͨ͡

Slide 15

Slide 15 text

ࢀߟ RubyεΫϦϓτʹ΋mainϝιουΛఆٛ͢Δͱ͍͍͔΋ɺͱ͍͏࿩ - Qiita https://qiita.com/jnchito/items/4b4cae54170cc2f4377e ϓϩάϥϛϯάॳ৺ऀ͸ม਺໊΍ϝιου໊Λུ͞ͳ͍ํ͕͍͍Αɺͱ͍͏࿩ - give IT a try https://blog.jnito.com/entry/2020/10/20/092724

Slide 16

Slide 16 text

͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ɻ