diff --git a/tldr/git-repack b/tldr/git-repack index bb433cb2..3187fddf 100644 --- a/tldr/git-repack +++ b/tldr/git-repack @@ -12,6 +12,14 @@ source: https://github.com/tldr-pages/tldr.git `git repack` -- Also remove redundant objects after packing: +- Remove redundant objects after packing: `git repack -d` + +- Repack all objects into a single pack: + +`git repack -a` + +- Limit the repack to local objects only: + +`git repack -l` diff --git a/tldr/join b/tldr/join index d53ed803..8c4d8261 100644 --- a/tldr/join +++ b/tldr/join @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Join two files using a comma (instead of a space) as the field separator: -`join -t '{{,}}' {{path/to/file1}} {{path/to/file2}}` +`join -t ',' {{path/to/file1}} {{path/to/file2}}` - Join field3 of file1 with field1 of file2: diff --git a/tldr/linux/aa-status b/tldr/linux/aa-status index 7ba24fc8..a1d6ac59 100644 --- a/tldr/linux/aa-status +++ b/tldr/linux/aa-status @@ -13,6 +13,14 @@ source: https://github.com/tldr-pages/tldr.git `sudo aa-status` +- Display status in JSON format: + +`sudo aa-status --json` + +- Display status in pretty JSON format: + +`sudo aa-status --pretty-json` + - Display the number of loaded policies: `sudo aa-status --profiled` diff --git a/tldr/linux/module b/tldr/linux/module index b86822bf..d955f1e1 100644 --- a/tldr/linux/module +++ b/tldr/linux/module @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # module -> Modify a users' environment using the module command. +> Modify a users' environment. > More information: . - Display available modules: @@ -35,3 +35,7 @@ source: https://github.com/tldr-pages/tldr.git - Specify user-created modules: `module use {{path/to/module_file1 path/to/module_file2 ...}}` + +- Save the current set of loaded modules: + +`module save {{collection_name}}` diff --git a/tldr/nc b/tldr/nc index 2a3fc7d7..90d21b54 100644 --- a/tldr/nc +++ b/tldr/nc @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > Redirect I/O into a network stream through this versatile tool. > More information: . -- Start a listener on the specified TCP port and send a file into it: +- Start a [l]istener on the specified TCP [p]ort and send a file into it: `nc < {{filename}} -l -p {{port}}` @@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git `nc -v -z -w {{timeout_in_seconds}} {{host}} {{start_port}}-{{end_port}}` -- Start a listener on the specified TCP port and provide your local shell access to the connected party (this is dangerous and can be abused): +- Start a [l]istener on the specified TCP [p]ort and provide your local shell access to the connected party (this is dangerous and can be abused): `nc -l -p {{port}} -e {{shell_executable}}` diff --git a/tldr/npm-explain b/tldr/npm-explain new file mode 100644 index 00000000..7367ce95 --- /dev/null +++ b/tldr/npm-explain @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# npm explain + +> Explain how a package is installed, detailing its dependencies and reasons for inclusion. +> More information: . + +- Explain why a specific package is installed: + +`npm explain {{package_name}}` + +- Show explanation in JSON format: + +`npm explain {{package_name}} --json` + +- Include peer dependencies in the explanation: + +`npm explain {{package_name}} --include peer` + +- Limit explanation depth to 2 levels deep: + +`npm explain {{package_name}} --depth 2` diff --git a/tldr/npm-link b/tldr/npm-link new file mode 100644 index 00000000..d2537f71 --- /dev/null +++ b/tldr/npm-link @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# npm link + +> Symlink a local package into the global `node_modules` or another project for development. +> More information: . + +- Symlink the current package globally: + +`npm link` + +- Link a globally linked package into another project's `node_modules`: + +`npm link {{package_name}}` + +- Unlink a package from the current project: + +`npm unlink {{package_name}}` diff --git a/tldr/npm-pack b/tldr/npm-pack new file mode 100644 index 00000000..c88b010f --- /dev/null +++ b/tldr/npm-pack @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# npm pack + +> Create a tarball from a package. +> More information: . + +- Create a tarball from the current package in the current directory: + +`npm pack` + +- Create a tarball from a specific package folder: + +`npm pack {{path/to/package_directory}}` + +- Run a dry run to preview the tarball contents without creating it: + +`npm pack --dry-run` + +- Create a tarball without running lifecycle scripts: + +`npm pack --ignore-scripts` + +- Specify a custom registry to fetch package metadata from: + +`npm pack --registry {{https://registry.npmjs.org/}}` diff --git a/tldr/npm-prune b/tldr/npm-prune new file mode 100644 index 00000000..def0e129 --- /dev/null +++ b/tldr/npm-prune @@ -0,0 +1,30 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# npm prune + +> Remove extraneous packages from `node_modules`. +> Note: Extraneous packages are those present in the node_modules folder that are not listed as any package's dependency list. +> More information: . + +- Remove all extraneous packages not listed in dependencies: + +`npm prune` + +- Remove extraneous packages and devDependencies (useful for production builds): + +`npm prune --production` + +- Show what would be removed without making any changes: + +`npm prune --dry-run` + +- Output the changes as JSON: + +`npm prune --json` + +- Remove specific packages by name: + +`npm prune {{package_name}}` diff --git a/tldr/rpk b/tldr/rpk new file mode 100644 index 00000000..fb7c6a6e --- /dev/null +++ b/tldr/rpk @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# rpk + +> Manage Redpanda topics, clusters, groups, security and more via a single binary. +> More information: . + +- Create a new topic: + +`rpk topic create {{topic_name}}` + +- Produce a message to a topic: + +`rpk topic produce {{topic_name}}` + +- Consume messages from multiple topics: + +`rpk topic consume {{topic_name1 topic_name2 ...}}` + +- List all topics: + +`rpk topic list` + +- Display cluster information: + +`rpk cluster info` + +- List all consumer groups: + +`rpk group list` + +- Describe a consumer group with lag information: + +`rpk group describe {{group_name}}` + +- Display version: + +`rpk version` diff --git a/tldr/vagrant-resume b/tldr/vagrant-resume new file mode 100644 index 00000000..f5257d40 --- /dev/null +++ b/tldr/vagrant-resume @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# vagrant resume + +> Resume a Vagrant managed machine that was previously suspended. +> More information: . + +- Resume machine specified by name or id: + +`vagrant resume {{name|id}}` + +- Resume and run all configured provisioners: + +`vagrant resume {{name|id}} --provision` + +- Resume and specify which provisioners to re-run: + +`vagrant resume {{name|id}} --provision-with {{provisioner}}` diff --git a/tldr/windows/gcb b/tldr/windows/gcb new file mode 100644 index 00000000..a68e3f33 --- /dev/null +++ b/tldr/windows/gcb @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# gcb + +> This command is an alias of `Get-Clipboard`. + +- View documentation for the original command: + +`tldr get-clipboard` diff --git a/tldr/windows/get-clipboard b/tldr/windows/get-clipboard new file mode 100644 index 00000000..62ec08aa --- /dev/null +++ b/tldr/windows/get-clipboard @@ -0,0 +1,30 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# Get-Clipboard + +> A powershell command to get content from clipboard. +> Note: `gcb` can be used as an alias for `Get-Clipboard`. +> More information: . + +- Get clipboard text: + +`Get-Clipboard` + +- Get clipboard content as specific text format: + +`Get-Clipboard -TextFormatType {{Text|Html|Rtf}}` + +- Get raw clipboard content: + +`Get-Clipboard -Raw` + +- Retrieve an Image: + +`Get-Clipboard -Format Image` + +- Get file paths copied in explorer: + +`Get-Clipboard -Format FileDropList`