In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install linux Cheat, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
What is Cheat?
Cheat allows you to create and view an interactive spreadsheet cheatsheet from the command line. It is designed to help alert * nix system administrators to options for commands they use frequently but not often enough to remember.
How to install Cheat
Cheat is developed using python, so you can use pip to install cheat on your system.
Pip, a Python module bundled with setuptools, is one of the recommended tools for installing Python packages in Linux.
For Debian/Ubuntu users, use the apt-get command or the apt command to install pip.
[for Python2] $sudo apt install python-pip python-setuptools [for Python3] $sudo apt install python3-pip
There is no pip in the official RHEL/CentOS repository, so use the EPEL repository and use the YUM command to install pip.
$sudo yum install python-pip python-devel python-setuptools
For Fedora systems, use the dnf command to install pip.
[for Python2] $sudo dnf install python-pip [for Python3] $sudo dnf install python3
For Arch Linux-based systems, use the Pacman command to install pip.
[for Python2] $sudo pacman-S python2-pip python-setuptools [for Python3] $sudo pacman-S python-pip python3-setuptools
For openSUSE systems, use the Zypper command to install pip.
[for Python2] $sudo pacman-S python-pip [for Python3] $sudo pacman-S python3-pip
Use pip to install cheat on your system.
$sudo pip install cheat how to use Cheat
Run cheat, and then press the appropriate command to view the spreadsheet. As an example, let's look at the example of the tar command.
$cheat tar# To extract an uncompressed archive:tar-xvf / path/to/foo.tar # To create an uncompressed archive:tar-cvf / path/to/foo.tar / path/to/foo/ # To extract a .gz archive:tar-xzvf / path/to/foo.tgz # To create a .gz archive:tar-czvf / path/to/foo.tgz / path/to/foo/ # To list the content of an .gz archive:tar-ztvf / path/to/foo.tgz # To extract a. Bz2 archive:tar-xjvf / path/to/foo.tgz # To create a .bz2 archive:tar-cjvf / path/to/foo.tgz / path/to/foo/ # To extract a .tar in specified Directory:tar-xvf / path/to/foo.tar-C / path/to/destination/ # To list the content of an .bz2 archive:tar-jtvf / path/to/foo.tgz # To create a .gz archive and exclude all jpg Gif,... From the tgztar czvf / path/to/foo.tgz-- exclude=\ *. {jpg,gif,png,wmv,flv,tar.gz,zip} / path/to/foo/ # To use parallel (multi-threaded) implementation of compression algorithms:tar-z.-> tar-Ipigz. Tar-j.-> tar-Ipbzip2. Tar-J.-> tar-Ipixz.
Run the following command to view the available Quick Chart.
$cheat-l
Go to the help page for more details.
The above $cheat-h is all the contents of the article "how to install Cheat in linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.