diff --git a/tldr/aws-ce b/tldr/aws-ce index f315facd..e4cd3bae 100644 --- a/tldr/aws-ce +++ b/tldr/aws-ce @@ -3,39 +3,39 @@ syntax: markdown tags: [tldr, common] source: https://github.com/tldr-pages/tldr.git --- -# aws-ce +# aws ce -> Analyze and manage access controls and security settings within your Cloud Environment. -> More information: . +> Run cost management operations through the AWS Cost Explorer service. +> More information: . -- Create a new Access Control Analyzer: +- Create anomaly monitor: -`awe-ce create-analyzer --analyzer-name {{analyzer_name}} --type {{type}} --tags {{tags}}` +`aws ce create-anomaly-monitor --monitor {{monitor_name}} --monitor-type {{monitor_type}}` -- Delete an existing Access Control Analyzer: +- Create anomaly subscription: -`awe-ce delete-analyzer --analyzer-arn {{analyzer_arn}}` +`aws ce create-anomaly-subscription --subscription {{subscription_name}} --monitor-arn {{monitor_arn}} --subscribers {{subscribers}}` -- Get details of a specific Access Control Analyzer: +- Get anomalies: -`awe-ce get-analyzer --analyzer-arn {{analyzer_arn}}` +`aws ce get-anomalies --monitor-arn {{monitor_arn}} --start-time {{start_time}} --end-time {{end_time}}` -- List all Access Control Analyzers: +- Get cost and usage: -`awe-ce list-analyzers` +`aws ce get-cost-and-usage --time-period {{start_date}}/{{end_date}} --granularity {{granularity}} --metrics {{metrics}}` -- Update settings of an Access Control Analyzer: +- Get cost forecast: -`awe-ce update-analyzer --analyzer-arn {{analyzer_arn}} --tags {{new_tags}}` +`aws ce get-cost-forecast --time-period {{start_date}}/{{end_date}} --granularity {{granularity}} --metric {{metric}}` -- Create a new Access Control Analyzer archive rule: +- Get reservation utilization: -`awe-ce create-archive-rule --analyzer-arn {{analyzer_arn}} --rule-name {{rule_name}} --filter {{filter}}` +`aws ce get-reservation-utilization --time-period {{start_date}}/{{end_date}} --granularity {{granularity}}` -- Delete an Access Control Analyzer archive rule: +- List cost category definitions: -`awe-ce delete-archive-rule --analyzer-arn {{analyzer_arn}} --rule-name {{rule_name}}` +`aws ce list-cost-category-definitions` -- List all Access Control Analyzer archive rules: +- Tag resource: -`awe-ce list-archive-rules --analyzer-arn {{analyzer_arn}}` +`aws ce tag-resource --resource-arn {{resource_arn}} --tags {{tags}}` diff --git a/tldr/freebsd/pkg b/tldr/freebsd/pkg index 74a93c9d..79fe1978 100644 --- a/tldr/freebsd/pkg +++ b/tldr/freebsd/pkg @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pkg > FreeBSD package manager. -> More information: . +> More information: . - Install a new package: diff --git a/tldr/linux/chsh b/tldr/linux/chsh index 4f6d493f..d2f41f03 100644 --- a/tldr/linux/chsh +++ b/tldr/linux/chsh @@ -11,11 +11,11 @@ source: https://github.com/tldr-pages/tldr.git - Set a specific login shell for the current user interactively: -`sudo chsh` +`chsh` - Set a specific login [s]hell for the current user: -`sudo chsh --shell {{path/to/shell}}` +`chsh --shell {{path/to/shell}}` - Set a login [s]hell for a specific user: @@ -23,4 +23,4 @@ source: https://github.com/tldr-pages/tldr.git - [l]ist available shells: -`sudo chsh --list-shells` +`chsh --list-shells` diff --git a/tldr/lychee b/tldr/lychee new file mode 100644 index 00000000..04abc300 --- /dev/null +++ b/tldr/lychee @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# lychee + +> Find broken URLs. +> More information: . + +- Scan a website for broken links: + +`lychee {{https://example.com}}` + +- Display a breakdown of error types: + +`lychee --format detailed {{https://example.com}}` + +- Limit the amount of connections to prevent DDOS protection: + +`lychee --max-concurrency {{5}} {{links.txt}}` + +- Check files in a directory structure for any broken URLs: + +`grep -r "{{pattern}}" | lychee -` + +- Display help: + +`lychee --help` diff --git a/tldr/netbsd/cal b/tldr/netbsd/cal index a3b32651..0559cbcf 100644 --- a/tldr/netbsd/cal +++ b/tldr/netbsd/cal @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # cal > Display a calendar. -> More information: . +> More information: . - Display a calendar for the current month: diff --git a/tldr/netbsd/chpass b/tldr/netbsd/chpass index d81df6ab..e09f8590 100644 --- a/tldr/netbsd/chpass +++ b/tldr/netbsd/chpass @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Add or change user database information, including login shell and password. > See also: `passwd`. -> More information: . +> More information: . - Set a specific login shell for the current user interactively: diff --git a/tldr/netbsd/df b/tldr/netbsd/df index 34fa978f..765b7e79 100644 --- a/tldr/netbsd/df +++ b/tldr/netbsd/df @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # df > Display an overview of the filesystem disk space usage. -> More information: . +> More information: . - Display all filesystems and their disk usage using 512-byte units: diff --git a/tldr/netbsd/sockstat b/tldr/netbsd/sockstat index 7064c951..f9b38246 100644 --- a/tldr/netbsd/sockstat +++ b/tldr/netbsd/sockstat @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > List open Internet or UNIX domain sockets. > Note: this program is a rewrite for NetBSD 3.0 from FreeBSD's `sockstat`. > See also: `netstat`. -> More information: . +> More information: . - Show information for IPv4, IPv6 and Unix sockets for both listening and connected sockets: