Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 50

Good 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