1. Quick forward command -z

If you have to go into a deep folder every time, something like this:

> #cd /root/py/auto/fabric

If it is annoying to enter multiple directory names each time, here is a very convenient operation to replace it with a z command:

Z source here: github.com/rupa/z/blob…

Just copy the source code to the z.sh file in the user directory, add “source /path/to/z.sh” to the end of the.bashrc file, and use:

# source z.s h or

To jump to a directory, use the z + directory name (this directory must have been accessed before).

Z This script assigns a weight to each directory you enter, and then adjusts to the directory you enter based on the weight.

2. The configuration of vim

If you often write shell, Python, or C on a terminal, most of you will probably use Vim. As a ViM, you can’t do without a cool interface for writing code. So, do you want the following interface? Includes code completion, quick search files, directory tree, PY and C header file completion and other functions.

Download the Vim configuration file and decompress it in the user root directory can be completed, use the method please search, can operate very skilled also depends on your vim master situation.

3. Set the prompt for mysql

CNF / /etc/my.cnf/mysql.cnf/mysql.cnf/mysql.cnf/mysql.cnf/mysql.cnf/mysql.cnf/mysql.cnf/mysql.cnf/mysql.cnf

[mysql]prompt=”\u@\h : \d \r:\m:\s>”

Mysql > insert into mysql

4. View the current system version

You may often use the following methods to check the version of the system:

[root@sta ~]# cat /etc/issuecentos release 6.8(Final)Kernel \r on an \m [root@sta ~]# cat /etc/issuecentos release CentOS Release 6.8(Final) [root@sta ~]# cat /etc/issue.net CentOS release 6.8(Final)Kernel on an

However, these files can reveal information about the system, which is usually cleared or can be tampered with. Use the following command, which is probably the most accurate for viewing version information: After CentOS is installed, a CentOS -release+ RPM package is installed by default.

5. View system Disks If you want to view the disk usage of a system, how do YOU do? The most commonly used commands are fdisk and df, but look at the following:

Isn’t it more intuitive than the fdisk and df commands?

Want to learn more technical knowledge scan code follow me