Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux commands to access the cheat sheet     - ThinkPad X220 Ubuntu 14.10 installed on fingerprint recognition (Linux)

- Grub2 Boots the openSUSE installation image (Linux)

- Linux Getting Started tutorial: 3D effects and beautify your desktop (Linux)

- Introduction to Linux Shell (Programming)

- Debian installation (Linux)

- Share useful bash aliases and functions (Linux)

- Linux process scheduling opportunity (Programming)

- SaltStack installation and testing (Server)

- Linux system font color change (Linux)

- MySQL database under Linux to achieve automatic backup scheduled backup day (Database)

- Python Django model within the class meta Detailed (Programming)

- Oracle Database asynchronous IO cause slow query response (Database)

- Java static internal class (Programming)

- Linux Firewall Basics (Linux)

- Use Linux built-in firewall to improve network access control (Linux)

- By creating a personal technology blog Detailed GitHub (Linux)

- Linux shell in back quotes (`) Application (Linux)

- Linux_Logo - output color ANSI Linux distributions logo command-line tool (Linux)

- The compiler installed Kaldi under Ubuntu 12.04 (Linux)

- Oracle 12C RAC optimizer_adaptive_features cause of data into overtime (Database)

 
         
  Linux commands to access the cheat sheet
     
  Add Date : 2018-11-21      
         
         
         
  Linux command line powerful and flexible in its diversity, the various Linux commands with its own proprietary command-line options and parameters. Mix and match these commands, you can even link to different commands through pipes and redirection. In theory, you can use a few basic commands to generate hundreds of use cases. Even for administrators who are steeped for many years, it is difficult to fully use them. That is the moment we become the command line cheat sheet of straw.

I know the online manual pages (man) remains our mentor, but we want the quick reference card at their disposal that we can make it all more efficient and purposeful. Ultimate cheat sheet may be hanging proudly in your office, it may be stored as PDF files hidden on your hard drive, or even set to your desktop background image.

As an alternative, you can also access your favorite command line cheat sheet by another command. That is, the use of cheat. This is a command-line tool, which lets you read from the command line, create or update the cheat sheet. The idea is simple, but cheat proved to be very useful. This tutorial focuses on use of Linux cheat command. You do not need to be a cheat sheet to cheat the command, it's really simple.

Cheat to install Linux

First, if you have not Git, then install a bar:

$ Sudo apt-get install git (Debian-based system)
$ Sudo yum install git (RedHat-based system)

At the same time, the installation package Python installer pip.

Finally, use the following command to install cheat.

$ Sudo pip install docopt pygments
$ Git clone https://github.com/chrisallenlane/cheat.git
$ Cd cheat
$ Sudo python setup.py install
Configuration Cheat

cheat command does not require much configuration.

A recommended configuration is to enable command-line completion. So, when a cheat sheet when you query, you can use the [TAB] key to automatically complete the command name you want to see the. The following actions can enable auto-completion bash under.

$ Wget https://github.com/chrisallenlane/cheat/raw/master/cheat/autocompletion/cheat.bash
$ Sudo cp cheat.bash /etc/bash_completion.d/
They also provide auto-completion for other shell scripts, such as zsh and fish there.

Another thing to do is to define the environment variable EDITOR. When this variable should point to create or update the cheat sheet you want to use text editor. For example, if you want to use Vim editor, then the following contents into ~ / .bashrc.

export EDITOR = / usr / bin / vim
Log off and log back in, in order to activate the auto-complete feature and update .bashrc.

Cheat basic usage

cheat command a cool thing is that it comes with over 90 commonly used Linux commands built-in cheat sheet. View a list of available cheat sheet:

$ Cheat -l

To access a specified command cheat sheet cheat just run the command, followed by the name of the command:

$ Cheat < command-name>

You can use the "-s" option in all cheat sheet contains the specified keyword search content:

$ Cheat -s < keyword>
In many cases, cheat sheet suitable for some people, while others did not help. Built-in cheat sheet to get more personalized, cheat command also allows you to create new cheat sheet, or update existing ones. To do so, cheat command will help you to save a copy of the cheat sheet in the local ~ / .cheat directory.

To use the cheat editing functions, first make sure that your EDITOR environment variable is set to default the full path to the location where the editor. Then, copy (not editable) built-in cheat sheets to ~ / .cheat directory. You can find the location of the built-in cheat sheet by the following command. Once you find their location, just copy them to ~ / .cheat directory.

$ Cheat -d
/usr/lib/python2.6/site-packages/cheat/cheatsheets
$ Cp /usr/lib/python2.6/site-packages/cheat/cheatsheets/* ~ / .cheat
Now, you can use the "-e" option to create or update a cheat sheet on:

$ Cheat -e openssl
As you can imagine, cheat editing function is very useful and can help you tailor local library cheat sheet to meet your needs. If you are convinced that knowledge-sharing, contribute your cheat sheet to cheat the official Git repository command, you will be more popular, so that everyone can benefit from it.
     
         
         
         
  More:      
 
- Using the Android interface in Parcelable (Programming)
- Let Markdown code syntax highlighting and support Django1.6 (Linux)
- Memcached source installation and configuration under CentOS 6.6 (Server)
- CentOS iptables firewall enabled (Linux)
- OGG-01496 OGG-01031 Error Resolution (Database)
- How to use nmap command in Linux (Linux)
- AWR Report (Database)
- CentOS 7 x64 compiler installation Tengine 2.0.3 Comments (Server)
- JBPM6 Tutorial - Fast Fun JBPM table (Linux)
- How to use static, class, abstract method in Python (Programming)
- GCC library link order problems (Programming)
- The difference between IPython and Python (Linux)
- Heartbeat cluster components Overview (Server)
- Linux `dirname $ 0` (Linux)
- Use JMS listener Oracle AQ, trigger the execution of Java programs in the database changes (Database)
- How to override the plain text files and directories soft connection in linux (Linux)
- After Oracle 11g dataguard failover rebuild the archive logs are not applied to be NO problem (Database)
- Ubuntu treated with cue file to ape and wav files automatically track points (Linux)
- The user of fedora is not in the sudoers file method to solve (Linux)
- How to use the Linux terminal Git commands (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.