当前位置:网站首页>RHCSA3
RHCSA3
2022-07-05 12:50:00 【Grey rain】
Linux Directory structure
bin,sbin
The directory where the command is executed , Commands are actually executable files
bin All can be executed ,sbin Yes root Can be executed
boot Catalog
Where the operating system stores startup files , Loading kernel
dev command
Hardware files of the operating system
For example, disk.
sdxx vdxx
ect Catalog
Store operating system configuration files and installed third-party files
It's very important
home Catalog
Home directory
Directory of the current user , The current user can have full permissions
root The user's home directory is root
run Catalog
It can be considered as a virtual directory
Runtime content
In memory , No disk space
tmp Catalog
Temporary file directory
file 10 If you don't visit it for days, it will be deleted
usr Catalog
Is a static directory
var Catalog
Is a dynamic directory ,log It's just var Next
Relative path and absolute path
Absolute path : Path starting with root
Relative paths : A path that does not start with the root directory
pwd Print current working directory
./ Represents the current directory
…/ Indicates the parent directory
cd Toggle directory ( Home catalog )
cd / Switch back to the parent directory
Use touch,cp,mv,rm Management document
touch Create a file
touch a b c
mkdir Create directory
-p Multilevel creation mkdir -p /aaa/bbb/ccc
cp Copy
cp Source The goal is
There can be multiple sources , There can only be one goal
mv Moving files
mv Source The goal is
You can change your name mv a b
There can be multiple sources , There can only be one goal
rm Delete file
root use rm There will be hints. , It can be used rm -rf
rm a b c To delete multiple
-r Can be used to delete directories
-f force delete
rm -rf / ( Do not use )
rmdir Delete empty directory , Cannot be used to delete non empty directories
Hard link and soft link
ln Connection command
-s Create a soft connection , It's like a shortcut , Delete source file , Soft connection failure
ln Source file Hard links Equivalent to replication , Delete source file , Hard links do not fail
The principle of hard link is inode File name is added in ,inode use ls -i see
Empathy ,linux Deleting a file is deleting inode
Source file inode Do not point to soft connection file , Redistribution inode
Use shell Expand the matching file
~ Represents the home directory of the current user
ls ~
Braces use
Usually used when creating
touch {x,y,z}
touch {1…5} establish 1-5 Of 5 File
touch file{1,2}{a,b} establish 1a,2a,1b,2b
Variable $
for example :echo time is $(date)
Custom variable
Variable = what
echo $ Variable
notes #
ctrl+l Clear the screen
边栏推荐
- Get the variable address of structure member in C language
- Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue
- Taobao order interface | order flag remarks, may be the most stable and easy-to-use interface
- Pytoch through datasets Imagefolder loads datasets directly from files
- SAP self-development records user login logs and other information
- Distributed cache architecture - cache avalanche & penetration & hit rate
- Free testing of Taobao tmall API order and flag insertion remark interface
- Redis master-slave configuration and sentinel mode
- Introduction to GNN
- Transactions from January 6 to October 2022
猜你喜欢
stirring! 2022 open atom global open source summit registration is hot!
What if wechat is mistakenly sealed? Explain the underlying logic of wechat seal in detail
激动人心!2022开放原子全球开源峰会报名火热开启!
太方便了,钉钉上就可完成代码发布审批啦!
Distance measuring sensor chip 4530a used in home intelligent lighting
Get the variable address of structure member in C language
[figure neural network] GNN from entry to mastery
Master-slave mode of redis cluster
SAP self-development records user login logs and other information
About LDA model
随机推荐
Wechat enterprise payment to change access, open quickly
Cypher syntax of neo4j graph database
A few years ago, I outsourced for four years. Qiu Zhao felt that life was like this
Pytoch implements tf Functions of the gather() function
Distance measuring sensor chip 4530a used in home intelligent lighting
Making and using the cutting tool of TTF font library
[superhard core] is the core technology of redis
Detailed steps for upgrading window mysql5.5 to 5.7.36
Programming skills for optimizing program performance
Pytoch loads the initialization V3 pre training model and reports an error
Iterator details in list... Interview pits
#yyds干货盘点#js截取文件后缀名
Distributed cache architecture - cache avalanche & penetration & hit rate
C alarm design
Simply take stock reading notes (3/8)
Leetcode-1. Sum of two numbers (Application of hash table)
上午面了个腾讯拿 38K 出来的,让我见识到了基础的天花
石臻臻的2021总结和2022展望 | 文末彩蛋
Taobao order amount check error, avoid capital loss API
Neural network of PRML reading notes (1)