Skip to content

Commit 7b04357

Browse files
committed
Update tests
1 parent 6515e7d commit 7b04357

File tree

5 files changed

+109
-1
lines changed

5 files changed

+109
-1
lines changed

tests/results/17

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
 cheat.sheets:az 
12
# Microsoft Azure CLI 2.0
23
# Command-line tools for Azure
34

@@ -88,3 +89,26 @@
8889

8990
# detach disk
9091
az vm disk detach --vm-name vm1 -g RESOURCE_GROUP --name DISK1_ID
92+
93+
 tldr:az 
94+
# az
95+
# The official CLI tool for Microsoft Azure.
96+
# More information: <https://docs.microsoft.com/cli/azure>.
97+
98+
# Log in to Azure:
99+
az login
100+
101+
# Manage azure subscription information:
102+
az account
103+
104+
# List all Azure Managed Disks:
105+
az disk list
106+
107+
# List all Azure virtual machines:
108+
az vm list
109+
110+
# Manage Azure Kubernetes Services:
111+
az aks
112+
113+
# Manage Azure Network resources:
114+
az network

tests/results/2

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
 cheat:ls 
12
# To display everything in <dir>, excluding hidden files:
23
ls <dir>
34

@@ -15,3 +16,28 @@
1516

1617
# To display directories only, include hidden:
1718
ls -d .*/ */ <dir>
19+
20+
 tldr:ls 
21+
# ls
22+
# List directory contents.
23+
24+
# List files one per line:
25+
ls -1
26+
27+
# List all files, including hidden files:
28+
ls -a
29+
30+
# List all files, with trailing `/` added to directory names:
31+
ls -F
32+
33+
# Long format list (permissions, ownership, size and modification date) of all files:
34+
ls -la
35+
36+
# Long format list with size displayed using human readable units (KB, MB, GB):
37+
ls -lh
38+
39+
# Long format list sorted by size (descending):
40+
ls -lS
41+
42+
# Long format list of all files, sorted by modification date (oldest first):
43+
ls -ltr

tests/results/3

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#[cheat:ls]
12
# To display everything in <dir>, excluding hidden files:
23
ls <dir>
34

@@ -15,3 +16,27 @@ ls -d */ <dir>
1516

1617
# To display directories only, include hidden:
1718
ls -d .*/ */ <dir>
19+
#[tldr:ls]
20+
# ls
21+
# List directory contents.
22+
23+
# List files one per line:
24+
ls -1
25+
26+
# List all files, including hidden files:
27+
ls -a
28+
29+
# List all files, with trailing `/` added to directory names:
30+
ls -F
31+
32+
# Long format list (permissions, ownership, size and modification date) of all files:
33+
ls -la
34+
35+
# Long format list with size displayed using human readable units (KB, MB, GB):
36+
ls -lh
37+
38+
# Long format list sorted by size (descending):
39+
ls -lS
40+
41+
# Long format list of all files, sorted by modification date (oldest first):
42+
ls -ltr

tests/results/4

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
 cheat.sheets:btrfs 
12
# Create a btrfs file system on /dev/sdb, /dev/sdc, and /dev/sdd
23
mkfs.btrfs /dev/sdb /dev/sdc /dev/sdd
34

@@ -52,3 +53,22 @@
5253

5354
# convert btrfs to ext3/ext4
5455
btrfs-convert -r /dev/sdb1
56+
57+
 tldr:btrfs 
58+
# btrfs
59+
# A filesystem based on the copy-on-write (COW) principle for Linux.
60+
61+
# Create subvolume:
62+
sudo btrfs subvolume create path/to/subvolume
63+
64+
# List subvolumes:
65+
sudo btrfs subvolume list path/to/mount_point
66+
67+
# Show space usage information:
68+
sudo btrfs filesystem df path/to/mount_point
69+
70+
# Enable quota:
71+
sudo btrfs quota enable path/to/subvolume
72+
73+
# Show quota:
74+
sudo btrfs qgroup show path/to/subvolume

tests/results/5

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
 btrfs 
1+
 cheat.sheets:btrfs 
22
# create the subvolume /mnt/sv1 in the /mnt volume
33
btrfs subvolume create /mnt/sv1
44

@@ -13,3 +13,16 @@
1313

1414
# taking snapshot of a subvolume
1515
btrfs subvolume snapshot /mnt/sv1 /mnt/sv1_snapshot
16+
17+
 tldr:btrfs 
18+
# Create subvolume:
19+
sudo btrfs subvolume create path/to/subvolume
20+
21+
# List subvolumes:
22+
sudo btrfs subvolume list path/to/mount_point
23+
24+
# Enable quota:
25+
sudo btrfs quota enable path/to/subvolume
26+
27+
# Show quota:
28+
sudo btrfs qgroup show path/to/subvolume

0 commit comments

Comments
 (0)