lshghkh
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Day 3 ## 스스로 확인할 사항 ### 리눅스 역사와 유닉스와 차이를 학습하고 정리한다. #### 리눅스의 역사와 유닉스와의 차이점 ##### LINUX - 1991년 핀란드의 [Linus Torvalds](https://en.wikipedia.org/wiki/Linus_Torvalds)가 개발한 커널을 기반으로 시작됨. - 그 이후 지속적으로 꾸준히 성장하였고, 1991년의 적은 양의 C 소스코드에서 현재 주석을 제외하고 2천 3백 3십만 줄이 넘는 커널 코드가 되었다. - 출시 직후에는 상업적 이용을 금지하는 라이센스를 갖고 있었으며, 지금은 GNU General Public License v2를 따른다. - GNU General Public License: 광범위하게 사용되는 공개 소프트웨어 라이센스로, 엔드 유저들이 실행하고, 공부하고, 공유 그리고 수정하는 것을 허용하는 조항들로 이루어져 있다. ##### UNIX - Ken Thompson과 Dennis Ritchie 에 의해 1969년부터 개발되어 1970년에 출시되었다. - 이 두 저자는 새로운 언어 C를 만들어 이 커널 코드를 다시 작성하였다. - 1977년 Berkeley Software Distribution(BSD)가 UC Berkeley에서 개발되었으나, 개발과 수정은 금지되어있었다. - 1983년 Richard Stallman이 GNU 프로젝트를 이끌며 Unix와 비슷한 운영체제를 개발하였으나, 흥행에 실패하였다. - 1987년 MINIX가 Andrew S. Tanenbaum에 의해 개발되었다. 소스코드는 공개되었지만 수정과 재배포가 금지되었다. - 결국 개발, 배포, 수정이 자유로운 UNIX 계통의 운영체제는 개발되지 않았고, 이는 Linus Torvalds가 LINUX를 개발하게 되는 계기가 되었다. 출처: [History of Linux: Wikipeida](https://en.wikipedia.org/wiki/History_of_Linux) ### 여러 가지 쉘 종류에 대해 학습하고 정리한다. - Table | 이름 | 실행 명령 | 설명 | | :------------ |:---------------:| -----:| | Bourne Shell | sh | 벨 연구소의 스티브본 개발, 많은 쉘 스크립트의 기반이 됨. | | C Shell | csh | C언어 구문과 유사, Bourne Shell을 확장하여 히스토리, 작업제어, 엘리어스 등 기능 포함 | | TC Shell | tcsh | C Shell에 명령 행 완성과 명령 행 편집 기능 추가 | | Korn Shell | ksh | Bourne Shell과 호환되며 C Shell의 많은 기능을 포함. Unix 계열에서 많이 사용됨. | | Bourne Again Shell(bash) | bash | LINUX에서 가장 많이 사용되는 쉘로 Bourne 쉘을 토대로 C, Korn Shell의 기능들을 통합하여 개발됨. | 출처: https://javacpro.tistory.com/52 ## 다같이 확인할 사항 ### 셀 스크립트에 활용한 다양한 사례에 대해서 조사하고 정리한다. - 셸 스크립트를 사용하면 명령 줄 인터페이스에 수동으로 입력해야 하는 여러 명령을 자동으로 연속 실행시킬 수 있으며, 사용자가 각 단계의 시퀀스마다 일일이 기다릴 필요가 없다. - [데몬 활용사례](https://www.kdata.or.kr/info/info_04_view.html?field=&keyword=&type=techreport&page=40&dbnum=175565&mode=detail&type=techreport) 서버 상태 ping 과 + 쉘 스크립트로 확인 후 메일로 보내는 사례 데몬 및 프로세스의 시작과 정지 (데몬 : 리눅스의 백그라운드에서 동작, 소멸되지 않고 메모리에 상주하면서, 특별한 조건이 되면 명령을 수행함) crontab 스케쥴 등록 로그 로테이션과 , 파일 자동 업로드 - 서버 상태 감시 : 설정 파일에 등록된 서버 또는 네트워크 장비를 점검해 두 차례 ping 테스트를 한 다음 응답하지 않는 호스트를 화면에 표시해준다. - 점검 결과를 메일로 보고 : 서버를 점검한 결과를 화면에 도식한 다음 /tmp/ping.log에 점검 결과를 저장하고 email 변수에 등록된 메일 주소를 포함하게 한다. - http://www.tldp.org/LDP/Bash-Beginners-Guide/html/ - https://bash.cyberciti.biz/guide/Why_shell_scripting - https://www.quora.com/What-is-the-use-of-shell-scripting ### 각자 컴퓨터 개발 환경에서 리눅스와 비슷한 터미널 환경을 설정하기 위한 방법을 학습하고 정리한다. - 윈도우 = WSL(windows subsysstem for Linux) NT커널 내부에 Pico provider = (bash 에서 전송한 리눅스 시스템콜 -> NT API 콜 or NT 커널 처리 결과 -> 리눅스 시스템콜 ) - 맥 = bash 좀더 업글 하고싶으면 (zsh + oh my zsh) zsh bash+ksh+tcsh 일부 기능과 수많은 개선 사항이 갖추어진 확장형 본 shell ## 내용 출처 - J12 스터디그룹 조원들의 학습정리

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully