Browse Source

Expand linux page a bit

master
Chris Smith 5 years ago
parent
commit
d693c023f7
2 changed files with 35 additions and 17 deletions
  1. 0
    12
      content/docs/software/alpine.adoc
  2. 35
    5
      content/docs/software/linux.adoc

+ 0
- 12
content/docs/software/alpine.adoc View File

@@ -1,12 +0,0 @@
1
-+++
2
-+++
3
-
4
-== Alpine
5
-
6
-https://www.alpinelinux.org/[Alpine] is a lightweight linux distribution that
7
-uses musl libc and busybox. It is often used in docker images due to its
8
-relatively small footprint.
9
-
10
-=== Notes
11
-
12
-* The equivalent of Ubuntu's `build-essential` is `build-base`

+ 35
- 5
content/docs/software/linux.adoc View File

@@ -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`

Loading…
Cancel
Save