mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-13 20:59:32 +00:00
Update cheatsheets
This commit is contained in:
30
tldr/filecheck
Normal file
30
tldr/filecheck
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# FileCheck
|
||||||
|
|
||||||
|
> Flexible pattern matching file verifier.
|
||||||
|
> It is typically used from LLVM regression tests and forms a part of a `lit` test.
|
||||||
|
> More information: <https://llvm.org/docs/CommandGuide/FileCheck.html>.
|
||||||
|
|
||||||
|
- Match `input_file` content with pattern file `check_file`:
|
||||||
|
|
||||||
|
`FileCheck --input-file={{path/to/input_file}} {{path/to/check_file}}`
|
||||||
|
|
||||||
|
- Match input from the `stdin` with pattern file `check_file`:
|
||||||
|
|
||||||
|
`echo "{{some_text}}" | FileCheck {{path/to/check_file}}`
|
||||||
|
|
||||||
|
- Match with the specified custom check `prefix` (Note: the default prefix is `CHECK`):
|
||||||
|
|
||||||
|
`echo "{{some_text}}" | FileCheck --check-prefix={{prefix}} {{path/to/check_file}}`
|
||||||
|
|
||||||
|
- Print good directive pattern matches:
|
||||||
|
|
||||||
|
`echo "{{some_text}}" | FileCheck -v {{path/to/check_file}}`
|
||||||
|
|
||||||
|
- Input `llvm_code.ll` into llvm-as, then pipe the output into FileCheck to match:
|
||||||
|
|
||||||
|
`llvm-as {{path/to/llvm_code.ll}} | FileCheck {{path/to/check_file}}`
|
||||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
> Command-line interface for creating and managing Kubernetes clusters.
|
> Command-line interface for creating and managing Kubernetes clusters.
|
||||||
> More information: <https://kubernetes.io/docs/reference/setup-tools/kubeadm>.
|
> More information: <https://kubernetes.io/docs/reference/setup-tools/kubeadm>.
|
||||||
|
|
||||||
- Create a Kubernetes master node:
|
- Create a Kubernetes control plane:
|
||||||
|
|
||||||
`kubeadm init`
|
`kubeadm init`
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Activate a network named `default`:
|
- Activate a network named `default`:
|
||||||
|
|
||||||
`virsh net-start {{default}}`
|
`sudo virsh net-start {{default}}`
|
||||||
|
|
||||||
- List all domains:
|
- List all domains:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user