mirror of
https://github.com/chubin/cheat.sh.git
synced 2024-11-25 23:46:00 +03:00
Update tests
This commit is contained in:
parent
6515e7d86b
commit
7b043574f7
@ -1,3 +1,4 @@
|
||||
[48;5;8m[24m cheat.sheets:az [24m[0m
|
||||
[38;5;246;03m# Microsoft Azure CLI 2.0[39;00m
|
||||
[38;5;246;03m# Command-line tools for Azure[39;00m
|
||||
|
||||
@ -88,3 +89,26 @@
|
||||
|
||||
[38;5;246;03m# detach disk[39;00m
|
||||
[38;5;252maz[39m[38;5;252m [39m[38;5;252mvm[39m[38;5;252m [39m[38;5;252mdisk[39m[38;5;252m [39m[38;5;252mdetach[39m[38;5;252m [39m[38;5;252m--vm-name[39m[38;5;252m [39m[38;5;252mvm1[39m[38;5;252m [39m[38;5;252m-g[39m[38;5;252m [39m[38;5;252mRESOURCE_GROUP[39m[38;5;252m [39m[38;5;252m--name[39m[38;5;252m [39m[38;5;252mDISK1_ID[39m
|
||||
|
||||
[48;5;8m[24m tldr:az [24m[0m
|
||||
[38;5;246;03m# az[39;00m
|
||||
[38;5;246;03m# The official CLI tool for Microsoft Azure.[39;00m
|
||||
[38;5;246;03m# More information: <https://docs.microsoft.com/cli/azure>.[39;00m
|
||||
|
||||
[38;5;246;03m# Log in to Azure:[39;00m
|
||||
[38;5;252maz[39m[38;5;252m [39m[38;5;252mlogin[39m
|
||||
|
||||
[38;5;246;03m# Manage azure subscription information:[39;00m
|
||||
[38;5;252maz[39m[38;5;252m [39m[38;5;252maccount[39m
|
||||
|
||||
[38;5;246;03m# List all Azure Managed Disks:[39;00m
|
||||
[38;5;252maz[39m[38;5;252m [39m[38;5;252mdisk[39m[38;5;252m [39m[38;5;252mlist[39m
|
||||
|
||||
[38;5;246;03m# List all Azure virtual machines:[39;00m
|
||||
[38;5;252maz[39m[38;5;252m [39m[38;5;252mvm[39m[38;5;252m [39m[38;5;252mlist[39m
|
||||
|
||||
[38;5;246;03m# Manage Azure Kubernetes Services:[39;00m
|
||||
[38;5;252maz[39m[38;5;252m [39m[38;5;252maks[39m
|
||||
|
||||
[38;5;246;03m# Manage Azure Network resources:[39;00m
|
||||
[38;5;252maz[39m[38;5;252m [39m[38;5;252mnetwork[39m
|
||||
|
@ -1,3 +1,4 @@
|
||||
[48;5;8m[24m cheat:ls [24m[0m
|
||||
[38;5;246;03m# To display everything in <dir>, excluding hidden files:[39;00m
|
||||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m<[39m[38;5;252mdir>[39m
|
||||
|
||||
@ -15,3 +16,28 @@
|
||||
|
||||
[38;5;246;03m# To display directories only, include hidden:[39;00m
|
||||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-d[39m[38;5;252m [39m[38;5;252m.*/[39m[38;5;252m [39m[38;5;252m*/[39m[38;5;252m [39m[38;5;252m<[39m[38;5;252mdir>[39m
|
||||
|
||||
[48;5;8m[24m tldr:ls [24m[0m
|
||||
[38;5;246;03m# ls[39;00m
|
||||
[38;5;246;03m# List directory contents.[39;00m
|
||||
|
||||
[38;5;246;03m# List files one per line:[39;00m
|
||||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-1[39m
|
||||
|
||||
[38;5;246;03m# List all files, including hidden files:[39;00m
|
||||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-a[39m
|
||||
|
||||
[38;5;246;03m# List all files, with trailing `/` added to directory names:[39;00m
|
||||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-F[39m
|
||||
|
||||
[38;5;246;03m# Long format list (permissions, ownership, size and modification date) of all files:[39;00m
|
||||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-la[39m
|
||||
|
||||
[38;5;246;03m# Long format list with size displayed using human readable units (KB, MB, GB):[39;00m
|
||||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-lh[39m
|
||||
|
||||
[38;5;246;03m# Long format list sorted by size (descending):[39;00m
|
||||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-lS[39m
|
||||
|
||||
[38;5;246;03m# Long format list of all files, sorted by modification date (oldest first):[39;00m
|
||||
[38;5;252mls[39m[38;5;252m [39m[38;5;252m-ltr[39m
|
||||
|
@ -1,3 +1,4 @@
|
||||
#[cheat:ls]
|
||||
# To display everything in <dir>, excluding hidden files:
|
||||
ls <dir>
|
||||
|
||||
@ -15,3 +16,27 @@ ls -d */ <dir>
|
||||
|
||||
# To display directories only, include hidden:
|
||||
ls -d .*/ */ <dir>
|
||||
#[tldr:ls]
|
||||
# ls
|
||||
# List directory contents.
|
||||
|
||||
# List files one per line:
|
||||
ls -1
|
||||
|
||||
# List all files, including hidden files:
|
||||
ls -a
|
||||
|
||||
# List all files, with trailing `/` added to directory names:
|
||||
ls -F
|
||||
|
||||
# Long format list (permissions, ownership, size and modification date) of all files:
|
||||
ls -la
|
||||
|
||||
# Long format list with size displayed using human readable units (KB, MB, GB):
|
||||
ls -lh
|
||||
|
||||
# Long format list sorted by size (descending):
|
||||
ls -lS
|
||||
|
||||
# Long format list of all files, sorted by modification date (oldest first):
|
||||
ls -ltr
|
||||
|
@ -1,3 +1,4 @@
|
||||
[48;5;8m[24m cheat.sheets:btrfs [24m[0m
|
||||
[38;5;246;03m# Create a btrfs file system on /dev/sdb, /dev/sdc, and /dev/sdd[39;00m
|
||||
[38;5;252mmkfs.btrfs[39m[38;5;252m [39m[38;5;252m/dev/sdb[39m[38;5;252m [39m[38;5;252m/dev/sdc[39m[38;5;252m [39m[38;5;252m/dev/sdd[39m
|
||||
|
||||
@ -52,3 +53,22 @@
|
||||
|
||||
[38;5;246;03m# convert btrfs to ext3/ext4[39;00m
|
||||
[38;5;252mbtrfs-convert[39m[38;5;252m [39m[38;5;252m-r[39m[38;5;252m [39m[38;5;252m/dev/sdb1[39m
|
||||
|
||||
[48;5;8m[24m tldr:btrfs [24m[0m
|
||||
[38;5;246;03m# btrfs[39;00m
|
||||
[38;5;246;03m# A filesystem based on the copy-on-write (COW) principle for Linux.[39;00m
|
||||
|
||||
[38;5;246;03m# Create subvolume:[39;00m
|
||||
[38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252msubvolume[39m[38;5;252m [39m[38;5;252mcreate[39m[38;5;252m [39m[38;5;252mpath/to/subvolume[39m
|
||||
|
||||
[38;5;246;03m# List subvolumes:[39;00m
|
||||
[38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252msubvolume[39m[38;5;252m [39m[38;5;252mlist[39m[38;5;252m [39m[38;5;252mpath/to/mount_point[39m
|
||||
|
||||
[38;5;246;03m# Show space usage information:[39;00m
|
||||
[38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252mfilesystem[39m[38;5;252m [39m[38;5;252mdf[39m[38;5;252m [39m[38;5;252mpath/to/mount_point[39m
|
||||
|
||||
[38;5;246;03m# Enable quota:[39;00m
|
||||
[38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252mquota[39m[38;5;252m [39m[38;5;31menable[39m[38;5;252m [39m[38;5;252mpath/to/subvolume[39m
|
||||
|
||||
[38;5;246;03m# Show quota:[39;00m
|
||||
[38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252mqgroup[39m[38;5;252m [39m[38;5;252mshow[39m[38;5;252m [39m[38;5;252mpath/to/subvolume[39m
|
||||
|
@ -1,4 +1,4 @@
|
||||
[48;5;8m[24m btrfs [24m[0m
|
||||
[48;5;8m[24m cheat.sheets:btrfs [24m[0m
|
||||
[38;5;246;03m# create the subvolume /mnt/sv1 in the /mnt volume[39;00m
|
||||
[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252msubvolume[39m[38;5;252m [39m[38;5;252mcreate[39m[38;5;252m [39m[38;5;252m/mnt/sv1[39m
|
||||
|
||||
@ -13,3 +13,16 @@
|
||||
|
||||
[38;5;246;03m# taking snapshot of a subvolume[39;00m
|
||||
[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252msubvolume[39m[38;5;252m [39m[38;5;252msnapshot[39m[38;5;252m [39m[38;5;252m/mnt/sv1[39m[38;5;252m [39m[38;5;252m/mnt/sv1_snapshot[39m
|
||||
|
||||
[48;5;8m[24m tldr:btrfs [24m[0m
|
||||
[38;5;246;03m# Create subvolume:[39;00m
|
||||
[38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252msubvolume[39m[38;5;252m [39m[38;5;252mcreate[39m[38;5;252m [39m[38;5;252mpath/to/subvolume[39m
|
||||
|
||||
[38;5;246;03m# List subvolumes:[39;00m
|
||||
[38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252msubvolume[39m[38;5;252m [39m[38;5;252mlist[39m[38;5;252m [39m[38;5;252mpath/to/mount_point[39m
|
||||
|
||||
[38;5;246;03m# Enable quota:[39;00m
|
||||
[38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252mquota[39m[38;5;252m [39m[38;5;31menable[39m[38;5;252m [39m[38;5;252mpath/to/subvolume[39m
|
||||
|
||||
[38;5;246;03m# Show quota:[39;00m
|
||||
[38;5;252msudo[39m[38;5;252m [39m[38;5;252mbtrfs[39m[38;5;252m [39m[38;5;252mqgroup[39m[38;5;252m [39m[38;5;252mshow[39m[38;5;252m [39m[38;5;252mpath/to/subvolume[39m
|
||||
|
Loading…
Reference in New Issue
Block a user