1
1
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:
Igor Chubin 2020-11-22 19:00:56 +00:00
parent 6515e7d86b
commit 7b043574f7
5 changed files with 109 additions and 1 deletions

View File

@ -1,3 +1,4 @@
 cheat.sheets:az 
# Microsoft Azure CLI 2.0
# Command-line tools for Azure
@ -88,3 +89,26 @@
# detach disk
az vm disk detach --vm-name vm1 -g RESOURCE_GROUP --name DISK1_ID
 tldr:az 
# az
# The official CLI tool for Microsoft Azure.
# More information: <https://docs.microsoft.com/cli/azure>.
# Log in to Azure:
az login
# Manage azure subscription information:
az account
# List all Azure Managed Disks:
az disk list
# List all Azure virtual machines:
az vm list
# Manage Azure Kubernetes Services:
az aks
# Manage Azure Network resources:
az network

View File

@ -1,3 +1,4 @@
 cheat:ls 
# To display everything in <dir>, excluding hidden files:
ls <dir>
@ -15,3 +16,28 @@
# 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

View File

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

View File

@ -1,3 +1,4 @@
 cheat.sheets:btrfs 
# Create a btrfs file system on /dev/sdb, /dev/sdc, and /dev/sdd
mkfs.btrfs /dev/sdb /dev/sdc /dev/sdd
@ -52,3 +53,22 @@
# convert btrfs to ext3/ext4
btrfs-convert -r /dev/sdb1
 tldr:btrfs 
# btrfs
# A filesystem based on the copy-on-write (COW) principle for Linux.
# Create subvolume:
sudo btrfs subvolume create path/to/subvolume
# List subvolumes:
sudo btrfs subvolume list path/to/mount_point
# Show space usage information:
sudo btrfs filesystem df path/to/mount_point
# Enable quota:
sudo btrfs quota enable path/to/subvolume
# Show quota:
sudo btrfs qgroup show path/to/subvolume

View File

@ -1,4 +1,4 @@
 btrfs 
 cheat.sheets:btrfs 
# create the subvolume /mnt/sv1 in the /mnt volume
btrfs subvolume create /mnt/sv1
@ -13,3 +13,16 @@
# taking snapshot of a subvolume
btrfs subvolume snapshot /mnt/sv1 /mnt/sv1_snapshot
 tldr:btrfs 
# Create subvolume:
sudo btrfs subvolume create path/to/subvolume
# List subvolumes:
sudo btrfs subvolume list path/to/mount_point
# Enable quota:
sudo btrfs quota enable path/to/subvolume
# Show quota:
sudo btrfs qgroup show path/to/subvolume