KangMoo
    • 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
    • Engagement control
    • 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 Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control 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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # CLI(Command Line Interface) - CLI(Command Line Interface): 텍스트 명령어를 입력하여 시스템을 제어하는 인터페이스 - CLI를 사용하면 텍스트 명령을 입력하여 모든 서버 또는 컴퓨터 시스템에서 프로그램을 구성, 탐색 또는 실행할 수 있다 - Linux, macOS와 Windows를 포함한 모든 운영 체제는 시스템과 더 빠르게 상호 작용할 수 있는 CLI를 제공한다 - GUI(Graphical User Interface): 아이콘, 이미지 등을 시각적으로 탐색하고 클릭하여 작업을 수행하는 인터페이스 - GUI를 사용하면 아이콘과 이미지를 시각적으로 탐색하고 클릭하여 작업을 수행할 수 있다 - 그러나 GUI는 시스템 관리 작업에 비효율적이며, 가상 또는 원격 환경에서는 더욱 효율이 떨어진다 컴퓨터 사용자들은 주로 GUI를 통해 컴퓨터와 상호작용한다. 하지만, 컴퓨터의 더 깊은 수준의 작업을 수행하거나, 자동화된 스크립트를 실행하기 위해서는 CLI에 익숙해져야 한다. ## CLI의 이점 - 속도: GUI보다 명령어를 입력하여 작업을 수행하는 것이 종종 더 빠르다. - 자동화: 반복적인 작업을 스크립트로 만들어 자동화할 수 있다. - 유연성: 복잡한 작업을 단순화시키고, 맞춤형 작업을 수행할 수 있다. - 리소스 사용: CLI는 GUI보다 적은 시스템 리소스를 사용한다. ## CLI의 단점 - 학습 곡선: GUI에 비해 배우기 어렵고, 명령어를 기억해야 한다. - 사용자 친화성: 텍스트 기반 인터페이스는 일부 사용자에게 덜 직관적일 수 있다. ## CLI의 작동방식 명령줄 인터페이스(CLI)는 컴퓨터의 운영 체제와 상호 작용하는 명령을 입력할 수 있는 텍스트 기반 인터페이스다. CLI는 운영 체제와 사용자 사이에 있는 기본 쉘을 사용하여 작동한다. 쉘은 사용자와 운영 체제 사이의 중개자 역할을 하는 프로그램을 말한다. 예를 들어 보다 구체적인 기능을 위한 `Bash`, `cmd.exe`, `PowerShell` 등이 있다. ## CLI 사용법 ### Windows 1. 윈도우 키와 `S`를 누른다. 2. 검색 필드에 `cmd`를 입력한다. 3. `명령 프롬프트`를 마우스 오른쪽 버튼으로 클릭하고 `관리자 권한으로 실행`을 선택한다. 4. 이제 명령 프롬프트를 입력할 수 있다. ### Mac 1. 일반적으로 도구 모음에 있는 Finder 애플리케이션을 찾는다. 2. 애플리케이션/유틸리티로 이동한다. 3. `터미널`을 선택한다. 4. 이제 명령 프롬프트를 입력할 수 있다. ### Linux - `CTRL`+`ALT`+`T`를 사용하여 CLI에 엑세스한다. - 또는 `Alt`+`F2`를 사용한 다음 `gnome-terminal`을 입력할 수 있다. ## CLI 명령어 대부분의 CLI 명령어는 다음과 같은 구조를 따른다. ```bash 명령어 [옵션] [인자] ``` - 명령어: 수행할 작업을 지정 - 옵션: 명령어의 동작을 변경. 일반적으로 하이픈(-)으로 시작한다. - 인자: 명령어의 대상이 되는 파일이나 디렉토리를 지정. ### 파일 및 디렉토리 관련 명령어 | 명령 | Windows | Linux | | -------------- | ------------------------- | ------------------------ | | 디렉토리 변경 | `cd 경로` | `cd 경로` | | 디렉토리 목록 | `dir` | `ls` | | 디렉토리 생성 | `mkdir 디렉토리명` | `mkdir 디렉토리명` | | 디렉토리 제거 | `rmdir 디렉토리명` | `rmdir 디렉토리명` | | 파일 복사 | `copy 원본파일 대상위치` | `cp 원본파일 대상위치` | | 파일 이동 | `move 원본파일 대상위치` | `mv 원본파일 대상위치` | | 파일 이름 변경 | `ren 원래파일명 새파일명` | `mv 원래파일명 새파일명` | | 파일 삭제 | `del 파일명` | `rm 파일명` | ### 네트워크 관련 명령어 | 명령 | Windows | Linux | | ------------- | ------------------- | ------------------- | | Ping | `ping 주소` | `ping 주소` | | 경로 추적 | `tracert 주소` | `traceroute 주소` | | 네트워크 구성 | `ipconfig` | `ifconfig` | | 라우팅 테이블 | `route PRINT` | `route` | | DNS 조회 | `nslookup 도메인명` | `nslookup 도메인명` | | 네트워크 진단 | `netsh` | `netstat` | ### 정보 명령어 | 명령 | Windows | Linux | | --------------- | -------------------------- | ----------------- | | 프로세스 목록 | `tasklist` | `ps -ef` | | 프로세스 종료 | `taskkill /PID 프로세스ID` | `kill 프로세스ID` | | 시스템 정보 | `systeminfo` | `uname -a` | | 시스템 모니터링 | `perfmon` | `top` | ### 변수 및 환경 관련 명령어 | 명령 | Windows | Linux | | ------------------ | --------------- | ------------------ | | 환경변수 보기 | `set` | `printenv` | | 특정 환경변수 보기 | `echo %변수명%` | `echo $변수명` | | 환경변수 설정 | `set 변수명=값` | `export 변수명=값` | | 지역 변수 설정 | `set 변수명=값` | `변수명=값` | | 환경변수 제거 | `set 변수명=` | `unset 변수명` |

    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