Skip to content

Commit 9c8ee45

Browse files
committed
quartet over
1 parent 581eca9 commit 9c8ee45

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+2084
-1763
lines changed

.gitignore

+3-15
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
1-
#docs, examples, tests (human manipulation only):
2-
_gitignore/
3-
4-
#output files generated by a program:
1+
# Output and temporary files.
52
_out/
6-
7-
#intermediate compilation files: `.o`
83
_tmp/
4+
*.tmp
95

10-
# Compiled Object files
6+
# Compiled stuff.
117
*.slo
128
*.lo
139
*.out
1410
*.o
15-
16-
# Compiled Dynamic libraries
1711
*.so
1812
*.dylib
19-
20-
# Compiled Static libraries
2113
*.lai
2214
*.la
2315
*.a
24-
25-
#assembly code
2616
*.s
2717

28-
#temporary files
29-
*.tmp

README.md

+101-41
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,30 @@ Includes Linux concepts and utilities that work on Linux, not necessarily in the
66

77
## Index
88

9-
Important files:
10-
119
- [ubuntu/install](ubuntu/install.sh): Ubuntu install methods many programs.
1210
- [utils](utils.sh): dump of many utils that fit in no other category or are not large enough to get their own file. Many POSIX utilities.
1311

1412
Documentation viewers:
1513

1614
- [man](man.sh)
17-
- [info](info.sh)
15+
- [info](info.md)
1816

1917
Base standards:
2018

2119
- [POSIX](posix.md)
2220
- [Linux](linux.md)
2321
- [LSB](lsb.md)
2422
- [FHS](fhs.md)
23+
- [GNU](gnu.md)
2524

2625
Kernel related:
2726

28-
- [Kernel](kernel/)
29-
- [System Call](system-call/)
27+
- [Kernel](kernel/)
28+
- [System Call](system-call/)
29+
- [sysctl](sysctl.md)
30+
- [Special files](special-files.md): `proc`, `dev` and `sys` filesystems.
31+
- [proc filesystem](proc-filesystem.md)
32+
- [dev filesystem](dev-filesystem.md)
3033

3134
Initialization:
3235

@@ -36,11 +39,11 @@ Initialization:
3639

3740
Base topics:
3841

39-
- [Desktop](desktop/): X, XDG, GNOME, KDE and related utilities.
40-
- [Filesystem](filesystem.md): POSIX file permissions.
41-
- [File permissions](file-permissions.md): filesystem, hard disks, mounting, partitions.
42-
- [Special files](special-files.md): `proc`, `dev` and `sys` filesystems.
43-
- [Terminal](terminal.md): terminal emulators, ANSI escapes, control characters.
42+
- [Filesystem](filesystem.md): POSIX file permissions.
43+
- [Hardlink](hardlink.md)
44+
- [File permissions](file-permissions.md): filesystem, hard disks, mounting, partitions.
45+
- [Terminal](terminal.md): terminal emulators, ANSI escapes, control characters.
46+
- [Guake](guake.sh)
4447

4548
Basic stream and file manipulation:
4649

@@ -58,32 +61,55 @@ Pagers:
5861
- [more](more.md)
5962
- [pg](pg.md)
6063

64+
Text processing:
65+
66+
- [awk](awk.sh)
67+
- [echo](echo.sh)
68+
- [column](column.md)
69+
- [cut](cut.sh)
70+
- [Eclipse](eclipse.md)
71+
- [expand](expand.md)
72+
- [paste](paste.md)
73+
- [printf](printf.sh)
74+
- [sed](sed.sh)
75+
- [tabs](tabs.md)
76+
- [wc](wc.md)
77+
78+
Binary data viewers:
79+
80+
- [hd](hd.md)
81+
- [hexdump](hexdump.md)
82+
- [od](od.md)
83+
84+
Diff:
85+
86+
- [comm](comm.md)
87+
- [cmp](cmp.md)
88+
- [diff](diff.md)
89+
- [wdiff](diff.md)
90+
6191
Files, directories:
6292

6393
- [cp](cp.sh)
64-
94+
- [dd](dd.md)
6595
- [du](du.md)
66-
6796
- [fdupes](fdupes.md)
68-
6997
- [find](find.md)
70-
7198
- links:
72-
7399
- [ln](ln.md)
74100
- [readlink](readlink.md)
75101
- [realpath](realpath.md)
76-
77102
- [locate](locate.md)
78-
79103
- [ls](ls.md)
80-
81104
- [read](read.md)
82-
83105
- [stat](stat.md)
84-
85106
- [tree](tree.md)
86107

108+
File managers:
109+
110+
- [Krusader](krusader.md)
111+
- [vifm](vifm.md)
112+
87113
Partitions, filesystems:
88114

89115
- [badblocks](badblocks.md)
@@ -94,20 +120,15 @@ Partitions, filesystems:
94120
- [lsblk](lsblk.md)
95121
- [swap partition](swap-partition.md)
96122

97-
Diff:
123+
[Compilation and libraries](compile.md):
98124

99-
- [comm](comm.md)
100-
- [cmp](cmp.md)
101-
102-
Binary data viewers:
103-
104-
- [hd](hd.md)
105-
- [hexdump](hexdump.md)
106-
- [od](od.md)
125+
- [GDB](gdb.md)
126+
- [Library](library.md)
107127

108128
Programming:
109129

110130
- [ack](ack.sh)
131+
- [ctags](ctags/)
111132
- [Compile](compile/): compilation process, dynamic libraries.
112133

113134
Processes:
@@ -117,6 +138,8 @@ Processes:
117138
- [free](env.md)
118139
- [htop](htop.md)
119140
- [jobs](jobs.sh)
141+
- [kill](kill.sh)
142+
- [killall](killall.sh)
120143
- [lsof](lsof.md)
121144
- [nice](nice.sh)
122145
- [nohup](nohup.sh)
@@ -139,13 +162,16 @@ Date and time:
139162

140163
Media video, games, etc.) file types, viewers, editors, capture, synthesizers:
141164

142-
- [Audio](audio/): audio, music, sound.
143-
- [Book](book.md): PDF, DJVU.
144-
- [Dictionary](dictionary.md): dictionary formats.
145-
- [Game](game.md): games, emulation.
146-
- [Image](image/): images, photos.
147-
- [Markup](markup/): Markdown, RST. Focus on command line interface and extensions.
148-
- [Video](video.md): videos, films, subtitles.
165+
- [Audio](audio/): audio, music, sound.
166+
- [Book](book.md): PDF, DJVU.
167+
- [Dictionary](dictionary.md): dictionary formats.
168+
- [Game](game.md): games, emulation.
169+
- [Image](image/): images, photos.
170+
- [GIMP](gimp.md)
171+
- [gnuplot](gnuplot)
172+
- [imagemagick](imagemagick.md)
173+
- [Markup](markup/): Markdown, RST. Focus on command line interface and extensions.
174+
- [Video](video.md): videos, films, subtitles.
149175

150176
File sharing:
151177

@@ -169,25 +195,49 @@ User operations:
169195
- [id](id.md)
170196
- [usermod](usermod.md)
171197

198+
[Desktop](desktop/): X, XDG, GNOME, KDE and related utilities.
199+
200+
- Notifications
201+
- [libnotify](libnotify.md)
202+
- [zenity](zenity.md)
203+
- [update-alternatives](update-alternatives.md)
204+
- [xsel](xsel.md)
205+
- [xdg-open](xdg-open.md)
206+
- [xset](xset.md)
207+
172208
Generic data formats:
173209

174210
- [JSON](json.md)
175-
- [Unicode](unicode.md)
176211
- [XML](xml/)
177212

213+
Character encoding:
214+
215+
- [Unicode](unicode.md)
216+
- [iconv](iconv.sh)
217+
178218
Markup compilers:
179219

180220
- [Kramdown](kramdown/)
181221
- [Pandoc](pandoc/)
182222
- [RST](rst/)
183223

184-
Misc:
224+
[Virtual machine](virtual-machine/):
225+
226+
- [Docker](docker/)
227+
- [Vagrant](vagrang/)
185228

186-
- [eval](eval.sh)
229+
[Configuration automation](config-automation.md):
230+
231+
- [chef](chef/)
232+
- [puppet](puppet.md)
233+
234+
Misc:
187235

188-
[Virtual machine](virtual-machine/): Vagrant, Docker.
236+
- [logrotate](logrotate.md)
237+
- [factor](factor.md)
238+
- [xargs](xargs.md)
189239

190-
Related subjects in other repositories:
240+
## Related repositories
191241

192242
- [Ubuntu Cheat](https://github.com/cirosantilli/ubuntu-cheat): Ubuntu specifics.
193243
- [C++ Cheat](https://github.com/cirosantilli/cpp-cheat): contains some compilation / language heavy subjects like the POSIX C API or generation of dynamic libraries.
@@ -204,3 +254,13 @@ For filenames:
204254
And concepts inside file content:
205255

206256
git grep '#something'
257+
258+
## WIP
259+
260+
Compilation and libraries:
261+
262+
- [gcov](gcov.md)
263+
264+
Misc:
265+
266+
- [sys-filesystem](sys-filesystem.md)

boot.md

+4
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ Generated files and data after `sudo update-grub`:
9595

9696
- `GRUB_CMDLINE_LINUX_DEFAULT`: space separated list of Kernel boot parameters.
9797

98+
Documented at:
99+
100+
man bootparam
101+
98102
Those parameters can also be edited from the boot menu for single session by selecting the partition and clicking `e`.
99103

100104
Most important to know:

chef/README.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Chef
2+
3+
Good intro tutorial: <http://gettingstartedwithchef.com/first-steps-with-chef.html>
4+
5+
Important terms:
6+
7+
- cookbook: contains one ore more recipes, template files, etc.
8+
9+
- recipe: specifies how to take an action.
10+
11+
- chef-solo: version of the program that runs on a single computer.
12+
13+
Reads local configuration files and modifies the system.
14+
15+
- chef-client and chef-server: version of the program that runs in a client server system.
16+
17+
Normally, the server offers configuration files requested by the client, which uses them to modify the system it runs on.
18+
19+
- knife: program that can:
20+
21+
- create cookbook templates:
22+
23+
knife cookbook create $COOKBOOK_NAME
24+
25+
- download recipes so that chef-solo can use them:
26+
27+
knife cookbook site download $COOKBOOK_NAME
28+
29+
Does not resolve recipe dependencies.
30+
31+
- berkshelf: downloads recipes like knife, but also manages dependencies.

config-automation/chef/vagrant_called/README.md renamed to chef/vagrant_called/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Vagrant called
2+
13
On this example, Vagrant invokes chef automatically at Vagrant up.
24

35
All the chef configs including the `-j a.json` and `-c a.rb` files are inside `Vagrantfile`.

cmp.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cmp
22

3-
GNU Diffutils package.
3+
<http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cmp.html>, Ubuntu GNU Diffutils package.
44

55
Compares F and G byte by byte, until first difference is found.
66

column.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# column
2+
3+
`bsdmainutils` package.
4+
5+
If the input would be larger than the current terminal column count, format it into newspaper like columns.
6+
7+
seq 100 | column
8+
9+
Sample output:
10+
11+
1 6 11 16 21 26 31 36 41 46 51 56 61 66 71 76 81 86 91 96
12+
2 7 12 17 22 27 32 37 42 47 52 57 62 67 72 77 82 87 92 97
13+
3 8 13 18 23 28 33 38 43 48 53 58 63 68 73 78 83 88 93 98
14+
4 9 14 19 24 29 34 39 44 49 54 59 64 69 74 79 84 89 94 99
15+
5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
16+
17+
Options:
18+
19+
- `-t`: format data into table format. Intelligently uses a separator char
20+
- `-s`: set the separator char
21+
22+
Command:
23+
24+
printf '123|1|12345\n12345|123|1\n' | column -ts'|'
25+
26+
Sample output:
27+
28+
123 1 12345
29+
12345 123 1
File renamed without changes.

0 commit comments

Comments
 (0)