Find files that are too big for GitHub


Command explanation

  • Find
    • in current directory
    • files bigger than 50 MB, (100Mb is too big for GitHub)
    • edited within 365 days
    • the type will be a file
  • execute list files
    • list format
    • human readable
    • sort by Size (not working)





$ find . -size +50M -mtime +365 -type f -exec ls -lhS {} \;



-rw-r--r--@ 1 uki  admin    49M Nov  6  2016 ./Coursera/UW/ML/Week3/amazon_baby.gl/m_bfaa91c17752f745.0000
-rw-r--r--@ 1 uki  admin    69M Nov  6  2016 ./Coursera/UW/ML/Week4/people_wiki.gl/m_4549381c276b46c6.0000
-rw-r--r--@ 1 uki  admin    60M Nov  6  2016 ./Coursera/UW/ML/Week5/song_data.gl/m_cccc16853452d1ed.0000
-rw-r--r--@ 1 uki  admin    63M Nov  6  2016 ./Coursera/UW/ML/Week6/image_test_data/m_e16f5ffd2c088370.0000

-rw-r--r--@ 1 uki  admin    31M Nov  6  2016 ./Coursera/UW/ML/Week6/image_train_data/m_504edbda459b24ff.0000


No comments:

Post a Comment