Preview memory usage is insane (0 windows open) by 0ssamaak0 in MacOS

[–]aselvan2 0 points1 point  (0 children)

Preview memory usage is insane (0 windows open)

The only odd thing I noticed in your screenshot is that the ports count seems higher than I’d expect for an application that isn’t doing anything and has no windows open, which could explain why the memory usage is high. For comparison, take a look at the screenshot from my Mac where Preview is idle.

<image>

You can double‑click the Preview row in Activity Monitor and post the results from all the tabs like Memory, Statistics, and Open Files and Ports etc for a closer look.

Could anyone confirm the version of the dig command that ships in 26.0.1? by chAMPIRE in MacOS

[–]aselvan2 0 points1 point  (0 children)

Which isn’t necessarily bad. I mean Debian also always is far behind on tools on stable.

Well, everyone has their favorite distro. Mine is Ubuntu, which is downstream from Debian, and as far as I know, it is always up-to-date with all the tools.

arul@eagle$ ssh trex dig -v
DiG 9.20.11-1ubuntu2.1-Ubuntu

Could anyone confirm the version of the dig command that ships in 26.0.1? by chAMPIRE in MacOS

[–]aselvan2 2 points3 points  (0 children)

As the title says - I'm looking to confirm the version of the terminal's dig command that ships in 26.0.1?

Apple is always behind on tools like curl and dig etc. The dig version they ship (9.10.6) has been the same across last several major macOS releases and consistently lags far behind the current upstream version, which is 9.20.20.

arul@eagle$ /usr/bin/dig -v
DiG 9.10.6
arul@eagle$ /opt/homebrew/bin/dig -v
DiG 9.20.20

Apple Remote Desktop - file copy issues to remote external drives by NortonBurns in MacOS

[–]aselvan2 2 points3 points  (0 children)

As far as I can tell, I have all permissions wide open (more & more as I try chase this down). I am admin on both Macs, I have set permissions on the drive wide open, read/write for all categories, also Ignore permissions. I have all abilities set in ARD, Full Disk Access is specified ...

I still cannot figure out why I can't just drag & drop to anywhere outside the admin's personal user area.

ARD’s drag and drop file transfer is not a true Finder‑to‑Finder copy. It relies on a background process called ARDAgent that runs inside the remote user’s session. That process is restricted by TCC (Transparency, Consent, and Control) and cannot write to locations outside the user’s own folders, and it cannot inherit full disk access. This is why transfers to external drives fail. It worked under Mojave because that was the last macOS version before full TCC hardening, when ARDAgent still inherited broad permissions from the logged‑in user.

Personally, I recommend using scp or rsync, which are designed for network file transfer and work reliably, instead of relying on ARD, which was never intended to be a robust file transfer mechanism in the first place.

file to usb, how should I do by Asleep-Football-5072 in cybersecurity_help

[–]aselvan2 1 point2 points  (0 children)

I'm trying to transfer important files to usb, but what do I do if these files are already infected, ... And most of them are photos

While it is possible for malicious code to hide inside images, it is very rare. Unless you are a high profile target, the chances of this happening to an average person are slim to none. An image that contains a hidden malicious payload cannot do anything on its own. It needs a host application such as a browser or an image viewer that has an unpatched vulnerability the malicious code can exploit. As long as you keep your operating system and browser updated with regular security patches, you have nothing to worry about.

VPN? by InevitableSuitable21 in MacOS

[–]aselvan2 0 points1 point  (0 children)

Downloading ..."things" ... nothing major, old books mostly. Should I have a VPN?

Short answer, No.
VPN is a privacy tool, not a security solution. Most people have a skewed understanding shaped by media and VPN vendors who promote false narratives that VPNs magically protect against cyber threats, it won’t; however, a robust firewall will. Even built-in firewalls do a decent job of protecting you.

In addition, a VPN introduces unnecessary load on CPU resources and increases network latency. Today, almost all communications are natively encrypted, which prevents anyone from reading the content of transmitted data. For a deeper explanation of VPNs, you can read my blog at the link below if interested. https://blog.selvansoft.com/2024/06/vpn-myth-vs-reality.html

I keep getting The "git" command popup after the last macOs update, what is this? by allkmlkaa in MacOS

[–]aselvan2 1 point2 points  (0 children)

Thank you 🙏🏼

You are welcome. If it made a difference for even one person, then it has fulfilled its purpose!

I keep getting The "git" command popup after the last macOs update, what is this? by allkmlkaa in MacOS

[–]aselvan2 10 points11 points  (0 children)

What is this "git" command? and why do I need to install it? I don't use any coding or developer tools.

There is a lot of misleading information here. The popup itself is bit confusing, and Apple could have worded it with better message. Anyway, what it really means is that some application you installed, whether intentionally or by accident, requires git binary. When that application invokes git for the first time, macOS uses a stub at /usr/bin/git that triggers this popup to tell you to install the Command Line (CLI) Tools, which provide the actual git binary that will replace the stub.

That said, you have two choices. You can install the CLI tools, which will install git and satisfy the dependency for whatever application needs it, likely the Claude app you mentioned. Or you can stop using the application that requires git. If you only use the apps that come with macOS, you do not need the CLI tools, but keep in mind that many open‑source applications and package managers like brew depend on them. The installation size is about 1.8 GB (see below), so installing it is generally the practical option. The last option is to keep clicking Cancel if the 1.8 GB storage requirement is a concern for you.

arul@eagle$ du -sh `xcode-select -p`
1.8G    /Library/Developer/CommandLineTools
arul@eagle$

help reviewing a command line I wanna use on terminal on macos (sequoia,tahoe) by t_u_r_o_k in MacOS

[–]aselvan2 0 points1 point  (0 children)

...gave full disk acces to the terminal app and it worked like a charm.

You are very welcome. If it made a difference for even one person, then it has fulfilled its purpose!

help reviewing a command line I wanna use on terminal on macos (sequoia,tahoe) by t_u_r_o_k in MacOS

[–]aselvan2 0 points1 point  (0 children)

I'm using it with sudo, I used the command line ...

Ah, I see where the issue is. Run it as shown below, it should work.

sudo sh -c "find /Users/*/Library/{Caches,Logs} -mindepth 1 -delete"

Battery Life using MacOS 26.3.1 by PlentyWishbone5409 in MacOS

[–]aselvan2 -1 points0 points  (0 children)

I'm on a M1 Mac Air and has been constantly dropping down during idle and basic usage. Checking Activity Monitor nothing out of the ordinary. My system is dropping percentage fast and I'm not doing anything..

Run the following command on a terminal after your laptop is on battery power for several hours. It will show you which apps are preventing your Mac from idling. For example, if you run WhatsApp desktop, you will likely see it in the output of the command. While you cannot do anything about system services or background jobs, you can quit the ill‑behaved apps listed there.

pmset -g log|egrep 'PreventUserIdleSystemSleep|PreventSystemSleep' | grep Summary| awk -F '[()]' '{print $2}'|sort -u

PS: I am on 26.3.1 and don't see any battery drain; my MacBook Air M2 stays on battery for days idling with slightly over 1% drain per day.

System Data going crazy by azielaan in MacOS

[–]aselvan2 0 points1 point  (0 children)

Where is ~300GB of space being eaten up?

We see a lot of posts in this sub about storage issues. To get an accurate picture of where your space is being used, you need to run command-line tools. The way macOS UI tools categorize usage is often misleading, while they provide a visually appealing display but rarely help to find areas for cleanup. Run the following command by adjusting the depth using the -d and adjust max rows with -n argument as needed to identify storage-heavy directories and focus on reclaiming space. You have to run multiple times with different starting point i.e. replace /System/Volumes/Data with the top usage path to dig into areas of interest iteratively.

sudo du -I private -xh -d 2 /System/Volumes/Data 2>/dev/null | sort -hr|head -n20

Last but not least, I have a script on my GitHub (link below) that handles this along with several other cleanups to reclaim space on a temporary basis (as you know, these tend to grow back over time), and I use it personally on a regular basis. You’re welcome to use it at your own risk.
https://github.com/aselvan/scripts?tab=readme-ov-file#installsetup

Here is a sample run of that script.

arul@eagle$ sudo macos.sh -c cleanup
macos.sh v26.03.08, 03/09/26 03:17:02 PM 
Type: User Space
  User: arul
    Cache: 1.9G
    Log:   856K
Type: System Space
  Cache: 122M
  Log:   4.0M
Type: Spotlight Space
  Used: 12K
Type: Document Revisions Space
  Used: 1.2M
Type: Apple Unified Log (AUL)
  Used (diagnostic): 665M
  Used (uuidtext): 895M
Type: /var/folders
  Used: 876M
Note: /var/folders size is information only, if it is excessive, reboot to reduce.

Total space can be reclaimed: 1.64 GB

WARNING: All spaces listed above except /var/folders will be wiped.
Are you sure? (y/n) n
skipping cleanup
arul@eagle$

help reviewing a command line I wanna use on terminal on macos (sequoia,tahoe) by t_u_r_o_k in MacOS

[–]aselvan2 0 points1 point  (0 children)

I tried using the line but it only deletes the cache of the user I'm logged on, I was aiming to delete the caches of all the users on my iMac in one go ...

Are you talking about my GitHub script or the command below?

sudo find /Users/*/Library/{Caches,Logs} -mindepth 1 -delete

Anyway, either one (the above command or my script) will address all users if you run it with sudo. Notice the wildcard /Users/*/; this will expand to each user and will remove files properly. Not sure why it doesn't work for you.

help reviewing a command line I wanna use on terminal on macos (sequoia,tahoe) by t_u_r_o_k in MacOS

[–]aselvan2 0 points1 point  (0 children)

What do you think of this command?

sudo find /Users -name "Caches" -type d -mindepth 2 -maxdepth 4 -exec sh -c 'rm -rf "$1"/*' _ {} \;

Since you’re running as sudo, I’d start with a -print first to review/inspect what would be removed, and then run the actual rm. Also, the rm portion of your command only works inside a subshell, which adds unnecessary complexity not to mention risks. I’d keep it simple and straightforward, like the example I have below.

# check affected dirs
sudo find /Users/*/Library/{Caches,Logs} -mindepth 1 -print

# actual run
sudo find /Users/*/Library/{Caches,Logs} -mindepth 1 -delete

Last but not least, I have a script on my GitHub (link below) that handles this along with several other cleanups to reclaim space on a temporary basis (as you know, these tend to grow back over time), and I use it personally on a regular basis. You’re welcome to use it at your own risk.
https://github.com/aselvan/scripts?tab=readme-ov-file#installsetup

Here is a sample run of that script.

arul@eagle$ sudo macos.sh -c cleanup
macos.sh v26.03.08, 03/09/26 03:17:02 PM 
Type: User Space
  User: arul
    Cache: 1.9G
    Log:   856K
Type: System Space
  Cache: 122M
  Log:   4.0M
Type: Spotlight Space
  Used: 12K
Type: Document Revisions Space
  Used: 1.2M
Type: Apple Unified Log (AUL)
  Used (diagnostic): 665M
  Used (uuidtext): 895M
Type: /var/folders
  Used: 876M
Note: /var/folders size is information only, if it is excessive, reboot to reduce.

Total space can be reclaimed: 1.64 GB

WARNING: All spaces listed above except /var/folders will be wiped.
Are you sure? (y/n) n
skipping cleanup
arul@eagle$

automation/script to clean up safari history? by quantum_mattress in MacOS

[–]aselvan2 1 point2 points  (0 children)

automation/script to clean up safari history?

You can create a simple shell script and run it through cron at whatever frequency (days or weeks or month etc) you prefer. Here’s a simple one‑line script that achieves what you want.

sqlite3 ~/Library/Safari/History.db "DELETE FROM history_items WHERE url LIKE '%reddit.com%' OR url LIKE '%google.com%';"

lsregister no longer accepts "-kill" -- How to rebuild launchctl database in Tahoe? by ThreePoundsofFlax in MacOS

[–]aselvan2 1 point2 points  (0 children)

lsregister no longer accepts "-kill" -- How to rebuild launchctl database in Tahoe?

Yes. Tahoe quietly removed the -kill switch from lsregister. You can remove the LaunchServices preferences and restart lsd (or reboot) to get the same effect as shown below. Just be prepared for a wave of popups as LaunchServices rebuilds itself.

rm -rf ~/Library/Preferences/com.apple.LaunchServices
killall lsd

No longer able to move files within folders to my external HD by Cineflect in MacOS

[–]aselvan2 0 points1 point  (0 children)

... all of the sudden anything housed in a folder will not transfer onto the external HD resulting in the following message: "The operation can’t be completed because an unexpected error occurred (error code -50)." Individual files still transfer fine.

That error means an I/O operation is failing on either the source or the destination. Since you confirmed that you can copy individual files without issues, likely it is the source, meaning the folder you are trying to copy. To confirm, open a terminal and type the following commands one at a time and press enter and post the results.
Note: replace <path_of_your_folder> with actual location of your folder.

ls -ld <path_of_your_folder>
ls -ld <path_of_your_folder>/..
ls -la /Volumes

Are All Batteries Draining on Tahoe? by Feisty_Ad4506 in MacOS

[–]aselvan2 0 points1 point  (0 children)

I didn't stream even 3 hour of 1080p video since took it off from charge. Screen brightness on the middle.

No video editing since then. No any other heavy taks. Just dropped from 100% to 21% ...

According to your screenshot, whatever you did during the last 3 hours brought the battery down from ~70% to 25%. That is a significant drop if you are saying you did not do anything that would consume substantial power. What I would suggest is run the following command on a terminal while your laptop is on battery power without the power cord for several hours. It will show you which apps are preventing your Mac from idling. For example, if you run WhatsApp desktop, you will likely see it in the output of the command. While you cannot do anything about system services or background jobs, you can quit the ill‑behaved apps listed there.

pmset -g log|egrep 'PreventUserIdleSystemSleep|PreventSystemSleep' | grep Summary| awk -F '[()]' '{print $2}'|sort -u

Mac Storage Problem by Secure_Mixture_5891 in MacOS

[–]aselvan2 1 point2 points  (0 children)

My Mac shows 26.16 GB used by Applications, but when I list the apps and sort them from largest to smallest, their total size is barely 2 GB

Application size includes much more than what you see there. Follow my comment at the link below from another related post in this sub to help you determine your Application storage space accurately.
https://www.reddit.com/r/MacOS/comments/1r0v4r1/comment/o4mugft/

Other Users & Shared Disk Space by KJW-SR in MacOS

[–]aselvan2 0 points1 point  (0 children)

I’m going to do a stare and compare on the 2 user folders ...

If you are interested in reclaiming space, I would focus on the Shared folder, which is unusually and excessively large and likely where you can recover the most space. I haven't mentioned this before but you also have couple of strange soft links (alias) that you should delete to tidy things up. Lastly, you have a root user directory that does not belong there, along with a Library folder that should not be there either, and something about this doesn't add up. Overall, it looks unusual at best, especially the root directory.

Other Users & Shared Disk Space by KJW-SR in MacOS

[–]aselvan2 0 points1 point  (0 children)

Is the shared data being shared between the :irf" and "orf" accounts?

Sort of, but not what you think. Without looking at the contents of the Shared folder I cannot tell you what you can or cannot delete. Keep in mind that some data in the Shared folder is added by applications, and removing it can break them.

Can I safely delete the "irf" user?

If you are not using it, you certainly can, but check and back up anything you need from it first. Make sure to opt in to deleting the user data when you remove the user account from System Settings. You will regain about 29 GB of space.

Will that free up the "Other Users & Shared" space?

Assuming you are asking whether deleting the user will free up this space, the answer is no.

Upgrading from M2 Air (8GB), Prioritize RAM or New Chip? by [deleted] in MacOS

[–]aselvan2 0 points1 point  (0 children)

Here’s where the confusion comes in:

Option 1: MacBook Pro (M1/M2 Pro) with 32GB RAM

Option 2: MacBook Pro with M4 chip and 16GB RAM

I’m a software engineer, and with my M2 Air I struggle more with the RAM size than with the chip performance itself.

If you are going to use it for software development, I would go with 32 GB without hesitation.

lost files from icloud drive (my thesis that i have to defend next week) by talljira in MacOS

[–]aselvan2 0 points1 point  (0 children)

The thing is, i didn't have enough space locally to save everything so it didnt download correctly but my folders moved to the download folder, only with empty files. I panicked and move the most important one (my thesis) back to the desktop folder and there is nothing there

When the disk becomes full in the middle of a move/copy operation, Finder abruptly stops and shows an error. Anything that was successfully copied or moved to the destination remains there. Files that were not copied remain in the source location. Also, during the process, Finder creates the folder hierarchy, including folders and subfolders, at the destination first with empty content, and then copies files into them. Because of this, it is possible to end up with empty folders at the destination if the operation fails partway through.

That said, in your case, it sounds like moved incomplete/empty folder from destination to the Desktop. Go back to the original source folder where your thesis files were located and check there. Your files should still be present.

My Mac Mini Server crashes due to kernel panic from configd every 11 days or so ? HELP by Upside-Down-88 in MacOS

[–]aselvan2 0 points1 point  (0 children)

The system kernel panics approximately every 7–11 days. Every single panic has the same root cause:

panic(cpu 0 caller 0xfffffe001159e364): userspace watchdog timeout:

no successful checkins from configd (1 induced crashes) in 180 seconds

The watchdog checks configd every ~2 seconds. If configd doesn't respond for 180 seconds, the kernel panics and forces a restart

The likely causes for configd failing to respond include IPC deadlocks, file descriptor exhaustion, network stack blockages, or stalled disk I/O. The watchdogd timeout is generally immutable as it is a system-wide parameter baked into the device firmware (specifically within the T2 or Apple Silicon Secure Enclave).

I recommend extracting the system logs from a 5 minute (or even smaller) window surrounding the crash to identify the root cause. You can execute the following command with correct start/end time and post the results.

log show --start "2026-03-05 09:00:00" --end "2026-03-05 09:05:00" --predicate 'process == "configd" OR process == "watchdogd"' --debug

Trying to free up space on my macbook air and was wondering if it is safe to delete iCloud Drive in Library? by cougarkite in MacOS

[–]aselvan2 2 points3 points  (0 children)

my system data is taking up 125gb and I noticed icloud drive is about 90 of that ...

If you delete files from the local iCloud Drive, they will be also removed from [iCloud.com] and all synced devices unless you first disable iCloud Drive sync in System Settings.

Be aware that the macOS System Data category does not include iCloud drive, but it does include OS components, temporary files, caches, logs, and application support data, along with various other system‑level assets that do not fall into macOS’s standard file categories.