当前位置:网站首页>Rhcsa day 2
Rhcsa day 2
2022-07-04 02:55:00 【Dd_ five hundred and seventy-seven】
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 aa.lnk
3. In the current system / Create under directory 100 File ( File name e.g :abc1..abc100)
4. Introduce ll List what each column of information in a directory is
5. 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
6 Delete /tmp/sys/a file .
7. Catalog /tmp Create 4 A catalog , And create one under each of these four directories test Catalog
8. Create a test Catalog , Create a file in this directory , Content writing nano
9. 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、
(1) Symbolic links are also called soft links , And the original file is not a file . for example Windows Shortcut to ,
2、
[[email protected] ~]# cd /home
[[email protected] home]# touch aaa
[[email protected] home]# ln -s aaa a.txt
[[email protected] home]# cd /root
[[email protected] ~]# ln /home/aaa aa.lnk

3、
[[email protected] ~]# touch abc{1..100}
4、
1、 The first character represents the file type
2、2-11 Characters represent the permission identifier
3、 The second column indicates the number of hard links
4、 The third and fourth columns represent the users and groups respectively
5、 The fifth column indicates the date of modification or creation
6、 The sixth column indicates the file size
7、 The last column represents the file name

5、
[[email protected] sysroot]# mkdir /test/sysroot
[[email protected] sysroot]# cd /test/sysroot
[[email protected] sysroot]# touch {a,b,c}
[[email protected] sysroot]# mv -f /test/sysroot /tmp/sys

6、

7、
[[email protected] tmp]# mkdir -pv a/test b/test c/test d/test
8、
[[email protected] tmp]# mkdir test
[[email protected] tmp]# cd test/
[[email protected] test]# touch aa
[[email protected] test]# nano aa

9、
[[email protected] ~]# mkdir -p /dir/dir2
[[email protected] ~]# cd /dir/dir2
[[email protected] dir2]# cd ..
[[email protected] dir]# touch file1
[[email protected] dir]# ll
total 0
drwxr-xr-x. 2 root root 6 Feb 12 17:06 dir2
-rw-r--r--. 1 root root 0 Feb 12 17:07 file1
[[email protected] dir]# mv -f file1 /tmp/test/
[[email protected] dir]# cp -a dir2 /tmp/test/

边栏推荐
- Contest3145 - the 37th game of 2021 freshman individual training match_ 1: Origami
- Base d'apprentissage de la machine: sélection de fonctionnalités avec lasso
- Push technology practice | master these two tuning skills to speed up tidb performance a thousand times!
- Bugku Zhi, you have to stop him
- 機器學習基礎:用 Lasso 做特征選擇
- Unity writes a character controller. The mouse controls the screen to shake and the mouse controls the shooting
- Hospital network planning and design document based on GLBP protocol + application form + task statement + opening report + interim examination + literature review + PPT + weekly progress + network to
- Osnabrueck University | overview of specific architectures in the field of reinforcement learning
- [Yugong series] February 2022 attack and defense world advanced question misc-83 (QR easy)
- [untitled]
猜你喜欢

How to subcontract uniapp and applet, detailed steps (illustration) # yyds dry goods inventory #

Lichuang EDA learning notes 14: PCB board canvas settings

How to use websocket to realize simple chat function in C #

Gee import SHP data - crop image

Talking about custom conditions and handling errors in MySQL Foundation

false sharing

Save Private Ryan - map building + voltage dp+deque+ shortest circuit

Push technology practice | master these two tuning skills to speed up tidb performance a thousand times!

Record a problem that soft deletion fails due to warehouse level error

Final consistency of MESI cache in CPU -- why does CPU need cache
随机推荐
MySQL advanced (Advanced) SQL statement (I)
JS object definition
[Yugong series] February 2022 attack and defense world advanced question misc-83 (QR easy)
How to use STR function of C language
C learning notes: C foundation - Language & characteristics interpretation
How to subcontract uniapp and applet, detailed steps (illustration) # yyds dry goods inventory #
ZABBIX API batch delete a template of the host
Base d'apprentissage de la machine: sélection de fonctionnalités avec lasso
7 * 24-hour business without interruption! Practice of applying multiple live landing in rookie villages
Have you entered the workplace since the first 00???
Experience summary of the 12th Blue Bridge Cup (written for the first time)
Node write API
String: LV1 eat hot pot
Package and download 10 sets of Apple CMS templates / download the source code of Apple CMS video and film website
12. Gettimeofday() and time()
Www 2022 | taxoenrich: self supervised taxonomy complemented by Structural Semantics
Global and Chinese market of contour projectors 2022-2028: Research Report on technology, participants, trends, market size and share
This function has none of DETERMINISTIC, NO SQL..... (you *might* want to use the less safe log_bin_t
The 37 year old programmer was laid off, and he didn't find a job for 120 days. He had no choice but to go to a small company. As a result, he was confused
What are the main investment products of bond funds and what are they