Linux入门-命令练习 20210118文件管理

Linux入门-命令练习 20210118文件管理

  

 1 [02:11:41 root@centos8 ~]#lsb_release -a(#查看linux系统内核信息)
 2 LSB Version:    :core-4.1-amd64:core-4.1-noarch
 3 Distributor ID: CentOS
 4 Description:    CentOS Linux release 8.3.2011
 5 Release:        8.3.2011
 6 Codename:       n/a
 7 [02:11:53 root@centos8 ~]#ll /dev/null
 8 crw-rw-rw- 1 root root 1, 3 Jan 17 22:00 /dev/null
 9 [02:15:24 root@centos8 ~]#ll /dev/null
10 crw-rw-rw- 1 root root 1, 3 Jan 17 22:00 /dev/null
11 [02:28:28 root@centos8 ~]#
12 [02:28:39 root@centos8 ~]#ll /dev/sda
13 brw-rw---- 1 root disk 8, 0 Jan 17 22:00 /dev/sda
14 [02:28:42 root@centos8 ~]#ll /dev/zero
15 crw-rw-rw- 1 root root 1, 5 Jan 17 22:00 /dev/zero
16 [02:28:51 root@centos8 ~]#
17 [02:28:52 root@centos8 ~]#ll /dev/sda*
18 brw-rw---- 1 root disk 8, 0 Jan 17 22:00 /dev/sda
19 brw-rw---- 1 root disk 8, 1 Jan 17 22:00 /dev/sda1
20 brw-rw---- 1 root disk 8, 2 Jan 17 22:00 /dev/sda2
21 brw-rw---- 1 root disk 8, 3 Jan 17 22:00 /dev/sda3
22 brw-rw---- 1 root disk 8, 4 Jan 17 22:00 /dev/sda4
23 brw-rw---- 1 root disk 8, 5 Jan 17 22:00 /dev/sda5
举例: 24 [02:29:24 root@centos8 ~]#cp /dev/zero /data/(#拷贝文件,拷贝一下就马上终止,不然硬盘会被撑满) 25 ^C 26 [02:29:53 root@centos8 ~]#ll /dev/zero /data/ 27 crw-rw-rw- 1 root root 1, 5 Jan 17 22:00 /dev/zero 28 29 /data/: 30 total 2982584 31 -rw-r--r-- 1 root root 709 Jan 18 00:36 f1.txt 32 -rw-r--r-- 1 root root 709 Jan 18 00:36 f22.txt 33 -rw-r--r-- 1 root root 709 Jan 18 00:36 f3.txt 34 -rw-r--r-- 1 root root 3054153728 Jan 18 02:29 zero
[02:39:02 root@centos8 ~]#ll /dev/zero /data/ -h
crw-rw-rw-  1 root root 1, 5 Jan 17 22:00 /dev/zero

/data/:
total 2.9G
-rw-r--r-- 1 root root  709 Jan 18 00:36 f1.txt
-rw-r--r-- 1 root root  709 Jan 18 00:36 f22.txt
-rw-r--r-- 1 root root  709 Jan 18 00:36 f3.txt
-rw-r--r-- 1 root root 2.9G Jan 18 02:29 zero(#瞬间就有了2.9G文件)
[02:39:14 root@centos8 ~]#

[02:41:07 root@centos8 ~]#hexdump -C /data/zero(#用二进制工具观察一下)
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
b60ab000                                         (#里面都是000,如果我不终止,不停的拷贝!)
[02:41:27 root@centos8 ~]#

 



 

上一篇:测试数据的可视化-通用化


下一篇:【小白程序圆python学习记】数据可视化