mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-15 17:00:09 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/gc
Normal file
29
tldr/gc
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gc
|
||||
|
||||
> Count nodes, edges, connected components, or clusters in Graphviz `.dot` files.
|
||||
> More information: <https://graphviz.org/pdf/gc.1.pdf>.
|
||||
|
||||
- Count nodes and edges in a file:
|
||||
|
||||
`gc {{path/to/file.dot}}`
|
||||
|
||||
- Count only [n]odes:
|
||||
|
||||
`gc -n {{path/to/file.dot}}`
|
||||
|
||||
- Count only [e]dges:
|
||||
|
||||
`gc -e {{path/to/file.dot}}`
|
||||
|
||||
- Count [c]onnected components:
|
||||
|
||||
`gc -c {{path/to/file.dot}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`gc -?`
|
||||
Reference in New Issue
Block a user