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.
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.
Wowwwwww that's a really interesting topic :! Thx for this one !
Best basic commands review I've saw so far. Thx a lot
No problem! If you run into anything you don't understand, can always come back and pester me too. 😉
Really helpful, amazing video!
Cheers, glad you think so! 🙂
I have been using linux for 2 years, yet I am getting to know new things