Bo's Oracle Station

查看: 1669|回复: 2

课程第4次

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2019-12-21 20:51:58 | 显示全部楼层 |阅读模式
  1. [root@server4 ~]# ls
  2. anaconda-ks.cfg  Desktop  Documents  Downloads  Music  original-ks.cfg  Pictures  Public  Templates  Videos
  3. [root@server4 ~]# cd /dev/
  4. [root@server4 dev]# ls
  5. agpgart          log                 sda2      tty23  tty49    usbmon1
  6. autofs           loop-control        sda3      tty24  tty5     usbmon2
  7. block            lp0                 sg0       tty25  tty50    vcs
  8. bsg              lp1                 sg1       tty26  tty51    vcs1
  9. btrfs-control    lp2                 shm       tty27  tty52    vcs2
  10. bus              lp3                 snapshot  tty28  tty53    vcs3
  11. cdrom            mapper              snd       tty29  tty54    vcs4
  12. char             mcelog              sr0       tty3   tty55    vcs5
  13. console          mem                 stderr    tty30  tty56    vcs6
  14. core             midi                stdin     tty31  tty57    vcsa
  15. cpu              mqueue              stdout    tty32  tty58    vcsa1
  16. cpu_dma_latency  net                 tty       tty33  tty59    vcsa2
  17. crash            network_latency     tty0      tty34  tty6     vcsa3
  18. disk             network_throughput  tty1      tty35  tty60    vcsa4
  19. dm-0             null                tty10     tty36  tty61    vcsa5
  20. dmmidi           nvram               tty11     tty37  tty62    vcsa6
  21. dri              oldmem              tty12     tty38  tty63    vfio
  22. fb0              port                tty13     tty39  tty7     vga_arbiter
  23. fd               ppp                 tty14     tty4   tty8     vhci
  24. full             ptmx                tty15     tty40  tty9     vhost-net
  25. fuse             pts                 tty16     tty41  ttyS0    vmci
  26. hidraw0          random              tty17     tty42  ttyS1    vsock
  27. hpet             raw                 tty18     tty43  ttyS2    zero
  28. hugepages        rhel                tty19     tty44  ttyS3
  29. hwrng            rtc                 tty2      tty45  uhid
  30. initctl          rtc0                tty20     tty46  uinput
  31. input            sda                 tty21     tty47  urandom
  32. kmsg             sda1                tty22     tty48  usbmon0
  33. [root@server4 dev]# ls -l
  34. total 0
  35. crw-rw----. 1 root video    10, 175 Dec 21 05:25 agpgart
  36. crw-------. 1 root root     10, 235 Dec 21 05:25 autofs
  37. drwxr-xr-x. 2 root root         160 Dec 21 05:25 block
  38. drwxr-xr-x. 2 root root          80 Dec 21 05:25 bsg
  39. crw-------. 1 root root     10, 234 Dec 21 05:25 btrfs-control
  40. drwxr-xr-x. 3 root root          60 Dec 21 05:25 bus
  41. lrwxrwxrwx. 1 root root           3 Dec 21 05:25 cdrom -> sr0
  42. drwxr-xr-x. 2 root root        3040 Dec 21 05:27 char
  43. crw-------. 1 root root      5,   1 Dec 21 05:26 console
  44. lrwxrwxrwx. 1 root root          11 Dec 21 05:25 core -> /proc/kcore
  45. drwxr-xr-x. 3 root root          60 Dec 21 05:25 cpu
  46. crw-------. 1 root root     10,  61 Dec 21 05:25 cpu_dma_latency
  47. crw-------. 1 root root     10,  62 Dec 21 05:25 crash
  48. drwxr-xr-x. 5 root root         100 Dec 21 05:25 disk
  49. brw-rw----. 1 root disk    253,   0 Dec 21 05:25 dm-0
  50. crw-rw----+ 1 root audio    14,   9 Dec 21 05:25 dmmidi
  51. drwxr-xr-x. 2 root root          80 Dec 21 05:25 dri
  52. crw-rw----. 1 root video    29,   0 Dec 21 05:25 fb0
  53. lrwxrwxrwx. 1 root root          13 Dec 21 05:25 fd -> /proc/self/fd
  54. crw-rw-rw-. 1 root root      1,   7 Dec 21 05:25 full
  55. crw-rw-rw-. 1 root root     10, 229 Dec 21 05:27 fuse
  56. crw-------. 1 root root    246,   0 Dec 21 05:25 hidraw0
  57. crw-------. 1 root root     10, 228 Dec 21 05:25 hpet
  58. drwxr-xr-x. 3 root root           0 Dec 21 05:26 hugepages
  59. crw-------. 1 root root     10, 183 Dec 21 05:25 hwrng
  60. lrwxrwxrwx. 1 root root          25 Dec 21 05:25 initctl -> /run/systemd/initctl/fifo
  61. drwxr-xr-x. 4 root root         300 Dec 21 05:25 input
  62. crw-r--r--. 1 root root      1,  11 Dec 21 05:25 kmsg
  63. srw-rw-rw-. 1 root root           0 Dec 21 05:25 log
  64. crw-rw----. 1 root disk     10, 237 Dec 21 05:25 loop-control
  65. crw-rw----. 1 root lp        6,   0 Dec 21 05:25 lp0
  66. crw-rw----. 1 root lp        6,   1 Dec 21 05:25 lp1
  67. crw-rw----. 1 root lp        6,   2 Dec 21 05:25 lp2
  68. crw-rw----. 1 root lp        6,   3 Dec 21 05:25 lp3
  69. drwxr-xr-x. 2 root root          80 Dec 21 05:25 mapper
  70. crw-------. 1 root root     10, 227 Dec 21 05:25 mcelog
  71. crw-r-----. 1 root kmem      1,   1 Dec 21 05:25 mem
  72. crw-rw----+ 1 root audio    14,   2 Dec 21 05:25 midi
  73. drwxrwxrwt. 2 root root          40 Dec 21 05:25 mqueue
  74. drwxr-xr-x. 2 root root          60 Dec 21 05:25 net
  75. crw-------. 1 root root     10,  60 Dec 21 05:25 network_latency
  76. crw-------. 1 root root     10,  59 Dec 21 05:25 network_throughput
  77. crw-rw-rw-. 1 root root      1,   3 Dec 21 05:25 null
  78. crw-------. 1 root root     10, 144 Dec 21 05:25 nvram
  79. crw-------. 1 root root      1,  12 Dec 21 05:25 oldmem
  80. crw-r-----. 1 root kmem      1,   4 Dec 21 05:25 port
  81. crw-------. 1 root root    108,   0 Dec 21 05:25 ppp
  82. crw-rw-rw-. 1 root tty       5,   2 Dec 21 20:11 ptmx
  83. drwxr-xr-x. 2 root root           0 Dec 21 05:25 pts
  84. crw-rw-rw-. 1 root root      1,   8 Dec 21 05:25 random
  85. drwxr-xr-x. 2 root root          60 Dec 21 05:25 raw
  86. drwxr-xr-x. 2 root root          60 Dec 21 05:25 rhel
  87. lrwxrwxrwx. 1 root root           4 Dec 21 05:25 rtc -> rtc0
  88. crw-------. 1 root root    252,   0 Dec 21 05:25 rtc0
  89. brw-rw----. 1 root disk      8,   0 Dec 21 05:25 sda
  90. brw-rw----. 1 root disk      8,   1 Dec 21 05:25 sda1
  91. brw-rw----. 1 root disk      8,   2 Dec 21 05:25 sda2
  92. brw-rw----. 1 root disk      8,   3 Dec 21 05:25 sda3
  93. crw-rw----. 1 root disk     21,   0 Dec 21 05:25 sg0
  94. crw-rw----+ 1 root cdrom    21,   1 Dec 21 05:25 sg1
  95. drwxrwxrwt. 2 root root          40 Dec 21 05:28 shm
  96. crw-------. 1 root root     10, 231 Dec 21 05:25 snapshot
  97. drwxr-xr-x. 3 root root         200 Dec 21 05:25 snd
  98. brw-rw----+ 1 root cdrom    11,   0 Dec 21 05:25 sr0
  99. lrwxrwxrwx. 1 root root          15 Dec 21 05:25 stderr -> /proc/self/fd/2
  100. lrwxrwxrwx. 1 root root          15 Dec 21 05:25 stdin -> /proc/self/fd/0
  101. lrwxrwxrwx. 1 root root          15 Dec 21 05:25 stdout -> /proc/self/fd/1
  102. crw-rw-rw-. 1 root tty       5,   0 Dec 21 05:25 tty
  103. crw--w----. 1 root tty       4,   0 Dec 21 05:25 tty0
  104. crw--w----. 1 root tty       4,   1 Dec 21 05:26 tty1
  105. crw--w----. 1 root tty       4,  10 Dec 21 05:25 tty10
  106. crw--w----. 1 root tty       4,  11 Dec 21 05:25 tty11
  107. crw--w----. 1 root tty       4,  12 Dec 21 05:25 tty12
  108. crw--w----. 1 root tty       4,  13 Dec 21 05:25 tty13
  109. crw--w----. 1 root tty       4,  14 Dec 21 05:25 tty14
  110. crw--w----. 1 root tty       4,  15 Dec 21 05:25 tty15
  111. crw--w----. 1 root tty       4,  16 Dec 21 05:25 tty16
  112. crw--w----. 1 root tty       4,  17 Dec 21 05:25 tty17
  113. crw--w----. 1 root tty       4,  18 Dec 21 05:25 tty18
  114. crw--w----. 1 root tty       4,  19 Dec 21 05:25 tty19
  115. crw--w----. 1 root tty       4,   2 Dec 21 05:25 tty2
  116. crw--w----. 1 root tty       4,  20 Dec 21 05:25 tty20
  117. crw--w----. 1 root tty       4,  21 Dec 21 05:25 tty21
  118. crw--w----. 1 root tty       4,  22 Dec 21 05:25 tty22
  119. crw--w----. 1 root tty       4,  23 Dec 21 05:25 tty23
  120. crw--w----. 1 root tty       4,  24 Dec 21 05:25 tty24
  121. crw--w----. 1 root tty       4,  25 Dec 21 05:25 tty25
  122. crw--w----. 1 root tty       4,  26 Dec 21 05:25 tty26
  123. crw--w----. 1 root tty       4,  27 Dec 21 05:25 tty27
  124. crw--w----. 1 root tty       4,  28 Dec 21 05:25 tty28
  125. crw--w----. 1 root tty       4,  29 Dec 21 05:25 tty29
  126. crw--w----. 1 root tty       4,   3 Dec 21 05:25 tty3
  127. crw--w----. 1 root tty       4,  30 Dec 21 05:25 tty30
  128. crw--w----. 1 root tty       4,  31 Dec 21 05:25 tty31
  129. crw--w----. 1 root tty       4,  32 Dec 21 05:25 tty32
  130. crw--w----. 1 root tty       4,  33 Dec 21 05:25 tty33
  131. crw--w----. 1 root tty       4,  34 Dec 21 05:25 tty34
  132. crw--w----. 1 root tty       4,  35 Dec 21 05:25 tty35
  133. crw--w----. 1 root tty       4,  36 Dec 21 05:25 tty36
  134. crw--w----. 1 root tty       4,  37 Dec 21 05:25 tty37
  135. crw--w----. 1 root tty       4,  38 Dec 21 05:25 tty38
  136. crw--w----. 1 root tty       4,  39 Dec 21 05:25 tty39
  137. crw--w----. 1 root tty       4,   4 Dec 21 05:25 tty4
  138. crw--w----. 1 root tty       4,  40 Dec 21 05:25 tty40
  139. crw--w----. 1 root tty       4,  41 Dec 21 05:25 tty41
  140. crw--w----. 1 root tty       4,  42 Dec 21 05:25 tty42
  141. crw--w----. 1 root tty       4,  43 Dec 21 05:25 tty43
  142. crw--w----. 1 root tty       4,  44 Dec 21 05:25 tty44
  143. crw--w----. 1 root tty       4,  45 Dec 21 05:25 tty45
  144. crw--w----. 1 root tty       4,  46 Dec 21 05:25 tty46
  145. crw--w----. 1 root tty       4,  47 Dec 21 05:25 tty47
  146. crw--w----. 1 root tty       4,  48 Dec 21 05:25 tty48
  147. crw--w----. 1 root tty       4,  49 Dec 21 05:25 tty49
  148. crw--w----. 1 root tty       4,   5 Dec 21 05:25 tty5
  149. crw--w----. 1 root tty       4,  50 Dec 21 05:25 tty50
  150. crw--w----. 1 root tty       4,  51 Dec 21 05:25 tty51
  151. crw--w----. 1 root tty       4,  52 Dec 21 05:25 tty52
  152. crw--w----. 1 root tty       4,  53 Dec 21 05:25 tty53
  153. crw--w----. 1 root tty       4,  54 Dec 21 05:25 tty54
  154. crw--w----. 1 root tty       4,  55 Dec 21 05:25 tty55
  155. crw--w----. 1 root tty       4,  56 Dec 21 05:25 tty56
  156. crw--w----. 1 root tty       4,  57 Dec 21 05:25 tty57
  157. crw--w----. 1 root tty       4,  58 Dec 21 05:25 tty58
  158. crw--w----. 1 root tty       4,  59 Dec 21 05:25 tty59
  159. crw--w----. 1 root tty       4,   6 Dec 21 05:25 tty6
  160. crw--w----. 1 root tty       4,  60 Dec 21 05:25 tty60
  161. crw--w----. 1 root tty       4,  61 Dec 21 05:25 tty61
  162. crw--w----. 1 root tty       4,  62 Dec 21 05:25 tty62
  163. crw--w----. 1 root tty       4,  63 Dec 21 05:25 tty63
  164. crw--w----. 1 root tty       4,   7 Dec 21 05:25 tty7
  165. crw--w----. 1 root tty       4,   8 Dec 21 05:25 tty8
  166. crw--w----. 1 root tty       4,   9 Dec 21 05:25 tty9
  167. crw-rw----. 1 root dialout   4,  64 Dec 21 05:25 ttyS0
  168. crw-rw----. 1 root dialout   4,  65 Dec 21 05:25 ttyS1
  169. crw-rw----. 1 root dialout   4,  66 Dec 21 05:25 ttyS2
  170. crw-rw----. 1 root dialout   4,  67 Dec 21 05:25 ttyS3
  171. crw-------. 1 root root     10, 239 Dec 21 05:25 uhid
  172. crw-------. 1 root root     10, 223 Dec 21 05:25 uinput
  173. crw-rw-rw-. 1 root root      1,   9 Dec 21 05:25 urandom
  174. crw-------. 1 root root    247,   0 Dec 21 05:25 usbmon0
  175. crw-------. 1 root root    247,   1 Dec 21 05:25 usbmon1
  176. crw-------. 1 root root    247,   2 Dec 21 05:25 usbmon2
  177. crw-rw----. 1 root tty       7,   0 Dec 21 05:25 vcs
  178. crw-rw----. 1 root tty       7,   1 Dec 21 05:25 vcs1
  179. crw-rw----. 1 root tty       7,   2 Dec 21 05:26 vcs2
  180. crw-rw----. 1 root tty       7,   3 Dec 21 05:26 vcs3
  181. crw-rw----. 1 root tty       7,   4 Dec 21 05:26 vcs4
  182. crw-rw----. 1 root tty       7,   5 Dec 21 05:26 vcs5
  183. crw-rw----. 1 root tty       7,   6 Dec 21 05:26 vcs6
  184. crw-rw----. 1 root tty       7, 128 Dec 21 05:25 vcsa
  185. crw-rw----. 1 root tty       7, 129 Dec 21 05:25 vcsa1
  186. crw-rw----. 1 root tty       7, 130 Dec 21 05:26 vcsa2
  187. crw-rw----. 1 root tty       7, 131 Dec 21 05:26 vcsa3
  188. crw-rw----. 1 root tty       7, 132 Dec 21 05:26 vcsa4
  189. crw-rw----. 1 root tty       7, 133 Dec 21 05:26 vcsa5
  190. crw-rw----. 1 root tty       7, 134 Dec 21 05:26 vcsa6
  191. drwxr-xr-x. 2 root root          60 Dec 21 05:25 vfio
  192. crw-------. 1 root root     10,  63 Dec 21 05:25 vga_arbiter
  193. crw-------. 1 root root     10, 137 Dec 21 05:25 vhci
  194. crw-------. 1 root root     10, 238 Dec 21 05:25 vhost-net
  195. crw-------. 1 root root     10,  58 Dec 21 05:25 vmci
  196. crw-------. 1 root root     10,  57 Dec 21 05:26 vsock
  197. crw-rw-rw-. 1 root root      1,   5 Dec 21 05:25 zero
  198. [root@server4 dev]#
复制代码

------
  1. Last login: Sat Dec 21 05:19:25 2019 from desktop41.example.com
  2. [root@desktop4 ~]# pwd
  3. /root
  4. [root@desktop4 ~]# ls -l
  5. total 4
  6. -rw-------. 1 root root 2344 Dec 17 07:01 anaconda-ks.cfg
  7. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Desktop
  8. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Documents
  9. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Downloads
  10. drwxr-xr-x. 2 root root   32 Dec 21 06:17 labs
  11. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Music
  12. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Pictures
  13. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Public
  14. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Templates
  15. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Videos
  16. [root@desktop4 ~]# cd labs
  17. [root@desktop4 labs]# ls
  18. 1.txt  2.txt
  19. [root@desktop4 labs]# vim 3.txt
  20. 1234567890
  21. ~
  22. ~
  23. ~
  24. ~
  25. ~
  26. ~
  27. ~
  28. ~
  29. ~
  30. ~
  31. ~
  32. ~
  33. ~
  34. ~
  35. ~
  36. ~
  37. ~
  38. ~
  39. ~
  40. ~
  41. ~
  42. ~
  43. "3.txt" [New] 1L, 11C written                                 
  44. [root@desktop4 labs]# wc -c 3.txt
  45. 11 3.txt
  46. [root@desktop4 labs]# cat  3.txt
  47. 1234567890
  48. [root@desktop4 labs]# cat -A  3.txt
  49. 1234567890$
  50. [root@desktop4 labs]# ls -l *
  51. -rw-r--r--. 1 root root  8 Dec 20 20:35 1.txt
  52. -rw-r--r--. 1 root root 32 Dec 21 06:16 2.txt
  53. -rw-r--r--. 1 root root 11 Dec 21 20:19 3.txt
  54. [root@desktop4 labs]# ln -s 3.txt  4.txt
  55. [root@desktop4 labs]# ls -l *
  56. -rw-r--r--. 1 root root  8 Dec 20 20:35 1.txt
  57. -rw-r--r--. 1 root root 32 Dec 21 06:16 2.txt
  58. -rw-r--r--. 1 root root 11 Dec 21 20:19 3.txt
  59. lrwxrwxrwx. 1 root root  5 Dec 21 20:23 4.txt -> 3.txt
  60. [root@desktop4 labs]# ls -l 4.txt
  61. lrwxrwxrwx. 1 root root 5 Dec 21 20:23 4.txt -> 3.txt
  62. [root@desktop4 labs]# chmod g=rw 3.txt
  63. [root@desktop4 labs]# ls -i  3.txt
  64. 51201536 3.txt
  65. [root@desktop4 labs]# ls -l 3.txt
  66. -rw-rw-r--. 1 root root 11 Dec 21 20:19 3.txt
  67. [root@desktop4 labs]# chmod o-r 3.txt
  68. [root@desktop4 labs]# ls -l 3.txt
  69. -rw-rw----. 1 root root 11 Dec 21 20:19 3.txt
  70. [root@desktop4 labs]# chmod 640 3.txt
  71. [root@desktop4 labs]# ls -l 3.txt
  72. -rw-r-----. 1 root root 11 Dec 21 20:19 3.txt
  73. [root@desktop4 labs]# cd ..
  74. [root@desktop4 ~]# ls -l
  75. total 4
  76. -rw-------. 1 root root 2344 Dec 17 07:01 anaconda-ks.cfg
  77. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Desktop
  78. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Documents
  79. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Downloads
  80. drwxr-xr-x. 2 root root   58 Dec 21 20:23 labs
  81. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Music
  82. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Pictures
  83. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Public
  84. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Templates
  85. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Videos
  86. [root@desktop4 ~]# cd labs
  87. [root@desktop4 labs]# ls
  88. 1.txt  2.txt  3.txt  4.txt
  89. [root@desktop4 labs]# ls -a
  90. .  ..  1.txt  2.txt  3.txt  4.txt
  91. [root@desktop4 labs]# ls -ia
  92. 51201526 .   33636129 1.txt  51201536 3.txt
  93. 33574977 ..  51201553 2.txt  51201535 4.txt
  94. [root@desktop4 labs]# ls -id
  95. 51201526 .
  96. [root@desktop4 labs]# ls -id /
  97. 64 /
  98. [root@desktop4 labs]# ls -id /root/labs/
  99. 51201526 /root/labs/
  100. [root@desktop4 labs]# ls -id /root
  101. 33574977 /root
  102. [root@desktop4 labs]# cd .
  103. [root@desktop4 labs]# cd ..
  104. [root@desktop4 ~]# ls -l
  105. total 4
  106. -rw-------. 1 root root 2344 Dec 17 07:01 anaconda-ks.cfg
  107. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Desktop
  108. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Documents
  109. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Downloads
  110. drwxr-xr-x. 2 root root   58 Dec 21 20:23 labs
  111. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Music
  112. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Pictures
  113. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Public
  114. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Templates
  115. drwxr-xr-x. 2 root root    6 Dec 17 07:20 Videos
  116. [root@desktop4 ~]# cd labs
  117. [root@desktop4 labs]# ls
  118. 1.txt  2.txt  3.txt  4.txt
  119. [root@desktop4 labs]# df -h
  120. Filesystem             Size  Used Avail Use% Mounted on
  121. /dev/mapper/rhel-root   18G  3.6G   14G  21% /
  122. devtmpfs               894M     0  894M   0% /dev
  123. tmpfs                  910M     0  910M   0% /dev/shm
  124. tmpfs                  910M   11M  900M   2% /run
  125. tmpfs                  910M     0  910M   0% /sys/fs/cgroup
  126. /dev/sda1              297M  161M  137M  54% /boot
  127. tmpfs                  182M   12K  182M   1% /run/user/42
  128. tmpfs                  182M     0  182M   0% /run/user/0
  129. [root@desktop4 labs]# ls -id /boot
  130. 64 /boot
  131. [root@desktop4 labs]# umount  /boot
  132. [root@desktop4 labs]# ls -id /boot
  133. 67 /boot
  134. [root@desktop4 labs]# mount -a
  135. [root@desktop4 labs]# ls -id /boot
  136. 64 /boot
  137. [root@desktop4 labs]# pwd
  138. /root/labs
  139. [root@desktop4 labs]# ls
  140. 1.txt  2.txt  3.txt  4.txt
  141. [root@desktop4 labs]# ls -l
  142. total 12
  143. -rw-r--r--. 1 root root  8 Dec 20 20:35 1.txt
  144. -rw-r--r--. 1 root root 32 Dec 21 06:16 2.txt
  145. -rw-r-----. 1 root root 11 Dec 21 20:19 3.txt
  146. lrwxrwxrwx. 1 root root  5 Dec 21 20:23 4.txt -> 3.txt
  147. [root@desktop4 labs]# ln 3.txt   /tmp/5.txt
  148. [root@desktop4 labs]# ls -l
  149. total 12
  150. -rw-r--r--. 1 root root  8 Dec 20 20:35 1.txt
  151. -rw-r--r--. 1 root root 32 Dec 21 06:16 2.txt
  152. -rw-r-----. 2 root root 11 Dec 21 20:19 3.txt
  153. lrwxrwxrwx. 1 root root  5 Dec 21 20:23 4.txt -> 3.txt
  154. [root@desktop4 labs]# ls -i 3.txt
  155. 51201536 3.txt
  156. [root@desktop4 labs]# ls -i /tmp/5.txt
  157. 51201536 /tmp/5.txt
  158. [root@desktop4 labs]#
复制代码



回复

使用道具 举报

0

主题

8

帖子

26

积分

新手上路

Rank: 1

积分
26
发表于 2019-12-24 23:09:01 | 显示全部楼层
[root@desktop4 dev]# ssh 192.168.0.104 dd if=/root/labs/a.img bs=4M > /dev/sdb3
root@192.168.0.104's password:
50+0 records in
50+0 records out
209715200 bytes (210 MB) copied, 1.34381 s, 156 MB/s
[root@desktop4 dev]# mount  -a
mount: wrong fs type, bad option, bad superblock on /dev/sdb3,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
mount: can't find LABEL=bird
唐老师,将sdb3拷贝回来之后挂载提示这个错误是什么
回复 支持 反对

使用道具 举报

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
 楼主| 发表于 2019-12-28 22:50:08 | 显示全部楼层
Rassss 发表于 2019-12-24 23:09
[root@desktop4 dev]# ssh 192.168.0.104 dd if=/root/labs/a.img bs=4M > /dev/sdb3
's password:
50+ ...

xfs吗,如果是,bs=1,否则可能不行。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-10 03:48 , Processed in 0.144887 second(s), 24 queries .

快速回复 返回顶部 返回列表