Don't fear the terminal (How to use basic terminal operators)

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025
  • НаукаНаука

Комментарии • 7

  • @0x15aac
    @0x15aac  2 месяца назад +5

    One thing I didn't mention, but you saw during the video, was that you can use TAB to auto complete (where there are multiple options, TAB again will list them), and the UP arrow key can be used to cycle through previously executed commands.
    Here's a cheat sheet of the covered commands & operators:
    - disown JOBID: keep the job running after the terminal closes.
    - a & b: run a and b at the same time.
    - nano FILE: TUI text editor
    - clear: clear the terminal buffer
    - exit: close the terminal instance
    - echo: print arguments to the terminal
    - cd: change the working directory
    - ls: list files in the working directory
    - cp a b: copy a to b
    - mv a b: move a to b
    - rm a b c: remove a, b and c (-r for directories)
    - cat FILE: print the contents of the file
    - less: display the contents of the file in a scrolling view
    - man PROGRAM: show the program's manual
    - a && b: run a, and if it succeeds, run b (a || b to unconditionally run b)
    - a | b: pass the output of a to b
    - grep SUBSTRING: print lines from the input (eg from a pipe) which contain the specified substring
    - a > FILE: write the output of a to a file (a >> FILE concatenates to the file)
    - a < FILE: write the contents of a file to a's input
    - chmod a+x FILE: make the file executable
    Note that some of these are not available in PowerShell.

  • @lightninja740
    @lightninja740 2 месяца назад +1

    Wowwwwww that's a really interesting topic :! Thx for this one !

  • @pfnpm9476
    @pfnpm9476 2 месяца назад +1

    Best basic commands review I've saw so far. Thx a lot

    • @0x15aac
      @0x15aac  2 месяца назад +1

      No problem! If you run into anything you don't understand, can always come back and pester me too. 😉

  • @dhyankfc
    @dhyankfc 2 месяца назад +2

    Really helpful, amazing video!

    • @0x15aac
      @0x15aac  2 месяца назад +1

      Cheers, glad you think so! 🙂

  • @cdkw2
    @cdkw2 Месяц назад

    I have been using linux for 2 years, yet I am getting to know new things