Update cheatsheets

This commit is contained in:
ivuorinen
2024-06-09 00:16:30 +00:00
parent 84caf38102
commit 0f99439c7f
6 changed files with 77 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# audacious
> An open-source audio player. Indirectly based on XMMS.
> See also: `clementine`, `mpc`, `ncmpcpp`.
> See also: `audtool`, `clementine`, `mpc`, `ncmpcpp`.
> More information: <https://audacious-media-player.org>.
- Launch the GUI:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# audtool
> Control Audacious using commands.
> See also: `audacious`.
> More information: <https://manned.org/audtool>.
- Play/pause audio playback:

View File

@@ -25,7 +25,7 @@ source: https://github.com/tldr-pages/tldr.git
`magick convert {{path/to/input_image.png}} -define jpeg:extent=512kb {{path/to/output_image.jpg}}`
- Vertically/Horizontally append images:
- Vertically/horizontally append images:
`magick convert {{path/to/image1.png path/to/image2.png ...}} {{-append|+append}} {{path/to/output_image.png}}`

View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, windows]
source: https://github.com/tldr-pages/tldr.git
---
# Enable-PnpDevice
> The Enable-PnpDevice cmdlet enables a Plug and Play (PnP) device. You must use an Administrator account to enable a device.
> Note: This command can only be used through PowerShell.
> More information: <https://learn.microsoft.com/powershell/module/pnpdevice/enable-pnpdevice>.
- Enable a device:
`Enable-PnpDevice -InstanceId 'RETRIEVED USING Get-PnpDevice COMMAND'`
- Enable all disabled PnP devices:
`Get-PnpDevice | Where-Object {$_.Problem -eq 22} | Enable-PnpDevice`
- Enable a device without confirmation:
`Enable-PnpDevice -InstanceId 'RETRIEVED USING Get-PnpDevice COMMAND' -Confirm:$False`
- Dry run of what would happen if the cmdlet runs:
`Enable-PnpDevice -InstanceId 'USB\VID_5986&;PID_0266&;MI_00\7&;1E5D3568&;0&;0000' -WhatIf:$True`

View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, windows]
source: https://github.com/tldr-pages/tldr.git
---
# Get-DedupProperties
> Gets Data Deduplication information.
> Note: This command can only be used through PowerShell.
> More information: <https://learn.microsoft.com/powershell/module/storage/get-dedupproperties>.
- Get Data Deduplication information of the drive:
`Get-DedupProperties -DriveLetter 'C'`
- Get Data Deduplication information of the drive using the drive label:
`Get-DedupProperties -FileSystemLabel 'Label'`
- Get Data Dedpulication information of the drive using the input object:
`Get-DedupProperties -InputObject $(Get-Volume -DriveLetter 'E')`

26
tldr/windows/set-volume Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, windows]
source: https://github.com/tldr-pages/tldr.git
---
# Set-Volume
> Sets or changes the file system label of an existing volume.
> Note: This command can only be used through PowerShell.
> More information: <https://learn.microsoft.com/powershell/module/storage/set-volume>.
- Change the file system label of a volume identified by drive letter:
`Set-Volume -DriveLetter "D" -NewFileSystemLabel "DataVolume"`
- Change the file system label of a volume identified by the system label:
`Set-Volume -FileSystemLabel "OldLabel" -NewFileSystemLabel "NewLabel"`
- Modify the properties of a volume using a volume object:
`Set-Volume -InputObject $(Get-Volume -DriveLetter "E") -NewFileSystemLabel "Backup"`
- Specify the Data Deduplication mode for the volume:
`Set-Volume -DriveLetter "D" -DedupMode Backup`