Beginners level Course:cool Shortcuts

Source: Internet
Author: User

who doesn't like shortcut keys? The answer is my wife. The reason is that my shortcut keys often double our travel length ... Anyway, if you're going to waste time on the Linux command line, I strongly suggest you learn some simple shortcuts that will help you make life easier! Auto-complete command! One of the best shortcuts is the automatic completion feature of Linux.          Just enter the first letter of the name of the file, directory, or program, and then tap the <TAB> key. LS m<tab><tab><tab> then tap <TAB> button. As long as you continue to tap, Linux will produce multiple results. Now you can see each file that starts with the letter ' m ' in the current directory.
Now add an ' o ' behind the ' ls m ' command and you will see ' ls Mo ', and now continue to press TAB.
LS Mo <TAB>
You will see ' MOTD '. This is a file that contains your startup information. SuSE has a very famous phrase "a lot of fun!". I like that, so I haven't changed it, but you can modify it so that Linux will say anything you like when you log in.
Linux will save everything you've typed in the history file!
Do you want to confirm that the lilo.conf file is still there? You no longer have to type ' lilo.conf ' or part of the file name and then hit the TAB key. You just have to press the up and down arrows to do it. When you press the up and down arrows, the commands you have executed will appear.
The commands you have executed are saved in the history file of your home directory. The more times you hit the up arrow, the sooner you will be struck. Pressing the DOWN arrow will get the most recently executed command. Stop at the command you want and press ENTER. You can even tap command history, and all of the 400 commands you've used recently or commands you've used will be presented. As you become more proficient with Linux, you will feel more and more comfortable. You can find the answer to the question more often: how did I do it? View the shell history.
/usr Directory
Let's discuss the options for the command. CD/USR will switch to the/usr directory
Ls-l This command will give details of the contents of the current directory, currently in the/usr directory.
You'll see more information, a combination of time, numbers, and letters. There will be a lot of ' root '. We will go into the details of this information in the following lessons. You will see the main subdirectory. The/usr directory contains files and programs that can be used by any user on the computer.
Original address: http://www.linux.org/threads/cool-shortcuts.4103/

Beginners level Course:cool Shortcuts

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.