Linux tips-benefits of using the tab key on a terminal

Source: Internet
Author: User

In a Linux terminal (similar to a Windows 2 K Command Prompt), it is a headache to enter a huge file name every time. With the tab key, everything is easy.
For example, if you want to decompress the mysql-3.23.38.tar.gz file, so many decimal points and other symbols, some files must be case-sensitive. If you write an error, an error occurs.
We can write as follows:
Tar zxvf m <tab>
Note that after you press the <tab> and <tab> keys, the system automatically writes out a file name with m headers in the current directory. This is equivalent to writing:
Tar zxvf mysql-3.23.38.tar.gz

If more than one initial file name in the current directory is m, press the <tab> key twice. The system will list all m headers, and then write a few more letters as needed, press <tab> to add other letters.

The above operation was tested in Redhat Enterprise Linux 3. I guess Redhat linux should have this function.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.