[Han Shunping Linux] study notes 3

1. File directory command

There are two directories root and home under the root directory.
There are king and tom under home respectively.
There is a.txt file
under the current location. There are two ways to access a.txt under home

Absolute path: /home/tom/a.txt #Absolute path starts from the root directory
Relative path: tom/a.txt #Relative path starts from the current location

pwd command ls command

insert image description here

cd command

insert image description here

mkdir command

insert image description here

rmdir command

insert image description here

touch command

insert image description here

cp command

insert image description here

rm command

insert image description here

mv command

insert image description here

cat command

insert image description here

more command

insert image description here

less command

insert image description here

echo command head command

insert image description here

tail command

insert image description here

> Instructions>>Instructions

insert image description here

ln command

insert image description here

history command

insert image description here

2. Time and date command

insert image description here
insert image description here

3. Find instructions

insert image description here

ls -l View the detailed content of the file
ls -lh Here, h means the size in a way that is convenient for people to see, and there is M unit

insert image description here
insert image description here

The which command
can check where a certain command is,
for example, where is the ls command
which ls

insert image description here
Example:
insert image description here

4. Compression and decompression

insert image description here

insert image description here
insert image description here
insert image description here

The **-C** here in the last line of command is where to decompress

Guess you like

Origin blog.csdn.net/weixin_45768644/article/details/128503710