Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

terminal commands

  1. hewhore

    Terminal not showing progress of external drive encryption

    I recently saved about 650GB of data on to an external HDD, formatted as MacOS Extended (Journaled), then decided to encrypt it. It started at about 18:00 yesterday, and today, at 10:35 it is still going. The only information in Finder is 'Encrypting' (greyed out). The following Terminal entry...
  2. RazorBackXX

    Terminal Command For Quickview Loop?

    is there a terminal command to loop every single video that I press spacebar on to open in quicklook? I dont want to download FFMEG, I know the Mac can do things on its own for example. I used chatgtp to write me a code to separate all my videos in landscape & portrait since Mac doesn't have a...
  3. RazorBackXX

    How To Delete A Home Folder With Terminal or Other Option?

    hey my friends, I recently made a account for my girlfriend so she could do some organizing. (using a tiny SE wasn't cutting it) & after she was finished I deleted her account. I made sure to select the (Delete home folder options as well) & her folder is still there. I have tried deleting it &...
  4. RazorBackXX

    How to Keep Folders in Dock From Moving?

    hey my friends, I have the main Mac folders in the dock. documents, photos, videos, downloads, music ect. I want them to stay put. I don't want them to move. I love dragging & dropping files into my dock. but when I hover over the dock folders it tries to put the file aka a photo or video in the...
  5. Alvin777

    Any Terminal Command to Make Music iPhone Sync/Backup Default to 'Backup All iPhone Data to the Mac'?

    Hello Mac friends, any Terminal command (Sonoma changed the default to backup the iPhone not on the Mac but on the iCloud) to default to back up to Mac? Thank you.
  6. Alvin777

    Terminal Command for macOS to Automatically Delete Old Snapshots from Time Machine When it Sees It'll Run Out of Space

    Hello Mac friends. Time Machine at least on macOS Sonoma seems to just backup mindlessly until the Time Machine disk is full. Is there a good Terminal command or series of Terminal commands that could be set permanently by macOS to delete Time Machine's old backups (just the right amount) to...
  7. A

    How Can I Fix The Terminal?

    Hello, I had some trouble trying to install homebrew on my computer, now whenever I open the terminal I get this: Any ideas on how I can solve it? Thank you.
  8. A

    How to format multiple USB flash drives

    Hi everyone, I have the following question and I hope there is a way (or some software) to do this: I would like to format and name 10 USB flash drives (connected through a USB hub) that came right out of the package into ''OS X Extended Journaled'' and ''GUID Partition scheme'' with the name...
  9. L

    Is it possible to stop Terminal from running a specific command on MacOS?

    I'm looking for a way to stop a specific command from being ran on MacOS's terminal, or if that's not possible lock it (either with a different password than the admin/user password, or time lock it) before running - is that possible? Basically looking to block social media from my life, but...
  10. C

    macOS How to copy a file to multiple folders at the same time (the folders are numbered sequentially)

    Hello, I need to automate copy/moving a single file to multiple folders at once. The folders will be numbered sequentially (1000-1050, for example). I can copy/move the file to one folder at a time using cp example.jpg 1000. How do I copy/move it to say, 1000 through 1050? There will be a...
  11. D

    Tracking what wakes mac

    Hello! My Mac Studio randomly wakes from sleep. How can I track down WHAT makes it wake up? Yes, I have disabled "wake on network access" before anyone asks. Is there a command that I can type into Terminal to ask "mac, tell me what has awoken you from your slumber"? I have Office and Adobe CC...
  12. B

    iCloud Error -36 on icloud drive files, dot_clean not working

    Hi y’all, I’m having this incredibly frustrating issue with my mac that I just cant seem to figure out. I have an m1 2020 Mac mini running Monterey 12.6.2. I have iCloud syncing my mac mini and my macbook; specifically the Documents, Desktop and Application folders. As of a few months ago, I...
  13. PowerPCFan

    Helpful Terminal Command

    I bet most of you knew this but if you didn't, typing this turns off indexing: sudo mdutil -i off /Volumes/drivename (replace drivename with your hard drive name, or drag hard drive icon to Terminal) It can be really helpful if your PPC machine is lagging after installing a new OS, or after...
  14. blackxacto

    What is a "document editor" in Monterey terminal?

    I am not a programer, but I have used Terminal to do many simple things in the past, mostly paste in a command someone else has written, trusting the source. I have used Terminal in the past to modify a fusion drive. There are much fewer ways to change the interface, etc, than used to be. I want...
  15. T

    using ioreg to determine iMac LCD Panel Model

    Hello, I have a 2015 retina iMac that I'd like to convert to a 5k display (like Luke Miani: ). Since I have the iMac display already, it is less expensive to convert it to a 5k display than buying a 5k studio display. I have successfully opened up iMacs (pre-retina) before to do HDD / SSD swaps...
  16. DominikHoffmann

    Terminal: ctime flag in find not working as expected

    find ~/Downloads -ctime +14 | more produces no output. I clearly have files older than 14 days in my Downloads folder. What could be going on? I have had code using this snippet running in a cron job and migrated it into a launchd user agent. It doesn’t work as part of that, but it also doesn’t...
  17. N

    "no valid sudoers sources found quitting"

    Hello, every time i try a sudo command in Terminal on Mac OS Mojave, i get : - sudo: no valid sudoers sources found, quitting - sudo: unable to initialize policy plugin I'm on the admin user called "Noa" but but the name of the macbook is in the name of sam. When I open terminal I directly...
  18. J

    macOS Commands Caching-Server

    Hi, I try to use to turn on the LogClientIdentity-Setting on macOS-Caching like https://support.apple.com/de-de/guide/mac-help/mchl91e7141a/mac Is that this command? $ sudo -u _assetcache defaults write /Library/Preferences/com.apple.AssetCache.plist LogClientIdentity -string true But it...
  19. A

    UNABLE TO MOUNT WD MY PASSPORT 4TB EVEN AFTER FORMATTING IT TO EX-FAT. TRIED EVERYTHING. (ON M1 MacbookAir))

    Here's everything I've tried. 1) Since my Samsung T5 SSD is in Ex-fat format and seems to work properly. I backed up 3TB data and then formatted it to ex-Fat and moved the data back. It still doesn't seem to work. 2) I've tried using WD discovery to mount. It just doesn't work. Not even an...
  20. veddabredda

    Remove native spell check altogether on Big Sur?

    I just want spell check to be off for every text field ever please. I use English and Icelandic to a pretty equal amount and whenever I type in my own native language Big Sur thinks I've lost my mind. I cannot stand those red squiggly lines and I want them gone for good. I have turned it off...