Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chainsawriot/commandline10
10 things people assume you know about the Unix command line, but you know... or don't know.
https://github.com/chainsawriot/commandline10
Last synced: 27 days ago
JSON representation
10 things people assume you know about the Unix command line, but you know... or don't know.
- Host: GitHub
- URL: https://github.com/chainsawriot/commandline10
- Owner: chainsawriot
- Created: 2015-11-07T14:11:21.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-10T09:46:54.000Z (almost 9 years ago)
- Last Synced: 2023-03-23T17:28:59.743Z (over 1 year ago)
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# commandline10
十種人人都覺得會用 Unix Command Line 的人都知的概念,而你知或者不知。
由最淺到最深
## File, stdin, stdout, stderr and "everything is a file"
## I/O Redirection
Output redirection
## Pipe
The concept that make the "do one thing and do it well" works. You can pipe the output from one command to another, example:
```{bash}
man grep | tr '[:upper:]' '[:lower:]' | tr ' ' '\n' | sort | uniq -c | sort -nr | head -50
```The above chain of commands does the following
1. Get the man page of grep, and then
2. replace all uppercase letters to lowercase, and then
3. replace all spaces into newlines there fore each word is now a line, and then
4. sort the lines (i.e. words) according to alphabetical order, and then
5. count the unique words, and then
6. sort the order with the most frequent words on top, and then
7. return only the top 50Good Unix commands work as filter (a program to process a stream and generate another stream) and such design makes piping possible.
## Process Control, Background / foreground and Mutiplexing
## Customization
## Interactive use and non-interactive use
## Sed & AWK / Perl and text editing
## Filesystem Hierarchy Standard
## Finding files
## Parallel Processing