cli-tips
is a command-line tool offering useful Linux tips and commands, which can be integrated as a Message of the Day (MOTD).
- Displays helpful Linux command tips
- Supports multiple languages
- Easy to install and use
To install cli-tips
, run the following command:
curl -sL https://bit.ly/cli-tips-installer | bash
To uninstall cli-tips
, run the following command:
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
.
Linux | Termux | macOS | Windows (on msys shell) |
---|---|---|---|
✅ | ✅ | ✅ | ✅ |
To print a random tip, run:
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.
To display tips in a different language, use the --lang
option:
cli-tips --lang=uk
# Output: Використовуйте 'uniq', щоб видалити дубльовані рядки з файлу
You can also use the LANG
environment variable:
LANG=de cli-tips
# Output: Verwenden Sie 'uniq', um doppelte Zeilen aus einer Datei zu entfernen
Here is a list of all available languages:
Language | Code |
---|---|
🇸🇦 Arabic | ar |
🇨🇳 Chinese | cn |
🇩🇪 German | de |
🇬🇧 English | en |
🇮🇷 Farsi | fa |
🇮🇹 Italian | it |
🇯🇵 Japanese | ja |
🇰🇷 Korean | ko |
🇵🇱 Polish | pl |
🇪🇸 Spanish | es |
🇺🇦 Ukrainian | uk |
This project is fully free and you can do anything you want with it, even without mentioning this repository or license. Enjoy! 🚀
We welcome contributions from everyone. If you would like to contribute, please read our CONTRIBUTING.md file for detailed instructions on how to add translations and other contributions.