설명 및 색상이 포함된 대용량 파일 목록을 가져오는 도구

5870 단어 cpplinux

fsrank: 빠른 개요



아주 오래전부터 디스크 공간은 신비롭게도 빠르게 채워졌다고 합니다. 사용하지 않는 파일을 제거해야 하는 경우가 많은데, 어떤 파일이 필요한지 아닌지 식별하기 어렵고, 그 파일을 제거하지 말았어야 했다는 아쉬움이 들 때도 있습니다.

그래서 식별에 도움이 되는 도구를 만들었습니다.


chgzm / fsrank


디렉토리에서 파일 크기 순위 가져오기




  • 파일 설명과 함께 지정된 디렉토리의 파일 크기 순위를 표시합니다
  • .
  • 파일 경로는 LS_COLORS에 따라 색상이 지정됩니다.
  • 사용하지 않는 파일을 식별하는 데 도움이 되는 수정 시간 및 액세스 시간 표시

  • 스크린샷


    명령줄
    fsrank 
    No   File Size  Access Time          Modification Time    File Description                                  Path                                                                                                                                                                
     1    448.889M  2020-10-18 23:09:07  2019-06-21 20:17:28  ELF 64-bit LSB shared object                      ./lib/server/libjvm.debuginfo
     2    134.649M  2020-03-28 15:35:44  2019-06-21 20:17:27  data                                              ./lib/modules
     3     55.218M  2019-07-19 18:55:32  2019-06-21 20:17:28  Zip archive data, at least v2.0 to extract        ./lib/src.zip
     4     21.617M  2019-07-01 00:06:00  2019-06-21 20:17:27  ELF 64-bit LSB shared object                      ./lib/server/libjvm.so
     5     19.779M  2019-06-21 20:17:27  2019-06-21 20:17:27  data                                              ./jmods/java.base.jmod
     6     17.833M  2019-06-21 20:17:28  2019-06-21 20:17:28  ELF 64-bit LSB shared object                      ./lib/libfontmanager.debuginfo
     7     12.813M  2019-06-21 20:17:27  2019-06-21 20:17:27  data                                              ./jmods/java.desktop.jmod
     8      9.113M  2019-06-21 20:17:27  2019-06-21 20:17:27  data                                              ./jmods/jdk.localedata.jmod
     9      6.346M  2019-06-21 20:17:27  2019-06-21 20:17:27  data                                              ./jmods/jdk.compiler.jmod
    10      5.890M  2019-06-21 20:17:27  2019-06-21 20:17:27  data                                              ./jmods/jdk.internal.vm.compiler.jmod
    11      4.880M  2019-06-21 20:17:27  2019-06-21 20:17:27  data                                              ./jmods/java.xml.jmod
    12      4.281M  2019-06-21 20:17:27  2019-06-21 20:17:27  Java archive data (JAR)                           ./lib/ct.sym
    13      3.077M  2019-06-21 20:17:28  2019-06-21 20:17:28  ELF 64-bit LSB shared object                      ./lib/libawt.debuginfo
    14      2.214M  2019-06-21 20:17:27  2019-06-21 20:17:27  data                                              ./jmods/jdk.hotspot.agent.jmod
    15      2.108M  2019-06-21 20:17:27  2019-06-21 20:17:27  data                                              ./jmods/jdk.scripting.nashorn.jmod
    16      2.025M  2019-06-21 20:17:28  2019-06-21 20:17:28  ELF 64-bit LSB shared object                      ./lib/libawt_xawt.debuginfo
    17      1.815M  2019-06-21 20:17:28  2019-06-21 20:17:28  ELF 64-bit LSB shared object                      ./lib/liblcms.debuginfo
    18      1.770M  2019-06-21 20:17:28  2019-06-21 20:17:28  ELF 64-bit LSB shared object                      ./lib/libjdwp.debuginfo
    19      1.570M  2019-06-21 20:17:28  2019-06-21 20:17:28  Java archive data (JAR)                           ./demo/jfc/SwingSet2/SwingSet2.jar
    20      1.559M  2019-06-21 20:17:27  2019-06-21 20:17:27  data                                              ./jmods/jdk.javadoc.jmod
    21      1.507M  2019-06-21 20:17:28  2019-06-21 20:17:28  ELF 64-bit LSB shared object                      ./lib/libmlib_image.debuginfo
    22      1.416M  2019-06-21 20:17:28  2019-06-21 20:17:28  Zip archive data, at least v2.0 to extract        ./demo/jfc/SwingSet2/src.zip
    23      1.408M  2019-06-21 20:17:27  2019-06-21 20:17:27  ELF 64-bit LSB shared object                      ./lib/libfontmanager.so
    24      1.372M  2019-06-21 20:17:28  2019-06-21 20:17:28  ELF 64-bit LSB shared object                      ./lib/libsplashscreen.debuginfo
    25      1.173M  2019-06-25 06:41:38  2019-06-21 20:17:28  ELF 64-bit LSB shared object                      ./lib/libjava.debuginfo
    26      1.093M  2019-06-21 20:17:27  2019-06-21 20:17:27  data                                              ./jmods/jdk.charsets.jmod
    27    927.720K  2019-06-21 20:17:28  2019-06-21 20:17:28  Java archive data (JAR)                           ./demo/jfc/J2Ddemo/J2Ddemo.jar
    28    907.078K  2019-06-21 20:17:28  2019-06-21 20:17:28  ELF 64-bit LSB shared object                      ./lib/libjavajpeg.debuginfo
    29    869.290K  2019-06-21 20:17:27  2019-06-21 20:17:27  data                                              ./jmods/java.management.jmod
    30    821.559K  2019-06-21 20:17:28  2019-06-21 20:17:28  Zip archive data, at least v1.0 to extract        ./demo/jfc/J2Ddemo/src.zip
    

    용법

    Usage: fsize [-r] [-n num] [-h] [directory]
     -n, --num=N    Set number of files displayed
     -r, --reverse  Show files in ascending order
     -h, --help     Show help and exit
    

    좋은 웹페이지 즐겨찾기