Ubunchuu Content
      • 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
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners 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
    • 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 Help
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
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners 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
    --- title: 15 days flying with Tux tags: tux, command-line, console description: what is this? --- # 15 days fly with Tux ## Day 0: Chào mừng tới Linux (Done) Link: https://hackmd.io/N1ttUZ_wRwOXUtq7aRu84Q Người viết: Chính Setup cơ bản khi bắt đầu cài Linux. --- ## Day 1: Câu lệnh cơ bản với terminal (Done) Link: https://hackmd.io/@thangbuiq/BJraeqXIh/edit Người viết: Thắng - pwd, cd, ls, touch, mkdir, cat, cp, mv, rm, grep * Để làm việc với file trên Linux (hay trên Linux server), các bạn không thể sử dụng các thao tác bằng đồ họa (kéo thả như trên Windows) mà phải thao tác qua cửa sổ dòng lệnh (command-line). Điều này gây khó khăn cho những người không quen thuộc với việc sử dụng console. * Thông qua bài viết này, Ubunchuu sẽ giúp mọi người làm quen với một số lệnh cơ bản để quản lý file trên hệ thống Linux. * Chúng ta sẽ bắt đầu với các lệnh này cơ bản, đơn giản và dễ nhớ, giúp cho việc quản lý file trên Linux trở nên dễ dàng hơn. --- ## Day 2: Cài đặt terminal (Done) Link: https://hackmd.io/@chinhchamhoc/BJ3NUHyLn Người viết: Chính - Alacritty - Cài zsh, đặt zsh mặc định - Zimfw và plugins - IDE (VSCode, Atom, Sublime, JetBrains) --- ## Day 3: Shell (Done) Link: https://hackmd.io/@chinhchamhoc/BJ3NUHyLn Người viết: Chính - Tách ra từ day 2 - Zimfw --- ## Day 4: Git (Done) Link: https://hackmd.io/vJ1xE1F3QI-BjFitpnULaw Người viết: Tuấn - Giới thiệu git - Sử dụng git cơ bản --- ## Day 5: Cài đặt ngôn ngữ Link: Người viết: Chính - Cpp - Python: pip hoặc miniconda + Virtualenv: conda/pipenv/venv/poetry - Asdf - NodeJS/Yarn - Ruby - Rust - PHP - Java - R - Mise --- ## Day 6: Package management Người viết: Thắng - Giới thiệu các loại: apt, apt-get, snap, flatpak, appimage - Dùng trong tình huống nào - `tar` vs `gzip` --- ## Day 7: Quản lý User, Group và Super-User - User and Group - Root - `etc/passwd` - `/etc/shadow` - `/etc/group` - User Management Tools --- ## Day 8: Phân quyền (permissions) - File permissions - Modifying/own permissions - Umask - Setuid - Setgid - Process permissions --- ## Day 9: Linux filesystem explained - `/` - `/bin` - `/boot` - `/dev` - `/etc` - `/home` - `/lib` - `/media` - `/mnt` - `/opt` - `/proc` - `/root` - `/run` - `/sbin` - `/srv` - `/tmp` - `/usr` - `/var` --- ## Day 10: Vim (không phải nước tẩy rửa) - Giới thiệu vim - Basic command vim - Config vim (lazyvim) --- ## Day 11: Text hack - Các lệnh thao tác cơ bản với text: pipe, env, tee, cut, paste, head, tail, less, sort, join, split, ... - Regex --- ## Day 12: Shell Scripting Link: Người viết: bạn contributor - When need shell scripting (khi muốn chạy một chuỗi các câu lệnh dài chung với nhau,...) - Giới thiệu về syntax như biến, mảng, for loop, if else,... - Viết script chạy mỗi khi startup (nằm trong /etc/init.d) - Tham khảo: https://www.shellscript.sh/ > Day có bài tập: bạn đọc hãy viết một script tương tự yêu cầu sau đây và chia sẻ bằng cách comment script source lên bài của Ubunchuu nhé (đúng concept là được nha). > Yêu cầu là một startup script để tụi mình nắm được cách linux start app on startup: > - Nằm trong folder /etc/init.dt. > - Trigger mỗi khi user login vào. > - Start lần lượt các app trong 1 mảng (không được setup autostart qua GUI) theo thứ tự mẫu sau (ví dụ thui nhé): `ulauncher, docker, ibus, blueman`. > - Không start docker vào chủ nhật vì ngày chủ nhật ko phải ngày làm việc. --- ## Day 13: Quản lý tiến trình (processes) - `ps` - Tìm hiểu process (create, terminate, signals) - `/proc` filesystem - Job control - Thread --- ## Day 14: Linux networking - File sharing (`scp`) - `rsync` - Simple HTTP server - NFS - Samba - Virtual Private LAN (`zerotier`) - Network config - Firewall ## Day 15: Linux Best Practices & Tooltips - Backup dotfiles - Các best practices gì dó - Các tooltips nên dùng: lazyvim,... --- # :100: :muscle: :tada: --- ## Một số bài tips and tricks nhỏ có thể đăng: - Lazygit - Lazydocker - Lazyvim - Tìm hiểu về kernel - Giới thiệu linuxscoop - chúa tể hướng dẫn config - Tìm hiểu RHEL - Một số trang youtube hay về linux - Lập trình socket - Một prompt để giúp ChatGPT hành động như linux terminal - Tìm hiểu về đức cha Linus Torvald 🐧 - Điều gì khiến bạn vẫn còn dùng windows? ### Thank you! :sheep:

    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