My embedded journey day01

Source: Internet
Author: User

1. linux terminal Windows cannot use the mouse

2. linux is a multi-user system

3. Manage all users through accounts in linux

4. whoami is used to obtain the current account

5. The part used to save files in the computer is called the file system.

The file system contains many folders. Each directory represents a location in the file system, and each file must be stored in a directory.

Directories are nested with each other, and there is no limit on the hierarchy of nesting.

PATH is used to describe the location of a file or folder.

The road passes are divided into absolute paths/relative Roadbed

The absolute path describes the names of all directories separated by/From the root directory to the target directory)

Example:/home/tarena/xulianying

The relative path describes the names of all directories starting from a directory to the target directory.

Three basic relative paths :. Indicates the start directory.

.. Parent directory

Example of relative path:

The terminal window contains the current directory, which is the starting directory of all relative paths.

The home Directory of each account in Linux.

The current directory after each terminal window is started is the home directory of the current account.

Use in the system ~ The home Directory of the current account.

The ls command can view all the contents of a directory.

Use the ls directory path as follows:

If no path is provided in the command, view the details of the current directory.

You can use the-al option to view all the content.

-A and-l options can be combined into-al

The clear command can clearly understand all text in the terminal window

The cd command can set a directory to the current directory.

The usage is as follows:

Cd directory path

The mkdir command can be used to create a new directory,

The usage is as follows: mkdir directory path

The rmdir command can be used to delete a directory, but the default directory must be empty.

You can add the-rf option to the rmdir command to delete a non-empty directory.

Usage: rm-rf

Vi is a tool used in linux to record text information.

Run the following command to start vi

Vi file path

After vi is started, the file corresponding to the path will be opened.

: Q! Can be forcibly launched

Vi contains three different working modes.

Normal Mode: After vi is started, it is in normal mode. In this mode, all input content on the keyboard is executed as a command.

Insert mode: as text information, they will appear in the document

Command mode: You can enter complex commands in this mode.

During work, you can switch between the three working modes at any time. The normal mode and the two modes can be converted to each other, but the other two modes cannot be converted to each other.

In normal mode, the input lowercase letter I can be converted to the insert mode.

Input in Normal Mode: can be converted to command mode

Pressing esc at any time can be converted to normal mode

In command mode, enter w to save the current content to the document.

In command mode, enter wq to save the document content and release vi.

In command mode, the wq command can be replaced by x.

This article from the "Know what it does not" blog, please be sure to keep this source http://shenyantao.blog.51cto.com/1957956/1303262

Related Article

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.