当前位置:网站首页>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/
边栏推荐
- Stm32bug [stlink forced update prompt appears in keilmdk, but it cannot be updated]
- 1day vulnerability pushback skills practice (3)
- The "message withdrawal" of a push message push, one click traceless message withdrawal makes the operation no longer difficult
- Site favorites
- Problems and solutions of several concurrent scenarios of redis
- Contest3145 - the 37th game of 2021 freshman individual training match_ G: Score
- Contest3145 - the 37th game of 2021 freshman individual training match_ F: Smallest ball
- Keep an IT training diary 054- opening and closing
- Mysql to PostgreSQL real-time data synchronization practice sharing
- Optimization theory: definition of convex function + generalized convex function
猜你喜欢
3D game modeling is in full swing. Are you still confused about the future?
Network byte order
Learn these super practical Google browser skills, girls casually flirt
Code Execution Vulnerability - no alphanumeric rce create_ function()
Résumé: entropie, énergie libre, symétrie et dynamique dans le cerveau
Node solves cross domain problems
Setting methods, usage methods and common usage scenarios of environment variables in postman
I stepped on a foundation pit today
96% of the collected traffic is prevented by bubble mart of cloud hosting
Advanced learning of MySQL -- Application -- index
随机推荐
Question d: Haffman coding
2022 Guangxi provincial safety officer a certificate examination materials and Guangxi provincial safety officer a certificate simulation test questions
[Yugong series] February 2022 attack and defense world advanced question misc-83 (QR easy)
MySQL advanced SQL statement (1)
Summarize the past to motivate yourself to move on
Basé sur... Netcore Development blog Project Starblog - (14) Implementation of theme switching function
Setting methods, usage methods and common usage scenarios of environment variables in postman
Package and download 10 sets of Apple CMS templates / download the source code of Apple CMS video and film website
Dare to climb here, you're not far from prison, reptile reverse actual combat case
Is online futures account opening safe and reliable? Which domestic futures company is better?
LV1 tire pressure monitoring
Yyds dry goods inventory hand-in-hand teach you the development of Tiktok series video batch Downloader
Keepalived set the master not to recapture the VIP after fault recovery (it is invalid to solve nopreempt)
No clue about the data analysis report? After reading this introduction of smartbi, you will understand!
CSCI 2134
中電資訊-信貸業務數字化轉型如何從星空到指尖?
Johnson–Lindenstrauss Lemma
Mysql-15 aggregate function
How to use websocket to realize simple chat function in C #
Global and Chinese market of cell scrapers 2022-2028: Research Report on technology, participants, trends, market size and share