• 关于Windows中的硬链接


    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

  • 相关阅读:
    2020 牛客 NOIP 赛前集训营 提高级(第四场) B-色球 平衡树模板
    P4084 [USACO17DEC]Barn Painting G
    CSP-S 2020
    CQOI 2020省选
    我回来了
    hdu3605(二分图多重匹配伪模板)
    舞动的夜晚(二分图的必须边和可行边)
    poj3436(最大流+拆点)
    P2954([USACO09OPEN]移动牛棚Grazing2,dp)
    CSP-S 2020 游记
  • 原文地址:https://www.cnblogs.com/littlehb/p/8322170.html
Copyright © 2020-2023  润新知