relpipe-data/examples-in-fstab.xml
author František Kučera <franta-hg@frantovo.cz>
Mon, 21 Feb 2022 00:43:11 +0100
branchv_0
changeset 329 5bc2bb8b7946
parent 244 d4f401b5f90c
permissions -rw-r--r--
Release v0.18
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
23
0d2729ed16ed zkouška interního odkazu
František Kučera <franta-hg@frantovo.cz>
parents: 18
diff changeset
     1
<stránka
0d2729ed16ed zkouška interního odkazu
František Kučera <franta-hg@frantovo.cz>
parents: 18
diff changeset
     2
	xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana"
0d2729ed16ed zkouška interního odkazu
František Kučera <franta-hg@frantovo.cz>
parents: 18
diff changeset
     3
	xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro">
0d2729ed16ed zkouška interního odkazu
František Kučera <franta-hg@frantovo.cz>
parents: 18
diff changeset
     4
	
244
d4f401b5f90c examples: move each example to a separate page + add generated list of examples
František Kučera <franta-hg@frantovo.cz>
parents: 241
diff changeset
     5
	<nadpis>Reading fstab</nadpis>
d4f401b5f90c examples: move each example to a separate page + add generated list of examples
František Kučera <franta-hg@frantovo.cz>
parents: 241
diff changeset
     6
	<perex>converting /etc/fstab or /etc/mtab to relational data</perex>
d4f401b5f90c examples: move each example to a separate page + add generated list of examples
František Kučera <franta-hg@frantovo.cz>
parents: 241
diff changeset
     7
	<m:pořadí-příkladu>00200</m:pořadí-příkladu>
4
1bb39595a51c genrování hlavní nabídky #1
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
     8
2
ab9099ff88fa vkládání zápatí, jmenné prostory, saxon
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
     9
	<text xmlns="http://www.w3.org/1999/xhtml">
176
46042297e0d6 relpipe-tr-validator: specification and examples
František Kučera <franta-hg@frantovo.cz>
parents: 140
diff changeset
    10
		
186
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    11
		<p>
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    12
			Using command <code>relpipe-in-fstab</code> we can convert the <code>/etc/fstab</code> or <code>/etc/mtab</code> to relational data 
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    13
		</p>
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    14
		
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    15
		<m:pre jazyk="bash"><![CDATA[relpipe-in-fstab | relpipe-out-tabular]]></m:pre>
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    16
		
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    17
		<p>
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    18
			and see them as a nice table:
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    19
		</p>
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    20
		
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    21
		<pre><![CDATA[fstab:
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    22
 ╭─────────────────┬──────────────────────────────────────┬──────────────────────┬───────────────┬───────────────────────────────────────┬────────────────┬────────────────╮
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    23
 │ scheme (string) │ device                      (string) │ mount_point (string) │ type (string) │ options                      (string) │ dump (integer) │ pass (integer) │
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    24
 ├─────────────────┼──────────────────────────────────────┼──────────────────────┼───────────────┼───────────────────────────────────────┼────────────────┼────────────────┤
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    25
 │ UUID            │ 29758270-fd25-4a6c-a7bb-9a18302816af │ /                    │ ext4          │ relatime,user_xattr,errors=remount-ro │              0 │              1 │
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    26
 │                 │ /dev/sr0                             │ /media/cdrom0        │ udf,iso9660   │ user,noauto                           │              0 │              0 │
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    27
 │                 │ /dev/sde                             │ /mnt/data            │ ext4          │ relatime,user_xattr,errors=remount-ro │              0 │              2 │
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    28
 │ UUID            │ a2b5f230-a795-4f6f-a39b-9b57686c86d5 │ /home                │ btrfs         │ relatime                              │              0 │              2 │
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    29
 │                 │ /dev/mapper/sdf_crypt                │ /mnt/private         │ xfs           │ relatime                              │              0 │              2 │
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    30
 ╰─────────────────┴──────────────────────────────────────┴──────────────────────┴───────────────┴───────────────────────────────────────┴────────────────┴────────────────╯
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    31
Record count: 5]]></pre>
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    32
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    33
		<p>And we can do the same also with a remote <code>fstab</code> or <code>mtab</code>; just by adding <code>ssh</code> to the pipeline:</p>
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    34
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    35
		<m:pre jazyk="bash"><![CDATA[ssh example.com cat /etc/mtab | relpipe-in-fstab | relpipe-out-tabular]]></m:pre>
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    36
		
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    37
		<p>
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    38
			The <code>cat</code> runs remotely. The <code>relpipe-in-fstab</code> and <code>relpipe-out-tabular</code> run on our machine.
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    39
		</p>
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    40
		
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    41
		<p>
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    42
			n.b. the <code>relpipe-in-fstab</code> reads the <code>/etc/fstab</code> if executed on TTY. Otherwise, it reads the STDIN.
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    43
		</p>
e33f13c91289 examples: relpipe-in-fstab
František Kučera <franta-hg@frantovo.cz>
parents: 185
diff changeset
    44
		
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 23
diff changeset
    45
	</text>
4
1bb39595a51c genrování hlavní nabídky #1
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    46
1
a05c6f3cbc3e základ, první verze
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    47
</stránka>