How to Use the command line-general Linux technology-Linux technology and application information, the following is a detailed description. I have been using Linux for more than a year, and I have to work in the command line.
In fact, the command line is a cool way of working. Think about it. When you open five fingers on the keyboard in front of a MM, think deeply, skillfully "Snap", and then press Enter. Then, a large number of characters and numbers are displayed on the screen. Even if you type only the simplest more file.txt-a simple command to display text. But in MM's eyes, it's not like this.
Because of this, many people think that using command line is very mysterious. Enter a string of uncommon characters, and then the computer will work as you want.
In fact, using commands is the same as using other Windows GUI software. For example, in wintitle, you want to edit a file named file.txt In the TXT folder of the C drive. Open notepad, click "open", and select the file you want. But in Linux, you can work in one step. If you want to edit a text file, you choose vim to work. Which file does it use to operate on? In this case, you need to edit the file.txt file in the home directory. Therefore, a command named "vim/home/file.txt" came out ". In fact, in Linux, most of the commands are software, such as the most basic commands such as commonly used ls, cat, and rm, you can find its executable files in the/bin directory.
Summary: The most basic structure of the command line is the "file for the software + software to work ". For example, if you want to display file, it is "cat file ". Of course, sometimes you want to tell the computer where your file is stored. Assume that your file is placed in the user directory under home, the complete command is "cat/home/user/file ".
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