https://zhidao.baidu.com/question/748233720330351012.html
linux中使用硬链接
ln a.txt b.txt
查看硬链接
ls -il
关于硬链接磁盘空间的占用情况
http://www.mamicode.com/info-detail-1914045.html
记得使用du -h;ll -h
mklink /h 002CD3A8-ED84-045E-7480-378A4C52E515_2.mp4 002CD3A8-ED84-045E-7480-378A4C52E515.mp4
为 002CD3A8-ED84-045E-7480-378A4C52E515_2.mp4 <<===>> 002CD3A8-ED84-045E-7480-378A4C52E515.mp4 创建了硬链接
文件总大小由28M上涨到42M
[root@DevServer 00]# ls -li
total 43228
281474976757712 -rwxr-xr-x 0 root root 15510852 Dec 22 14:03 002CD3A8-ED84-045E-7480-378A4C52E515_2.mp4
281474976757712 -rwxr-xr-x 0 root root 15510852 Dec 22 14:03 002CD3A8-ED84-045E-7480-378A4C52E515.mp4
在Centos中创建硬链接
ln 002CD3A8-ED84-045E-7480-378A4C52E515.mp4 002CD3A8-ED84-045E-7480-378A4C52E515_3.mp4
42M-->58M
df -h
[root@DevServer 00]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 484G 449G 11G 98% /
tmpfs 7.8G 17M 7.8G 1% /dev/shm
/dev/sda1 477M 103M 349M 23% /boot
//10.10.14.227/down 100G 42G 59G 42% /usr/local/tomcat7/webapps/dsideal_yy/html/down
====================================================================================================================
[root@DevServer 00]# ln t_resource_info.csv t_resource_info_1.csv
[root@DevServer 00]# ln t_resource_info.csv t_resource_info_2.csv
[root@DevServer 00]# ln t_resource_info.csv t_resource_info_3.csv
[root@DevServer 00]# ln t_resource_info.csv t_resource_info_4.csv
[root@DevServer 00]# ln t_resource_info.csv t_resource_info_5.csv
[root@DevServer 00]# du -h;ll
5.9G .
total 6085488