Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Linux Fundamental

437 views

Published on

- Linux Fundamental
- Advanced Topics
- Docker

  • Be the first to comment

Linux Fundamental

  1. 1. Linux Fundamental @dylanninin
  2. 2. Concepts
  3. 3. Concepts - Ubuntu Desktop 10.04
  4. 4. Concepts - Ubuntu Server 14.04
  5. 5. Concepts - Linux
  6. 6. Concepts - History
  7. 7. Concepts - Linux distributions
  8. 8. Concepts - Architecture
  9. 9. Concepts - Philosophy Everything is a file • File Operations • Device I/O • Network I/O • OS Runtime System calls
  10. 10. Concepts - Philosophy Do One Thing and Do It Well • cat • ls • …
  11. 11. Concepts - Philosophy Rule of Composition • pipes • filters
  12. 12. Concepts - Linus Torvalds • Linux Kernel • Git • Just for Fun • Talk is cheap, show me the code. • Survival, Social Order, Entertainment
  13. 13. How to get a Linux environment ?
  14. 14. Bash
  15. 15. Bash - Your shell $ echo $SHELL
  16. 16. Bash - Do whatever you want $ rm -rf /
  17. 17. Bash - Do whatever you want Who w last history … Running ps netstat … CPU/RAM free uptime top htop … Hardware lspci dmidecode ethtool … Perf iostat vmstat mpstat …
  18. 18. Bash - Profile $ man bash
  19. 19. Bash - Display all ENV variables $ env
  20. 20. $ sh -x filename Shell Script - Debug your script
  21. 21. VIM Introduce • Writing: Notepad, TextMate, Word, MacDown, Vim… • Coding: Notepad, IDEs, Vim… • Editing: Nano, Vim, Emacs… • Ops Vim, Emacs…
  22. 22. VIM Modes
  23. 23. SSH - OpenSSH
  24. 24. SSH - OpenSSH
  25. 25. SSH - cli: ssh/scp
  26. 26. SSH - cli: ssh/scp
  27. 27. SSH - cli: ssh/scp
  28. 28. SSH - client: iTerm2/XShell iTerm2 XShell
  29. 29. SSH - UseCases • ssh -D 8080 user@host • ssh -L 2121:host2:21 host3 • ssh -R 2121:host2:21 host1
  30. 30. directory hierarchy
  31. 31. Skills - Directory
  32. 32. permissions
  33. 33. Skills - Permissions
  34. 34. Skills - Permissions
  35. 35. symbol/hard links
  36. 36. Skills - Symbol/Hard Links
  37. 37. redirection
  38. 38. Skills - Redirection
  39. 39. Skills - Redirection
  40. 40. pipeline
  41. 41. Skills - Pipeline $ find . -name "*.py"| xargs grep -v '^$' | wc
  42. 42. Skills - Pipeline
  43. 43. cron
  44. 44. Skills - Cron
  45. 45. iproute2
  46. 46. Skills - iproute2
  47. 47. iptables
  48. 48. Skills - iptables flow
  49. 49. Skills - iptables
  50. 50. Skills - iptables
  51. 51. manual
  52. 52. Skills - man $ man man
  53. 53. Containers vs VMs
  54. 54. Docker Architecture
  55. 55. Docker on Linux
  56. 56. Bocker Docker implemented in around 100 lines of bash. https://github.com/p8952/bocker
  57. 57. Reference • https://en.wikipedia.org/wiki/Linux • https://en.wikipedia.org/wiki/Man_page • https://en.wikipedia.org/wiki/Linus_Torvalds • http://tldp.org/LDP/abs/html/textproc.html • https://en.wikipedia.org/wiki/Shell_(computing) • https://en.wikipedia.org/wiki/Bash_(Unix_shell) • https://en.wikipedia.org/wiki/Vim_(text_editor) • https://en.wikipedia.org/wiki/Secure_Shell • http://www.tldp.org/LDP/intro-linux/html/sect_03_01.html • https://en.wikipedia.org/wiki/Iproute2 • https://en.wikipedia.org/wiki/Iptables • https://en.wikipedia.org/wiki/Docker_(software) • https://github.com/p8952/bocker • http://www.jianshu.com/p/d3569613fcf8

×