Using Terminal to Find Large Files and Folders

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 43

  • @djdawso
    @djdawso 2 года назад +3

    Lots of good info here, Gary! One little note, however - I've always thought "du" stood for "disk usage", which seems to be what the man page for that command suggests, and it makes it a little easier to remember its function.

    • @donmoemu
      @donmoemu 2 года назад

      Yeah that makes sense "display disk usage statistics". ... Nice catch

  • @harryhellerman474
    @harryhellerman474 2 года назад +2

    I really enjoy the terminal vids.

  • @Billy123bobzzz
    @Billy123bobzzz 2 года назад +1

    Excellent Job! Very useful, well explained and very clear.

  • @johnweiner
    @johnweiner 2 года назад

    Great video...very useful! find, ls, sort,du have so many options that it is easy to get lost...your explanation clears out a lot of the underbrush.

  • @johnnywrjackson
    @johnnywrjackson 2 года назад +1

    More terminal stuff!

  • @rdfuhr
    @rdfuhr 2 года назад +1

    These commands are quite useful. If you have trouble remembering the exact syntax of a command that you would like to use frequently, you can make an alias for it.

  • @loisskiathitis8926
    @loisskiathitis8926 2 года назад +2

    Thank you, Gary! 👏🏻👍❤️

  • @Profexxx
    @Profexxx 2 года назад +1

    This is way simpler than using third party apps. Sometimes you just need to quickly inventory a location and This does the job splendidly.

  • @donmoemu
    @donmoemu 2 года назад

    Thanks Gary! This is extremely helpful

  • @johnweiner
    @johnweiner 2 года назад

    Hi Gary...I think the following sequence would also work, "find . -size +200k (or whatever) | xargs du -h --si | sort -hr". Essentially, using xargs instead of --exec.

  • @Mega_Casual
    @Mega_Casual 2 года назад

    Here is a variant of what Gary already showed us. This could be added as an alias so you don't have to remember all the syntax by opening ~/.bash_profile with "sudo nano .bash_profile"
    Then add this line, [ alias fsize='clear ; cd ~/ ; du -sh *|sort -hr;echo ------;du -sh' ] Without the brackets. It adds a grand total of folder sizes at the end and clears the screen first.

  • @prantibarua
    @prantibarua 2 года назад

    Got my problem solved, thanks for the tutorial:3

  • @desertpatient
    @desertpatient 2 года назад

    Thanks bunches

  • @salconw
    @salconw 2 года назад

    Amazing. Thank you so much for this.

  • @mojoblues66
    @mojoblues66 2 года назад

    I smell the spirit of UNIX!

  • @thomaskehl69
    @thomaskehl69 2 года назад

    great video, thank you !

  • @rosbiffy
    @rosbiffy 2 года назад

    So much here! Is there a way to learn how to use Terminal to this level?

    • @macmost
      @macmost  2 года назад

      Just keep reading, watching videos, etc. Check out ruclips.net/video/GZyqkGRnKSQ/видео.html next.

  • @QuickStartUkulele
    @QuickStartUkulele 2 года назад

    Great Job Gary. I have an illustator "Myastery file" that I can't trash. (-50 Error) I updated OSX and it still remains on dsesktop. Took it to Apple and only got shrugs. It was like Garlic to a Vampire. Is this something that can be found with this terminal tutorial?

  • @sauravmisraz
    @sauravmisraz 2 года назад

    Completely offtopic question but urgently help needed so commenting here in the new video. How to see the entire menubar on m1 pro? Actually thr notch is appearing and hiding few app icons. And weirdly 1 app only responding if i click it on menubar, but not from dock and application folder. How to fix the app?

    • @macmost
      @macmost  2 года назад +1

      In the future, you can use macmost.com/ask for questions. But keep in mind if it is "urgent" then you should probably call tech support and not ask someone like me. I'm not sure what you are experiencing here. You don't mention which app. Perhaps a bug with that app? If you have too many menu bar icons to fit, notch or no notch, then consider removing some of the ones you don't need.

  • @pedropuckerstein4670
    @pedropuckerstein4670 2 года назад

    Your UNIX shell command knowledge is quite impressive. Piping, teeing, tail, grep, awk, sed, cat>>, etc. you know your stuff - for me I cannot drag a folder from finder to a terminal prompt, as I get "permission denied". Not clear why. I wish there were a right click option in finder to open a terminal session at said location, I suspect I could create an apple script etc. to do that. I'm running Catalina. Obviously I have some sort of permissions challenge maybe z shell related.

    • @macmost
      @macmost  2 года назад

      Perhaps try different folders in different locations to see if that is the problem? I've never seen an issue with the drag and drop like that.

    • @pedropuckerstein4670
      @pedropuckerstein4670 2 года назад

      @@macmost :), yes, I tried many folders including the root of the volume I want which is my external HD. in the info panel for under sharing and permissions, system and wheel have read and write. I added my specific login name and provisioned read and write, still no go. I boot off of the internal SSD and even dragging a file from the SSD, I get the same message. Probably not worth pursuing and definitely not worth a call to Apple support .... as they rarely provide support for extraordinary issues. Old school unix experts are all retired :)

  • @frost7934
    @frost7934 2 года назад

    Hi I have a problem that I've been trying to fix. You see whenever I try to download something it never ends up in my recents. I even went on my browser to change where the files I download end up and then i realized i cant even choose recents as a location. I've been trying my hardest to change this but nothing is working and I can't find any information online. Any help is much appreciated.

  • @Profexxx
    @Profexxx 2 года назад +1

    Is there a way to find duplicates through terminal? Same size or same name?
    (or same content?!)

    • @macmost
      @macmost  2 года назад +1

      I've never tried that. If you search, you'll find some complicated Terminal commands for it, but comments suggest mixed results. If your goal is to find large files that are duplicates, maybe just do a Finder search, only for files above a certain size, then sort by size. Then look through the list to spot those with the exact same size and name. Then investigate each pair you find to make sure you don't delete anything you need.

    • @peterrenzland1514
      @peterrenzland1514 2 года назад

      @@macmost You could sort by size, pipe through uniq -c, and then send the duplicates through cmp, to find files with same content but different name. Similarly, to locate possible versions of files with very similar names, check out the basename command. If you have plain old text files that are mostly the same, the diff command can be useful. :-)

  • @germainegagnon7995
    @germainegagnon7995 2 года назад

    Are we going back to DOS?

  • @oakbarrelcafe
    @oakbarrelcafe 2 года назад

    Lately I have been getting this "Without the owner password, you do not have permission to create or modify annotations in the document" when I try to add note on bank statement. Banks says they do not have any password protection. would you please address this, I have seen lots of people have same problem

    • @macmost
      @macmost  2 года назад

      Which app are you working in when this happens?

    • @oakbarrelcafe
      @oakbarrelcafe 2 года назад

      @@macmost Preview does not give me an option to "Export as PDF" it is greyed out. However, I do export it in other ways, (twice) but the warning does not go away

    • @macmost
      @macmost  2 года назад

      @@oakbarrelcafe Oh, so this was a PDF provided by your bank and you are trying to edit it in Preview? (I couldn't have guessed that from your original question, especially since this is a video about using the Terminal). So it sounds like the PDFs from your bank are protected and you can't annotate them. You can try printing it, then choosing PDF, save as PDF. But if that doesn't work there's nothing you can do except have the bank provide you with a non-protected PDF file.

    • @oakbarrelcafe
      @oakbarrelcafe 2 года назад

      @@macmost You mean print and scan it?

    • @macmost
      @macmost  2 года назад

      @@oakbarrelcafe No. Choose File, Print. Click the PDF button. Choose Save As PDF. If that works you'd have a copy that is not protected.

  • @cassiogoulart2559
    @cassiogoulart2559 2 года назад

    Hi, I really like your videos. I bought my first MacBook and I’m coming from Windows and your videos are really helping. If you can, I would like to see a video that explains about Mac display resolutions. Not the settings (witch I know, even the hided menus with the option key) but how the system works with 4k Displays. I have a Samsung 4k display and I’m not sure if I’m running 4k. Let me explain, in the system information it describes my monitor like: Resolution: 5120 x 2880 (5K/UHD+ - Ultra High Definition Plus) / / UI Looks like: 2560 x 1440 @ 30.00Hz. Is my display getting full 4k resolution? The system is just downscaling the size of the windows and menus but I’m getting all the pixels? Is the system running low a low resolution but when I put a video on it upscale to 4k? Why buy a 4k monitor if MacOS is just going to downscale? It is very confusing to know if I’m running 4k with just a size diference or if the display is at a low resolution as a whole. Thanks!

    • @macmost
      @macmost  2 года назад +3

      4K is a specific width and height in pixels. It is exactly 3840x2160. That's 4K. Your an only get exactly 4K if you buy a screen that its 3840x2160. Looks like you bought a display that is 5120x2880. That's not 4K. That's actually MORE than 4K. It is actually what is commonly called "5K." Using as "looks like 2560x1440" is probably the best way to use it. This gives you the equivalent to how a native Mac display, like one on an iMac or MacBook would use it. 1 dot is actually 4 pixels on the screen. Apple calls this "retina" and others call it UHD. It is pretty much how most people use screens today. When you play video in a window that is exactly 1920x1080 you are seeing 3840x2160 pixels. You would still have some screen space left since your screen is 5120x2880. But if you made it full screen it may look even better, depending on a number of factors. Try it and judge for yourself. See ruclips.net/video/wjd-I_gs9IE/видео.html at around 4:00

    • @cassiogoulart2559
      @cassiogoulart2559 2 года назад

      @@macmost Thanks very much for taking the time to reply! I relay appreciate the teaching. I'll keep watching the videos to improve my skills on MacOS.

  • @rawstarmusic
    @rawstarmusic 2 года назад

    How to empty the bin from a 7 GB OS installation file?? It says it can't be emptied because it is being used. It is a file I copied to use on another older computer, not my MB Air with latest OS. I read and try everything. It denies to empty, How do I do???

    • @macmost
      @macmost  2 года назад

      Quit the app that is using it. If you don't know which, make a guess and try again. Quit all apps if need be. Restart if you need to.

    • @rawstarmusic
      @rawstarmusic 2 года назад

      @@macmost It is like an installation image to copy over and install elsewhere. No app is using the install-image. No app running. Restarted many times and it's been there for months. I am out of ideas really I try to ask on

    • @macmost
      @macmost  2 года назад +1

      @@rawstarmusic Have you tried to force-empty the trash? Have you tried restarting in Safe Mode and emptying the trash? Have you tried changing the permissions for the file? Have you tried deleting the file using Terminal?