https://github.com/cli-stuff/cli-tips
💡 CLI tool that provides useful tips and commands for Linux users
https://github.com/cli-stuff/cli-tips
bash cli cli-tool motd tips
Last synced: about 1 year ago
JSON representation
💡 CLI tool that provides useful tips and commands for Linux users
- Host: GitHub
- URL: https://github.com/cli-stuff/cli-tips
- Owner: cli-stuff
- License: unlicense
- Created: 2024-11-07T11:28:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-03T05:58:07.000Z (over 1 year ago)
- Last Synced: 2025-04-17T10:42:41.863Z (about 1 year ago)
- Topics: bash, cli, cli-tool, motd, tips
- Language: Shell
- Homepage:
- Size: 2.85 MB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README

`cli-tips` is a command-line tool offering useful Linux tips and commands, which can be integrated as a **Message of the Day** (MOTD).
## ✨ Features
- Displays helpful Linux command tips
- Supports multiple languages
- Easy to install and use
## 📥 Installation
To install `cli-tips`, run the following command:
```bash
curl -sL https://bit.ly/cli-tips-installer | bash
```
🗑️ Uninstall
To uninstall `cli-tips`, run the following command:
```bash
sudo rm -rf ${PREFIX:-/usr$([ "$(uname)" = "Darwin" ] && echo "/local")}/{bin,share}/cli-tips && hash -r
```
> **ℹ️ Note**:
>
> If you want to remove this tool from **Termux**, run the above command without `sudo`.
❄️ Nix
For Nix the package manager, the package name is `cli-tips`. You should consult [the Nix manual](https://nixos.org/manual/nixpkgs/stable/#sec-declarative-package-management)
on how to properly install packages.
### Compatibility table
|
**Linux** |
**Termux** |

**macOS** |
**Windows** (on [msys shell](https://www.msys2.org/)) |
| :-------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| ✅ | ✅ | ✅ | ✅ |
## 🚀 Usage
To print a random tip, run:
```bash
cli-tips
# Output:
# Use 'uniq' to remove duplicate lines from a file
```
> [!NOTE]
>
> `cli-tips` automatically detects the user's language and displays tips in that language. You can also set the language manually using the `LANG` environment variable.
### Use Another Language
To display tips in a different language, use the `--lang` option:
```bash
cli-tips --lang=uk
# Output: Використовуйте 'uniq', щоб видалити дубльовані рядки з файлу
```
You can also use the `LANG` environment variable:
```bash
LANG=de cli-tips
# Output: Verwenden Sie 'uniq', um doppelte Zeilen aus einer Datei zu entfernen
```
### Use the `--about` Flag
To display a random tip containing a specific keyword, use the `--about` option:
```bash
cli-tips --about=git
# Output: Use 'git status' to check the status of your git repository
```
If no tips contain the specified keyword, no tip will be output.
### Available Languages
Here is a list of all available languages:
| Language | Code |
| ----------------------------------- | :--: |
| [🇸🇦 Arabic](translations/ar.txt) | `ar` |
| [🇨🇳 Chinese](translations/cn.txt) | `cn` |
| [🇩🇪 German](translations/de.txt) | `de` |
| [🇬🇧 English](translations/en.txt) | `en` |
| [🇮🇷 Farsi](translations/fa.txt) | `fa` |
| [🇮🇹 Italian](translations/it.txt) | `it` |
| [🇯🇵 Japanese](translations/ja.txt) | `ja` |
| [🇰🇷 Korean](translations/ko.txt) | `ko` |
| [🇵🇱 Polish](translations/pl.txt) | `pl` |
| [🇪🇸 Spanish](translations/es.txt) | `es` |
| [🇺🇦 Ukrainian](translations/uk.txt) | `uk` |
## 📝 License
This project is fully free and you can do anything you want with it, even without mentioning this repository or license. Enjoy! 🚀
## ❤️ Support
If you like this project, consider supporting it by starring ⭐ it on GitHub, sharing it with your friends, or [buying me a coffee ☕](https://github.com/cli-stuff/cli-tips?sponsor=1)
## 🤝 Contributing
We welcome contributions from everyone. If you would like to contribute, please read our [CONTRIBUTING.md](CONTRIBUTING.md) file for detailed instructions on how to add translations and other contributions.