tldr
簡略化 された man pages。コマンドの使 い方 を素早 く検索
インストール
# macOS
brew install tldr
# npm
npm install -g tldr
# pip
pip install tldr
# Arch Linux
sudo pacman -S tldr基本使用法
# コマンドを検索
tldr tar
tldr git-commit
tldr docker-run
# ローカルキャッシュを更新
tldr --updateプラットフォームを指定
# Linux 専用コマンド
tldr -p linux apt
# macOS 専用コマンド
tldr -p osx brew
# Windows 専用コマンド
tldr -p windows choco
# 共通コマンド
tldr -p common git出力例
$ tldr tar
tar
Archiving utility.
Often combined with a compression method, such as gzip or bzip2.
More information: https://www.gnu.org/software/tar
- [c]reate an archive and write it to a [f]ile:
tar cf target.tar file1 file2 file3
- [c]reate a g[z]ipped archive and write it to a [f]ile:
tar czf target.tar.gz file1 file2 file3
- E[x]tract a (compressed) archive [f]ile:
tar xf source.tar[.gz|.bz2|.xz]他のクライアント
tealdeer (Rust 実装)
より高速 な代替 品
# インストール
brew install tealdeer
cargo install tealdeer
# 使用
tldr tarオンライン版
ページを貢献
tldr はコミュニティ駆動 のプロジェクト。新 しいページを貢献 できます:
- tldr-pages/tldr をフォーク
pages/ディレクトリに新 しいページを追加- Pull Request を提出
ページ形式
# command-name
> Short description.
> More information: <https://example.com>.
- Description of first example:
`command --option`
- Description of second example:
`command --option {{argument}}`man との比較
| 特性 | tldr | man |
|---|---|---|
| 長 さ | 簡潔 で実用的 | 完全 で詳細 |
| 例 | 一般的 な使用法 | 少 ない |
| 更新 | コミュニティ管理 | システム付属 |
| オフライン | キャッシュ必要 | インストール済 み |