Upgrade to Pro — share decks privately, control downloads, hide ads and more …

なぜ Linux が重要なの? OS を使いこなす最初の一歩 / Why is Linux i...

なぜ Linux が重要なの? OS を使いこなす最初の一歩 / Why is Linux important? Your first step to using the OS

2020/7/8 社内勉強会での発表資料です。

資料上で紹介したGitHubURLはこちら

https://github.com/TomoyaKitaura/docker-tools/blob/master/rust/exa/v0.9.0/Dockerfile

Avatar for TomoyaKitaura

TomoyaKitaura

July 08, 2020
Tweet

More Decks by TomoyaKitaura

Other Decks in Technology

Transcript

  1. Debianܥ - Debian 12 GNU GPLϥΠηϯεΛ΋ͱʹߏ੒͞Ε͍ͯͨ σΟετϦϏϡʔγϣϯɻ ίϛϡχςΟͷࢥ૝తʹ҆ఆੑΛॏࢹ͢Δ܏޲ʹ͋Γɺ ϑϦʔζͱݺ͹ΕΔظ͕ؒఆΊΒΕ͍ͯͯɺ ϦϦʔε͸2೥ຖʹߦΘΕΔɻ

    ެࣜͷDockerΠϝʔδͰΑ͘buster΍stretchͱ͍ͬͨ suffix͕͍ͭͨ΋ͷΛݟ͔͚Δ͕ɺ buster͸Debian 10ɻstretch͸Debian 9ͷ͜ͱΛࢦ͍ͯ͠Δɻ
  2. Alpine Linux 14 musl libc ͱ BusyBox Λϕʔεʹߏ੒͞Εͨ ηΩϡΞͰܰྔͳ Linux

    σΟετϦϏϡʔγϣϯ ܰྔͳDockerΠϝʔδͷ࡞੒Λ͢Δͱ͖ʹॏๅ͢Δɻ
  3. 19 DockerͰLinuxΛىಈͯ͠༡Ϳ $ docker run --rm -it alpine /bin/sh $

    docker run --rm -it ubuntu /bin/bash $ docker run --rm -it centos /bin/bash $ docker run --rm -it debian /bin/bash ※exitͰൈ͚Ε·͢ɻ
  4. 20 ΞϓϦέʔγϣϯΛίϯςφԽ͢Δ - exa lsίϚϯυͷ୅ସ https://github.com/ogham/exa - bat catίϚϯυͷ୅ସ https://github.com/sharkdp/bat

    ͜͜Β΁Μͷπʔϧ܈Λίϯςφ্Ͱ࣮ߦͰ͖ΔΑ͏ʹ ؤுͬͯΈΔͱ͔Ͳ͏Ͱ͠ΐɻ - fd findίϚϯυͷ୅ସ https://github.com/sharkdp/fd - procs psίϚϯυͷ୅ସ https://github.com/dalance/procs
  5. 21 ͝ࢀߟ ࢲ΋ΞϓϦέʔγϣϯͷίϯςφԽͷಓΛ ௨ͬͨͷͰͨ͠ɻָ͍͠Ͱ͢ɻ - ࡞੒ͨ͠ίϯςφΠϝʔδͷ࣮ߦίϚϯυ $ docker run --rm

    -v $(pwd):/work kitta0108/exa:v0.9.0 - Dockerfileͷιʔείʔυ https://github.com/TomoyaKitaura/docker-tools/blob/master/rust/exa/v0.9.0/Dockerfile