当前位置:网站首页>The second day of rhcsa study
The second day of rhcsa study
2022-07-06 19:03:00 【Beichuan CC】
Job requirements
1. Introduce the difference between soft and hard links
2. Create hard and soft link files as required
stay /home Create the file as aaa, And in / Create a soft link file in the directory a.txt ; /root Create a hard link file as A
3. In the current system / Create under directory 100 File ( File name e.g : abc1..abc100 )
4. stay newfifile Write the following in the document
He love his lover
He love his liker
He like his lover
He like his liker
5. Introduce ll List what each column of information in a directory is
6. Create directory /test/sysroot Create three files in this directory a,b,c After then sysroot Directory move to /tmp Change the name to sys Ensure that the three files in the directory also exist
7. Delete /tmp/sys/a file .
8. Catalog /tmp Create 4 A catalog , And create one under each of these four directories test Catalog
9. Create a test Catalog , Create a file in this directory , Content writing nano
10. stay /dir Create directory under dir2 And documents file1, Moving files file1 To create test Directory , Put the table of contents dir2 Copied to the test Directory
1.
Soft link :
Symbolic links are also called soft links , And the original file is not a file . for example Windows Shortcut to ,
Characteristics of action : Find a file in the specified path and access it quickly and easily , Delete source file shortcut cannot be accessed
Hard links :
Multiple filenames point to the same Inode
Characteristics of action : Prevent users from deleting by mistake , Backup ( Backup only for file names ), Deleting the source file will not affect the hard link
2.
[[email protected] ~]# cd /home
[[email protected] home]# touch aaa
[[email protected] home]# ll
total 4
-rw-r--r--. 1 root root 0 Feb 11 06:45 aaa
drwx------. 15 redhat redhat 4096 Feb 10 06:50 redhat
[[email protected] ~]# cd /
[[email protected] /]# ln -s / a.txt
[[email protected] /]# ll
total 28
lrwxrwxrwx. 1 root root 1 Feb 11 06:59 a.txt -> /
3.
[[email protected] ~]# cd
[[email protected] ~]# pwd
/root
[[email protected] ~]# touch abc{1..100}
[[email protected] ~]# ll
total 8
-rw-r--r--. 2 root root 0 Feb 11 07:00 A
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc1
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc10
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc100
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc11
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc12
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc13
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc14
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc15
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc16
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc17
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc18
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc19
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc2
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc20
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc21
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc22
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc23
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc24
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc25
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc26
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc27
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc28
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc29
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc3
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc30
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc31
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc32
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc33
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc34
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc35
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc36
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc37
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc38
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc39
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc4
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc40
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc41
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc42
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc43
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc44
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc45
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc46
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc47
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc48
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc49
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc5
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc50
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc51
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc52
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc53
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc54
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc55
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc56
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc57
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc58
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc59
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc6
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc60
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc61
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc62
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc63
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc64
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc65
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc66
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc67
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc68
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc69
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc7
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc70
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc71
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc72
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc73
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc74
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc75
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc76
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc77
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc78
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc79
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc8
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc80
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc81
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc82
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc83
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc84
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc85
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc86
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc87
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc88
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc89
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc9
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc90
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc91
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc92
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc93
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc94
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc95
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc96
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc97
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc98
-rw-r--r--. 1 root root 0 Feb 11 07:02 abc99
-rw-------. 1 root root 1036 Feb 10 14:33 anaconda-ks.cfg
-rw-r--r--. 2 root root 0 Feb 11 07:00 A.txt
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Desktop
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Documents
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Downloads
-rw-r--r--. 1 root root 1308 Feb 10 14:39 initial-setup-ks.cfg
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Music
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Pictures
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Public
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Templates
drwxr-xr-x. 2 root root 6 Feb 10 07:42 Videos
4.
[[email protected] ~]# touch n.txt
[[email protected] ~]# nano n.txt
[[email protected] ~]# cat n.txt
He love his lover
He love his liker
He like his lover
He like his liker
5.
8.
边栏推荐
- RedisSystemException:WRONGTYPE Operation against a key holding the wrong kind of value
- Describe the process of key exchange
- R语言使用rchisq函数生成符合卡方分布的随机数、使用plot函数可视化符合卡方分布的随机数(Chi Square Distribution)
- Cobra quick start - designed for command line programs
- 视频化全链路智能上云?一文详解什么是阿里云视频云「智能媒体生产」
- 巨杉数据库首批入选金融信创解决方案!
- R语言使用order函数对dataframe数据进行排序、基于单个字段(变量)进行降序排序(DESCENDING)
- Jdbc driver, c3p0, druid and jdbctemplate dependent jar packages
- On AAE
- 10、 Process management
猜你喜欢
ORACLE进阶(四)表连接讲解
Understanding disentangling in β- VAE paper reading notes
About NPM install error 1
A wearable arm device for night and sleeveless blood pressure measurement [translation]
[paper notes] transunet: transformers make strongencoders for medical image segmentation
人体骨骼点检测:自顶向下(部分理论)
SQL injection - access injection, access offset injection
Word如何显示修改痕迹
How word displays modification traces
[Sun Yat sen University] information sharing of postgraduate entrance examination and re examination
随机推荐
Qlabel marquee text display
线代笔记....
Test 1234
Master Xuan joined hands with sunflower to remotely control enabling cloud rendering and GPU computing services
44 colleges and universities were selected! Publicity of distributed intelligent computing project list
ROS custom message publishing subscription example
R语言使用dt函数生成t分布密度函数数据、使用plot函数可视化t分布密度函数数据(t Distribution)
Penetration test information collection - App information
RedisSystemException:WRONGTYPE Operation against a key holding the wrong kind of value
Noninvasive and cuff free blood pressure measurement for telemedicine [translation]
About NPM install error 1
关于静态类型、动态类型、id、instancetype
Handwritten online chat system (principle part 1)
测试行业的小伙伴,有问题可以找我哈。菜鸟一枚~
How does crmeb mall system help marketing?
人体骨骼点检测:自顶向下(部分理论)
Deep circulation network long-term blood pressure prediction [translation]
MRO工业品企业采购系统:如何精细化采购协同管理?想要升级的工业品企业必看!
同宇新材冲刺深交所:年营收9.47亿 张驰与苏世国为实控人
朗坤智慧冲刺科创板:年营收4亿 拟募资7亿