|
@@ -1,11 +1,41 @@
|
1
|
1
|
+++
|
2
|
2
|
+++
|
3
|
3
|
|
|
4
|
+:source-highlighter: pygments
|
|
5
|
+:source-language: console
|
|
6
|
+
|
4
|
7
|
== Linux
|
5
|
8
|
|
6
|
|
-=== Notes
|
|
9
|
+=== Random commands
|
|
10
|
+
|
|
11
|
+Split some pages from a PDF::
|
|
12
|
+[source]
|
|
13
|
+----
|
|
14
|
+$ pdftk myoldfile.pdf cat 1 2 4 5 output mynewfile.pdf
|
|
15
|
+----
|
|
16
|
+Resizing disks::
|
|
17
|
+[source]
|
|
18
|
+----
|
|
19
|
+$ fdisk # delete and recreate the partition
|
|
20
|
+$ resize2fs # resize to the new partition
|
|
21
|
+----
|
|
22
|
+Adjust IO priority::
|
|
23
|
+[source]
|
|
24
|
+----
|
|
25
|
+$ iotop -c 3 pid # -c 3 is "when idle"
|
|
26
|
+----
|
|
27
|
+Take a screenshot of an area::
|
|
28
|
+[source]
|
|
29
|
+----
|
|
30
|
+$ scrot -s output.png
|
|
31
|
+----
|
|
32
|
+
|
|
33
|
+=== Alpine
|
|
34
|
+
|
|
35
|
+https://www.alpinelinux.org/[Alpine] is a lightweight linux distribution that
|
|
36
|
+uses musl libc and busybox. It is often used in docker images due to its
|
|
37
|
+relatively small footprint.
|
|
38
|
+
|
|
39
|
+==== Notes
|
7
|
40
|
|
8
|
|
-* `iotop` adjusts priorities of I/O - `-c 3` is 'when idle'
|
9
|
|
-* Resizing disks:
|
10
|
|
-1. `fdisk` to delete and recreate the partition
|
11
|
|
-2. `resize2fs` to resize to the new partition
|
|
41
|
+* The equivalent of Ubuntu's `build-essential` is `build-base`
|