]> git.piffa.net Git - arduino/blob - lezioni/cli.rst
CLI GIT
[arduino] / lezioni / cli.rst
1 CLI
2 *********
3
4 * Terminale: sintassi comandi, uso degli spazi
5   whoami, pwd, date
6
7 * --help, man, flags  oggetti 
8 * Uso di tab
9 * hystory -c 
10
11
12 Shortcuts
13 ----------
14
15 - frecce di scorrimento per history
16 - CTRL A
17 - CTRL e
18 - ALT B word / CTRL B
19 - CTRL B
20
21 * CTRL U
22   kill all left of
23 * CTRL k
24   kill all right of
25
26 * \`.  last object
27 * ~.  kill ssh
28
29 Streams
30 ----------
31 - http://ryanstutorials.net/linuxtutorial/piping.php
32
33 STDRIN , STDROUT, STRDERR
34 * redirection on files >, >>, 
35
36   Handle    Name    Description
37   0 stdin   Standard input
38   1 stdout  Standard output
39   2 stderr  Standard error
40
41 Redirecting the standard error (stderr) and stdout to file
42 command-name &>file
43
44 Pipes
45 ===========
46
47 * wc -l
48 * head
49 * tail
50
51
52 Editor
53 --------
54
55 * Pager: more
56 * Vim or nano