mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-09 18:46:35 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/linux/turbostat
Normal file
29
tldr/linux/turbostat
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# turbostat
|
||||
|
||||
> Report processor topology, frequency, temperature, power, and idle statistics.
|
||||
> More information: <https://manned.org/turbostat.8>.
|
||||
|
||||
- Display statistics every 5 seconds:
|
||||
|
||||
`sudo turbostat`
|
||||
|
||||
- Display statistics every specified amount of seconds:
|
||||
|
||||
`sudo turbostat -i {{n_seconds}}`
|
||||
|
||||
- Do not decode and print the system configuration header information:
|
||||
|
||||
`sudo turbostat --quiet`
|
||||
|
||||
- Display useful information about CPU every 1 second, without header information:
|
||||
|
||||
`sudo turbostat --quiet --interval 1 --cpu 0-{{CPU_thread_count}} --show "PkgWatt","Busy%","Core","CoreTmp","Thermal"`
|
||||
|
||||
- Display help:
|
||||
|
||||
`turbostat --help`
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Clear-Host
|
||||
|
||||
> Clears the screen.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.core/clear-host>.
|
||||
|
||||
- Clear the screen:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Get-Acl
|
||||
|
||||
> Get the security descriptor for a resource, such as a file or registry key.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.security/get-acl>.
|
||||
|
||||
- Display the ACL for a specific directory:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Get-ChildItem
|
||||
|
||||
> List items in a directory.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-childitem>.
|
||||
|
||||
- List all non-hidden items in the current directory:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Get-Content
|
||||
|
||||
> Get the content of the item at the specified location.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-content>.
|
||||
|
||||
- Display the content of a file:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Get-Date
|
||||
|
||||
> Get the current date and time.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-date>.
|
||||
|
||||
- Display the current date and time:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Get-FileHash
|
||||
|
||||
> Calculate a hash for a file.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-filehash>.
|
||||
|
||||
- Calculate a hash for a specified file using the SHA256 algorithm:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Get-History
|
||||
|
||||
> Display PowerShell command history.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.core/get-history>.
|
||||
|
||||
- Display the commands history list with ID:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Invoke-Item
|
||||
|
||||
> Open files in their respective default programs.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/invoke-item>.
|
||||
|
||||
- Open a file in its default program:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Invoke-WebRequest
|
||||
|
||||
> Performs a HTTP/HTTPS request to the Web.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-webrequest>.
|
||||
|
||||
- Download the contents of a URL to a file:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Measure-Command
|
||||
|
||||
> Measures the time it takes to run script blocks and cmdlets.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/measure-command>.
|
||||
|
||||
- Measure the time it takes to run a command:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Measure-Object
|
||||
|
||||
> Calculates the numeric properties of objects, and the characters, words, and lines in string objects, such as files of text.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/measure-object>.
|
||||
|
||||
- Count the files and folders in a directory:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# New-Item
|
||||
|
||||
> Create a new file, directory, symbolic link, or a registry entry.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/new-item>.
|
||||
|
||||
- Create a new blank file (equivalent to `touch`):
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Out-String
|
||||
|
||||
> Outputs input objects as a string.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/out-string>.
|
||||
|
||||
- Print host information as string:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Resolve-Path
|
||||
|
||||
> Resolves the wildcard characters in a path, and displays the path contents.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/resolve-path>.
|
||||
|
||||
- Resolve the home folder path:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Select-String
|
||||
|
||||
> Finds text in strings and files in PowerShell.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> You can use `Select-String` similar to `grep` in UNIX or `findstr.exe` in Windows.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/select-string>.
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Set-Acl
|
||||
|
||||
> Changes the security descriptor of a specified item, such as a file or a registry key.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.security/set-acl>.
|
||||
|
||||
- Copy a security descriptor from one file to another:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Set-Date
|
||||
|
||||
> Changes the system time on the computer to a time that you specify.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/set-date>.
|
||||
|
||||
- Add three days to the system date:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Set-Location
|
||||
|
||||
> Display the current working directory or move to a different directory.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/set-location>.
|
||||
|
||||
- Go to the specified directory:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Set-Service
|
||||
|
||||
> Starts, stops, and suspends a service, and changes its properties.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/set-service>.
|
||||
|
||||
- Change a display name:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Show-Markdown
|
||||
|
||||
> Shows a Markdown file or string in the console in a friendly way using VT100 escape sequences or in a browser using HTML.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/show-markdown>.
|
||||
|
||||
- Render markdown to console from a file:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Sort-Object
|
||||
|
||||
> Sorts objects by property values.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/sort-object>.
|
||||
|
||||
- Sort the current directory by name:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Start-Service
|
||||
|
||||
> Starts stopped services.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/start-service>.
|
||||
|
||||
- Start a service by using its name:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Stop-Service
|
||||
|
||||
> Stops running services.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/stop-service>.
|
||||
|
||||
- Stop a service on the local computer:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Tee-Object
|
||||
|
||||
> Saves command output in a file or variable and also sends it down the pipeline.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/tee-object>.
|
||||
|
||||
- Output processes to a file and to the console:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Test-Json
|
||||
|
||||
> Test whether a string is a valid JSON document.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/test-json>.
|
||||
|
||||
- Test if a string from `stdin` is in JSON format:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Test-NetConnection
|
||||
|
||||
> Display diagnostic information for a connection.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/nettcpip/test-netconnection>.
|
||||
|
||||
- Test a connection and display detailed results:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Wait-Process
|
||||
|
||||
> Waits for the processes to be stopped before accepting more input.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/wait-process>.
|
||||
|
||||
- Stop a process and wait:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Where-Object
|
||||
|
||||
> Selects objects from a collection based on their property values.
|
||||
> This command can only be used through PowerShell.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.core/where-object>.
|
||||
|
||||
- Filter aliases by its name:
|
||||
|
||||
Reference in New Issue
Block a user