• Learning center

136. Linux system basic operation commands
136. Linux system basic operation commands
Detail
Comments

1

00:00:01,000 --> 00:00:06,000

Hello everyone, in this lesson we will take a look at the basic operating commands of the Linux system

2

00:00:07,200 --> 00:00:10,833

Graphics memory test software is running in Linux system,

3

00:00:11,033 --> 00:00:15,400

so we need to be able to use the most basic operating commands of Linux

4

00:00:17,333 --> 00:00:19,766

The first one is ls

5

00:00:19,933 --> 00:00:22,666

It is a command to view the current directory,

6

00:00:23,000 --> 00:00:26,566

that is, to view what files are under the current directory

7

00:00:26,933 --> 00:00:28,500

Let's try this command

8

00:00:29,166 --> 00:00:31,500

I am now under the home folder

9

00:00:31,733 --> 00:00:37,966

If I want to know what files are in the home folder, I need to use the ls command

10

00:00:39,166 --> 00:00:42,833

Type ls and press enter

11

00:00:46,200 --> 00:00:52,366

You can see that it has printed all the files under the home folder

12

00:00:53,300 --> 00:00:55,500

Second, the cd command

13

00:00:55,700 --> 00:00:58,600

The cd command is the command to switch directories

14

00:00:59,533 --> 00:01:02,500

For example, I am now under the home directory,

15

00:01:02,866 --> 00:01:09,466

and if I want to go to the directory 455.127, I need to use the cd command

16

00:01:10,666 --> 00:01:14,566

Enter cd, space, 455.127, enter

17

00:01:17,133 --> 00:01:21,133

At this time, I will enter the 455.127 directory

18

00:01:23,333 --> 00:01:28,900

cd can also return to the parent directory, just enter cd ..

19

00:01:29,133 --> 00:01:30,700

Let's try

20

00:01:31,733 --> 00:01:37,100

My current location is the 455.127 directory under home

21

00:01:37,666 --> 00:01:40,400

I want to go back to the home directory.

22

00:01:40,733 --> 00:01:46,033

At this time, enter cd .. to go back to the home directory

23

00:01:47,266 --> 00:01:52,266

If I want to go back to the root directory from the home directory, then I type cd ..

24

00:01:52,800 --> 00:01:56,066

At this time, it returns to the root directory

25

00:01:56,500 --> 00:01:59,900

We can also enter the path to go to a directory

26

00:02:01,133 --> 00:02:08,800

For example, I want to go to 455.127 under the home directory under the root directory,

27

00:02:09,566 --> 00:02:14,100

then I only need to enter cd home 455.127

28

00:02:20,366 --> 00:02:24,500

Let's look at the next command, the delete command

29

00:02:24,933 --> 00:02:28,966

This command is not recommended for everyone to use

30

00:02:29,633 --> 00:02:37,800

We don't need to delete any files to operate this software, so don't use this rm command

31

00:02:38,500 --> 00:02:40,600

Restart command

32

00:02:40,866 --> 00:02:46,266

Just press Ctrl+Alt+delete to reboot directly

33

00:02:47,333 --> 00:02:49,100

Shutdown command, poweroff

34

00:02:49,566 --> 00:02:52,200

Enter this command to shut down directly

35

00:02:52,800 --> 00:02:58,733

There is also a very commonly used function key, the TAB key

36

00:02:59,700 --> 00:03:02,166

This key can be auto-completed

37

00:03:03,000 --> 00:03:05,300

What is auto-completion?

38

00:03:05,533 --> 00:03:10,866

For example, I am now under the root directory, and I want to go to the home folder under the root directory

39

00:03:10,966 --> 00:03:13,566

At this time, I only need to enter cd, enter an h,

40

00:03:14,100 --> 00:03:20,466

and press the TAB key, it will automatically complete home for me

41

00:03:21,200 --> 00:03:27,666

It should be noted that when there is one and only one option, it can be automatically completed

42

00:03:27,866 --> 00:03:32,566

For example, I am now under the home directory, there are many directories below

43

00:03:33,133 --> 00:03:39,366

If I want to enter the 455.127 directory, enter cd 455

44

00:03:40,066 --> 00:03:44,366

At this time, I press the TAB key, it will not give me automatic completion

45

00:03:44,700 --> 00:03:51,133

Because these all start with 455, it does not know which one to fill

46

00:03:51,533 --> 00:03:56,266

It must be filled until there is one and only one, then it can be automatically completed

47

00:03:56,800 --> 00:04:03,666

For example, if I want to enter 455.120_3080, then I will enter 455.120, press the TAB key,

48

00:04:04,500 --> 00:04:08,866

and it will automatically complete _3080

49

00:04:11,000 --> 00:04:17,333

In actual use, the three most used keys are ls, cd and TAB

50

00:04:18,866 --> 00:04:23,233

The above is the most basic operation command of Linux

No comments yet
Come and write your comments
Links: