What do you do when you are not sure about the commands you run, especially the complex commands that use many options? In this case, we use man pages for help. Some other options may include'Help','Whereis'And'Whatis. But all of these have both advantages and disadvantages. Similarly ,'Help'The command may not give you the expected answer.
CheatIt is an interactive memo application issued for Linux Command Line users under the GNU General Public License. It provides display of Linux Command use cases, including all options and short but understandable features of the command.
'Cheat'There are two main dependencies --'Python'And'Pip', In the installation'Cheat'Before, make sure that your system has Python and PIP installed.
Install Python
# Apt-Get install Python (Debian-based system) # Yum install Python (Red Hat-based system)
Install Pip
# Apt-Get install Python-pip (Debian-based system) # Yum install Python-pip (Red Hat-based system)
Note: Pip is a simple installation alternative and a python third-party package installer with great improvements.
Note: Pip Installation
Wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz
Tar zxvf Python-2.7.5.tgz
CD Python-2.7.5
Python setup. py install
Before installing Pip, you may need to install setuptools
Wget "https://bitbucket.org/pypa/setuptools/get/default.tar.gz#egg=setuptools-dev" -- no-check-Certificate
Tar-zxvf default.tar.gz
CD pypa-setuptools-a6daa77a00b2/
Python setup. py install
Then go to the PIP directory, and run Python setup. py install in CD pip-1.0.2.
Next, run the following command to install the required Python dependency package.
# pip install docopt pygments
Now, copy the GIT library of cheat.
# git clone https://github.com/chrisallenlane/cheat.git
Go to the cheat directory and run'Setup. py'(A Python script ).
# cd cheat# python setup.py install
If the installation is successful, you can see the cheat version installed on the system.
# Required configurations of cheat-vcheat 2.1.0cheat must be in '~ /. Set the 'editor' environment variable in the bashrc' file to open the user '. bashrc 'file, and then add the following line to it: Export editor =/usr/bin/Nano you can use your favorite editor to replace 'nan '. Save the file and exit. Log On again to make sure the modification takes effect. Next, add the auto-completion feature of cheat to ensure automatic completion of command lines in different interpreters. To meet the functional requirements, simply clone the 'Cheat. bash' script and copy it to the correct path of your system. # Wget https://github.com/chrisallenlane/cheat/raw/master/cheat/autocompletion/cheat.bash # mv cheat. bash/etc/bash_completion.d/Note: The team has uploaded Automatic completion scripts for other interpreters on git, which can be cloned and used in different interpreters. Use the following link to find the Automatic completion script of other interpreters: not only does auto completion script for varous shells, but you can also use syntax highlighting if necessary. To do this, add the 'cheatcolor' environment variable to your '. bashrc' file. Export cheatcolor = truecheat application only provides the most basic and commonly used commands by default. The content of the cheat memo form is saved in ~ In the/. Cheat/. Directory, We can manually add the content in the memo sheet in this directory, so that our cheat application will be more powerful. # Cheat-XYZ This will open the XYZ memo form. If not, a new one will be created. The memo sheet will be opened using the default editor set in. bashrc. The default editor is set in. bashrc above. For some cheat commands, a package can be *. GZ, *. bz2, *. Zip, *. xz. Under what conditions does it use?
Steps for installing chetds in centos