Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
0
votes
1
answers
68
views
How to interpret reported file sizes from dd?
System: iMac M4, Sequoia 15.6 I found various suggestions for quick ways to create a large file for testing purposes. What I don't understand is what `dd` actually produces. Example: dd if=/dev/urandom of=bar.txt bs=1g count=10 seek=100 Finder window says "bar.txt 118.11 GB" . But the GetInfo window...
System: iMac M4, Sequoia 15.6
I found various suggestions for quick ways to create a large file for testing purposes. What I don't understand is what
dd
actually produces. Example:
dd if=/dev/urandom of=bar.txt bs=1g count=10 seek=100
Finder window says "bar.txt 118.11 GB" . But the GetInfo window says
"size 118,111,600,640 bytes (10.75 GB on disk) "
Further, the GetInfo window for "Macintosh HD" seems to agree with the smaller value so far as disk space used vs. free is concerned.
I'm guessing that my inexperience with dd
means I'm not using bs
and seek
correctly? If so, what are a set of compatible args to use so the output file has a reliable size reported?
As a side note, mkfile 10g fmkfile.txt
produces a file that both Finder and GetInfo agree is 10.74 GB.
Carl Witthoft
(374 rep)
Aug 4, 2025, 01:15 PM
• Last activity: Aug 4, 2025, 01:55 PM
1
votes
1
answers
970
views
XQuartz, utf-8 and filenames
This is a question in the continuation of this one: [UTF8 filenames and shell utilities][1]: the nightmare of utf-8 and filenames is…. How to avoid this confusion with most notably the `ls` command on filnames created in the following way: $ echo $LANG en_US.UTF-8 $ mkdir test $ cd test $ touch ...
This is a question in the continuation of this one:
UTF8 filenames and shell utilities :
the nightmare of utf-8 and filenames is….
How to avoid this confusion with most notably the
ls
command on filnames created in the following way:
$ echo $LANG
en_US.UTF-8
$ mkdir test
$ cd test
$ touch á
$ touch a´
$
The first file is created by typing alt ⌥+E, A, the second one by typing A, alt ⌥+shift ⇧+E
Within an xterm
window I get:
$ ls -al
total 0
drwxr-xr-x 2 hal admin 136 Nov 11 15:52 .
drwxr-x--- 7 hal admin 4386 Nov 11 14:25 ..
-rw-r--r-- 1 hal admin 0 Nov 11 15:52 a´
-rw-r--r-- 1 hal admin 0 Nov 11 15:48 a´
$
Which is wrong.
Within a Terminal
window I get:
$ ls -al
total 0
drwxr-xr-x 2 hal admin 136 Nov 11 15:52 .
drwxr-x--- 7 hal admin 4386 Nov 11 14:25 ..
-rw-r--r-- 1 hal admin 0 Nov 11 15:52 a´
-rw-r--r-- 1 hal admin 0 Nov 11 15:48 á
$
Which is right.
The result is the same whichever shell I use: bash
or zsh
.
What xterm
or XQuartz
setting will avoid these 2 filenames to falsely look the same?
This problem doesn't exist on Mavericks (MacOS X 10.9).
athena
(12598 rep)
Nov 11, 2013, 03:43 PM
• Last activity: Jun 23, 2025, 02:09 AM
9
votes
8
answers
16467
views
How to force Finder to update file thumbnails?
Recently I updated album covers in most of my mp3s, but their respective thumbnails on Finder did not get updated. Things I tried: - Removed (rm ~/Library/Preferences/com.apple.finder.plist) without solving the issue at all - "touch"(ed) the files, which refreshed some - not all - the thumbnails Any...
Recently I updated album covers in most of my mp3s, but their respective thumbnails on Finder did not get updated.
Things I tried:
- Removed (rm ~/Library/Preferences/com.apple.finder.plist) without solving the issue at all
- "touch"(ed) the files, which refreshed some - not all - the thumbnails
Any ideas on how to force a refresh of my mp3 thumbnail icons in Finder?
See the manifestation of this issue below:

Pomario
(179 rep)
Oct 16, 2014, 10:36 AM
• Last activity: Jun 16, 2025, 09:04 AM
3
votes
1
answers
163
views
Bulk copy/export name, Modification & Creation Date from multiple files in a folder
I have a bunch of files inside a folder that I want to get the Date Modified and Created from and copy it into a text document or some kind of tab delimited document. I have no idea how to do this. Opening each one and manually copy/pasting the Creation Date is not an option, as this is hundreds of...
I have a bunch of files inside a folder that I want to get the Date Modified and Created from and copy it into a text document or some kind of tab delimited document. I have no idea how to do this.
Opening each one and manually copy/pasting the Creation Date is not an option, as this is hundreds of files.
Can this operation be automated or scripted?
EDIT: I found that using the following will give me all the various date formats and puts them in a txt file, and all dates preserved:
(stat -f "%N%tAccess:%t%Sa%tModify:%t%Sm%tChange:%t%Sc%tBirth:%t%SB" *)>creation.txt
However, when I then try to copy that information into an excel sheet, even though it keeps the days and times, all the years are changed to 2023.
txt file:
> EXAMPLE.mp3 Access: Dec 9 11:48:21
> 2023 Modify: May 19 21:37:55 2020 Change: Dec 7 19:03:24
> 2023 Birth: Nov 26 06:07:58 2014
Pasted into excel spreadsheet:
> EXAMPLE.mp3 Access: Saturday,
> December 9, 2023 Modify: Friday, May 19, 2023 Change: Thursday,
> December 7, 2023 Birth: Sunday, November 26, 2023
GodzFire
(61 rep)
Dec 4, 2023, 01:29 AM
• Last activity: Jun 2, 2025, 12:03 PM
484
votes
7
answers
704913
views
How can I create a symbolic link in Terminal?
What command is used to create a symbolic link/soft link?
What command is used to create a symbolic link/soft link?
Patrick
(4849 rep)
Dec 31, 2013, 05:49 PM
• Last activity: May 21, 2025, 11:09 AM
4
votes
1
answers
7570
views
How to stop constant re-upload/re-download of my iCloud files?
I recently acquired a MacBook Pro (Retina), OS Monterey, and turned iCloud syncing on for Documents and Desktop. It had downloaded (made local copies) more than 200GB of files from my iCloud, then auto-deleted half of them (locally), "Optimise storage" is checked. After about a day, it started a dow...
I recently acquired a MacBook Pro (Retina), OS Monterey, and turned iCloud syncing on for Documents and Desktop. It had downloaded (made local copies) more than 200GB of files from my iCloud, then auto-deleted half of them (locally), "Optimise storage" is checked.
After about a day, it started a download of that large amount of files again, it took nearly 5 hours, although I hadn't clicked the download or remove download button near the files. It repeated; it happens once in about +/- 5 days plus the total size of files being downloaded is always different. The cache which is created by this process can be as large as I have 1 GB of the local storage remaining (totally I have 255 GB). The button X near the progress of download isn't clickable. I want to keep important files locally and download any other ones if they are needed.
In another thread someone suggested using this command
killall bird && rm -rf CloudDocs
, after removing them, it just starts re-uploading and re-downloading all possible files, which takes much time. Please tell me how to get rid of this auto re-download/upload, it is a useless process that eats system resources.

George
(41 rep)
Apr 14, 2022, 12:42 PM
• Last activity: May 14, 2025, 07:08 AM
0
votes
1
answers
166
views
Shortcuts: saving photos as files?
My shortcut for doing so where I just have a block "Save Photos as files" stopped working in iOS 18. I want to save photos in the files app in any selected directory.[![enter image description here][1]][1] [1]: https://i.sstatic.net/2fCc22pM.png
My shortcut for doing so where I just have a block "Save Photos as files" stopped working in iOS 18. I want to save photos in the files app in any selected directory.

Oneechan69
(249 rep)
Dec 12, 2024, 10:28 AM
• Last activity: May 12, 2025, 03:07 AM
1
votes
0
answers
137
views
How can I tell Gatekeeper not to check (downloaded) files with a specific extension?
Since the upgrade to macOS 15.4, I've noticed that every time I try to open a [Lilypond](https://lilypond.org/) file, Gatekeeper blocks me from doing so: [![screenshot of dialog][1]][1] > Apple could not verify "EL 38 1.ly" is free of malware that may harm your Mac or compromise your privacy. Thanks...
Since the upgrade to macOS 15.4, I've noticed that every time I try to open a [Lilypond](https://lilypond.org/) file, Gatekeeper blocks me from doing so:
> Apple could not verify "EL 38 1.ly" is free of malware that may harm your Mac or compromise your privacy.
Thanks to e.g. [this answer](https://discussions.apple.com/thread/255852595?answerId=260941200022&sortBy=rank#260941200022) I know I can fix this via System Settings → Privacy & Security and scrolling down to the Security area. However, I have to do that every time I open a new Lilypond file, which is rather annoying. Is there a way I can tell Gatekeeper to ignore files with the

.ly
extension?
I have already set BBEdit as the default app to open .ly
files. Right-clicking the file and choosing Open With → BBEdit.app gives the same dialog. ls
gives the following information:
% ls -@l ~/Downloads/EL21.ly
-rw-r--r--@ 1 Glorfindel staff 3314 May 11 20:08 /Users/Glorfindel/Downloads/EL21.ly
com.apple.metadata:kMDItemWhereFroms 181
com.apple.quarantine 57
If I then do
cat EL21.ly > test.ly
the test.ly
file opens without problems, so it seems related to the file being downloaded.
Glorfindel
(4228 rep)
May 11, 2025, 10:51 AM
• Last activity: May 11, 2025, 06:10 PM
2
votes
1
answers
147
views
Error code -36 when trying to copy a .WPS file from an old floppy disk to my MacBook Pro
I am trying to copy a .WPS file from an old floppy disk to my MacBook Pro. I am using a Tendak USB Floppy Disk Drive (https://smile.amazon.com/dp/B01NCV01GY?psc=1&ref=ppx_yo2ov_dt_b_product_details). The MacBook Pro recognizes the disk and I can see the .WPS file. In Finder, I tried to copy the file...
I am trying to copy a .WPS file from an old floppy disk to my MacBook Pro. I am using a Tendak USB Floppy Disk Drive (https://smile.amazon.com/dp/B01NCV01GY?psc=1&ref=ppx_yo2ov_dt_b_product_details) .
The MacBook Pro recognizes the disk and I can see the .WPS file. In Finder, I tried to copy the file into my Downloads folder. It begins copying (I can hear the disk whirring, etc.) and after about 30 seconds (it varies), an error pops up:
"The Finder can't complete the operation because some data in "filename.WPS" can't be read or written.
(Error code -36)"
I can open the (partially) copied file in TextEdit and I can see portions of the text, but not the complete file. It seems highly variable what, if anything is copied. Sometimes nothing is copied. Sometimes entire paragraphs are copied. Sometimes paragraphs are copied twice or out of order. In addition, it appears that some paragraphs are copied incorrectly into random characters.
Has anyone experienced this before? I guess the problem could be in the floppy disk itself, in the Tendak drive I bought, or in the copy command. If it's in the copy command, is there a way to force the copy to proceed despite any errors it encounters? If it's in the floppy disk or the drive, does anyone have any solutions?
Also, when I try to open the .WPS file on the floppy disk directly into TextEdit, it gives an error and says it can't be opened.
All I want is the text in the .WPS file. The copied file doesn't have to be .WPS.
Reed Brown
(21 rep)
Dec 22, 2022, 06:17 AM
• Last activity: May 10, 2025, 10:03 PM
34
votes
3
answers
77197
views
How can one save a file as plain text in TextEdit?
I'm not seeing an option to choose plain text encoding (.TXT extension) when saving a file in TextEdit.app in macOS. My documents seem to all be rtf - rich text format. How can I change this?
I'm not seeing an option to choose plain text encoding (.TXT extension) when saving a file in TextEdit.app in macOS. My documents seem to all be rtf - rich text format.
How can I change this?
nylypej
(970 rep)
Nov 11, 2018, 04:32 PM
• Last activity: May 9, 2025, 12:59 PM
3
votes
1
answers
1864
views
How to rename multiple files & filepaths at once on Mac without Terminal
Apart from this [topic][1] which offers a small variety of code scripts to use on Terminal, I thought using available apps would be more user-friendly. The Finder in macOS can rename multiple files only if they are under the same directory as described in the "[Rename files, folders, and disks on Ma...
Apart from this topic which offers a small variety of code scripts to use on Terminal, I thought using available apps would be more user-friendly.
The Finder in macOS can rename multiple files only if they are under the same directory as described in the "[Rename files, folders, and disks on Mac](https://support.apple.com/guide/mac-help/rename-files-folders-and-disks-on-mac-mchlp1144/13.0/mac/13.0) " Apple support webpage but I would like to rename files in different directories.
Is this possible without command line skills?
James69
(77 rep)
May 26, 2023, 04:54 PM
• Last activity: Apr 27, 2025, 02:09 AM
3
votes
0
answers
77
views
MacOS Sequoia File Association Issue
Ever since updating to Sequoia, my .cube files come out as "MLUT_File" instead of "DaVinci Resolve Cube LUT (.cube). This makes it impossible to open LUTs with my application of choice. Sample .cube file here [1]. According to Hiren Patel, it may be related to iCloud Universal File Association. http...
Ever since updating to Sequoia, my .cube files come out as "MLUT_File" instead of "DaVinci Resolve Cube LUT (.cube). This makes it impossible to open LUTs with my application of choice.
Sample .cube file here [1] .
According to Hiren Patel, it may be related to iCloud Universal File Association.
https://patelhiren.com/blog/fixing-file-associations-on-macos-sequoia/
I've spent hours trying to force the OS to restore this file association with Terminal and the only quick fix I found is:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
This fix only works until I restart my Mac.
Here's my complete ChatGPT log trying to fix it: https://chatgpt.com/share/67d7b51d-ada0-8008-a21e-171e4d39bbbd
Thank you
Alchemy Color
(31 rep)
Mar 17, 2025, 05:48 AM
320
votes
32
answers
598142
views
How to create a text file in a folder
In windows I right click and then there is an option to create a text file. How to do so in mac?
In windows I right click and then there is an option to create a text file.
How to do so in mac?
user4951
(3751 rep)
Mar 5, 2013, 09:39 AM
• Last activity: Mar 8, 2025, 04:25 PM
1
votes
1
answers
998
views
The document is on a volume that does not support permanent version storage
I have a text file which is located on a NAS storage and this message has come up when trying to save. **The document is on a volume that does not support permanent version storage** It doesn't matter which option I click, I am back to this again. I don't care if it's saved or not. I just want to cl...
I have a text file which is located on a NAS storage and this message has come up when trying to save.
**The document is on a volume that does not support permanent version storage**
It doesn't matter which option I click, I am back to this again. I don't care if it's saved or not. I just want to close this file and this message.

mindlessgreen
(123 rep)
Feb 7, 2025, 11:12 AM
• Last activity: Feb 7, 2025, 09:26 PM
2
votes
2
answers
2840
views
Why did AirDrop change the file time attribute for one of my photos?
I was copying over one of my photos from the Photos app using the AirDrop share option. Once the file copied over to my Mac I was very surprised to notice that the created and modified file time attributes were listed for the time the file was air dropped, not the actual content creation time like s...
I was copying over one of my photos from the Photos app using the AirDrop share option. Once the file copied over to my Mac I was very surprised to notice that the created and modified file time attributes were listed for the time the file was air dropped, not the actual content creation time like seen in the same File Attribute snippet shown below. Did AirDrop modify the file, what's going on here exactly?

jxramos
(1015 rep)
May 15, 2022, 08:11 PM
• Last activity: Jan 24, 2025, 11:55 AM
0
votes
1
answers
381
views
How to synchronize/copy iphone pictures to a linux laptop?
Last year I purchased an iphone 8 which I connect through USB to my Linux laptop (Debian 12 bookworm). Now I need to change it because the screen is broken. Before doing that I would like to save the pictures to my laptop. icloud is not synchronizing because there are to many pictures. How can I syn...
Last year I purchased an iphone 8 which I connect through USB to my Linux laptop (Debian 12 bookworm). Now I need to change it because the screen is broken. Before doing that I would like to save the pictures to my laptop. icloud is not synchronizing because there are to many pictures. How can I synchronize pictures to the Linux laptop?
I can see the device connected in my file browser, but only a very small number of app related data directories appear (see screenshot)
Also
- I suppose the picture directory which should appear as DCIM according to some forums is protected? How to change the iphone restrictions so that pictures are visible from my laptop?
- Should I use one of the many file sharing apps?
- Such as QRCP https://www.makeuseof.com/share-files-linux-android-ios-using-qrcp/
- Should I try to install Itunes on Linux using wine?
- The iphone's directory appears with an "afc://..." address in the file browser. Thanks to [a superuser Q&A](https://superuser.com/questions/1548122/how-can-i-access-afc-ios-files-from-the-ubuntu-terminal) I managed to open it and can see the app directories visible in the screenshot as such
:/run/user/1000/gvfs/afc:host=.......,port=3$ ls
AsheKube.CarnetsSci com.agminstruments.drumpadmachine org.videolan.vlc-ios

Paul Rougieux
(111 rep)
Sep 15, 2023, 04:43 PM
• Last activity: Jan 23, 2025, 03:03 PM
1
votes
1
answers
199
views
How can I transfer files from the Procreate app from one iPad to another?
I recently switched to a new iPad and need to transfer all my artwork from Procreate to the new device. I want to ensure that I don’t lose any files, layers, or custom palettes. Since Procreate doesn’t have built-in cloud sync, I’m unsure of the best way to transfer everything efficiently. Could som...
I recently switched to a new iPad and need to transfer all my artwork from Procreate to the new device. I want to ensure that I don’t lose any files, layers, or custom palettes. Since Procreate doesn’t have built-in cloud sync, I’m unsure of the best way to transfer everything efficiently. Could someone guide me on the easiest and safest way to move my Procreate files?
Iryna Ivanova
(98 rep)
Jan 21, 2025, 02:14 PM
• Last activity: Jan 21, 2025, 03:23 PM
1
votes
1
answers
183
views
How can I compare file attributes?
I have two identical files with different date/time and owner attributes. `diff` does not indicate that they differ. Is there any way to include attributes in the comparison as well? I want to see if the attributes differ.
I have two identical files with different date/time and owner attributes.
diff
does not indicate that they differ. Is there any way to include attributes in the comparison as well? I want to see if the attributes differ.
New to code
(47 rep)
Jan 9, 2025, 09:58 AM
• Last activity: Jan 11, 2025, 08:35 AM
9
votes
2
answers
13100
views
how to do a batch change (shift) of file creation date
OS X Yosemite: I took thousands of pictures on a trip recently, some from my iPhone, and some from my DSLR camera. Now, the iPhone automatically gets its time and date from the local cell towers, but the DSLR stayed set with the time and date of its original configuration. So basically now when I mi...
OS X Yosemite:
I took thousands of pictures on a trip recently, some from my iPhone, and some from my DSLR camera.
Now, the iPhone automatically gets its time and date from the local cell towers, but the DSLR stayed set with the time and date of its original configuration.
So basically now when I mix all the photos together and sort them by time and date, they are all out of order. I would like to view the photos chronologically and to do that I need to shift the date and time of all the DSLR photos by the same (time zone) offset.
So basically, I need a command line or a script that will do something like this:
if filename = DSC_*.*
then creation_date = creation_date + 5 hours
I'm asking this for OS X specifically, but I guess it would be interesting to know how to do this in Windows or Linux as well.
Daniel
(922 rep)
Jul 28, 2015, 09:41 PM
• Last activity: Jan 9, 2025, 11:00 AM
0
votes
0
answers
41
views
Open a VCE file on MacOS (non-US user)
Is there a way to do this on MacOS 15.2? I see a post from [way back in 2012][1] but the linked app is not available in my country (Australia) and it's unclear if the app is still maintained. I have been given a VCE file and i'd like to at least view it if nothing else. So far I haven't been able to...
Is there a way to do this on MacOS 15.2? I see a post from way back in 2012 but the linked app is not available in my country (Australia) and it's unclear if the app is still maintained.
I have been given a VCE file and i'd like to at least view it if nothing else.
So far I haven't been able to find a single app that will open this file.
crmpicco
(1081 rep)
Jan 7, 2025, 01:34 PM
Showing page 1 of 20 total questions