Questions tagged [file]

A resource for storing information which is available for a computer program. Computer files can be considered as the modern counterpart of paper documents.

342
votes
5answers
482k views

How can I create a symbolic link in Terminal?

What command is used to create a symbolic link/soft link?
151
votes
12answers
190k views

Why are dot underscore ._ files created, and how can I avoid them?

I am using different operating systems on different machines on different locations. I am using a USB flash disk to keep my files (source codes etc.). I am new to Mac OS X and now I realize there are ...
117
votes
19answers
246k 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?
101
votes
6answers
339k views

Is it safe to delete ~/Library/Caches?

Is it safe to delete the file Caches, in the Library of the Mac OS X Hard Drive? It's a pretty big file, 3.56 GB, Caches reminds me of logs i don't need or browser cookies. Is it safe to delete the ...
26
votes
2answers
2k views

How did this ominous file end up in my Application Support folder?

Deleting this file will break the whole internets, for the sake of our children don't do it!. The above quotation is the content of a text file called STR8369805638PUB6932583035105 that I found today ...
24
votes
2answers
62k views

How do I create a symbolic link to a directory with a space in it?

I was trying to create a symbolic link using the following command: ln -s "~/Foo Bar/" Foo ... but it didn't work (i.e. when I go into finder and try double clicking it, it says that it's pointing ...
21
votes
1answer
18k views

Is there a similar functionality of “Get Info” (Cmd+I) from the Mac OS X Terminal.app?

I would like to ask if in OS X there is a similar functionality of "Get Info" (Cmd+I) but from the Mac OS X Terminal.app? I mean something like finderGetInfo /path/to/a/file.ext which will output the ...
20
votes
1answer
12k views

Adding tags to files in OS X: How to use, where are tags stored, and will they work on a network?

I've heard it is possible to add tags to a file's meta data in OS X, and have Spotlight search through such tags. In a nutshell, how would one access this feature in Finder – not Spotlight (...
19
votes
1answer
10k views

What is installer.failurerequests in the root directory?

I just noticed a file called installer.failurerequests in my root directory: cd / ls Applications/ User Information@ cores/ installer.failurerequests sbin/ ...
15
votes
2answers
2k views

ZIP files created with GUI have more bytes than ZIP files created in a shell

I created two ZIP files of the same directory. One with the GUI, the other with: $ zip -r alpha_cmd.zip Alpha The Alpha directory is 33.640 MB with 164 items. The ZIP file created by the GUI is 2,...
13
votes
9answers
22k views

Finder takes long time to load some folders

When opening some folders, the Finder takes a long time (30-60 seconds) to load all the files in it. Specifically, these folders typically contain 10-50 PHP files (which are text files), each about 10 ...
13
votes
5answers
5k views

Search file duplicates in OSX by hash

I am looking for a way to search for a determinate file in OSX (Maverick but more generally OSX). In particular I would like to do the following: given a File_001 I'd like to search if in the ...
12
votes
3answers
21k views

Can I open a text file in Preview from the Terminal?

I know that I can open a file with an external program from the Terminal with open, and that works for most applications. However, when I try to use a command like open -a Preview info.txt, it ...
12
votes
1answer
4k views

How to use Finder to find all files that do not match a certain criteria?

How can I use Finder's search feature to find all files that do not match a certain criteria? For instance, all files that don't end in ".txt" in the current folder.
12
votes
1answer
898 views

How stop my IDE from showing hidden files on Sierra?

I have disabled hidden files in the Finder on macOS Sierra, but they still show up in my text editors, such as Visual Studio Code, Sublime Text and PhpStorm. I have already tried defaults write com....
12
votes
4answers
10k views

Resume file move after Finder crash (unmoved items appear washed out)

I was moving a large amount of data to an external drive. The Finder crashed (or appeared to restart) in the middle of the operation. Now the files appear as "washed out" in the external drive (...
11
votes
4answers
9k views

File browser with treeview

I am looking for a file browser for Mac OS X 10.10 (Yosemite) with as many following features as possible (approximately ordered by descending importance): has a treeview along with the main pane ...
11
votes
1answer
6k views

Processing videos through iMovie increases file size by 70x

This is just a curiosity of mine. I screen recorded ~5hrs of video using Quicktime, split up into roughly 10-20 minute segments. The folder which I saved them to is 4.73 GB big. However when I string ...
10
votes
9answers
1k views

Trash folder is not emptying because of the P ͎̮͉͍ͨ̈́̾̈́A ͎̮͉͍ͨ̈́̾̈́I ͎̮͉͍ͨ̈́̾̈́N ͎̮͉͍ͨ̈́̾̈́.jpg file

When I cd ~/.Trash in the terminal, it shows that there is a folder Downloads, and inside the Downloads folder, another folder Reactions, and inside Reactions, there is a file called Shutting down ...
10
votes
1answer
2k views

What is the /bin/[ '[' file in OS X?

See the screen shot. There is the '[' file at /bin. What is the '[' file? What does it do?
9
votes
4answers
32k views

Copy new files only - is this possible? Basically want to merge two folders

I have a folder on Drive 1 called Music, and it is 100GB. I have a folder on Drive 2 called Music, and it is 116GB. It's the most updated version. How do I copy the Music folder from Drive 2 to Drive ...
9
votes
1answer
513 views

Keep desktop icons as they are shortly after logging in

The following image shows two screenshots of my Mac's desktop whilst starting up. The first is a few seconds after starting, whilst the other one is a few seconds to shutdown. I prefer the icons on ...
9
votes
1answer
7k views

What will occur if the .DocumentRevisions-V100 folder is deleted?

This post concerns the folder located at the following file path: /.DocumentRevisions-V100 I right-clicked this folder in Finder.app and selected Get Info. After several minutes of waiting, the "...
8
votes
1answer
14k views

How can I cut down on the size of iMovie Library.imovielibrary?

I recently noticed that the file at ~/Movies/iMovie Library.imovielibrary is taking up an awful lot of space: Is there a way to make it smaller? I don't have anything important in iMovie - what ...
7
votes
1answer
832 views

Paste path into File Open/Save Dialog?

How do I paste a file path into a standard file open/save dialog? I have googled this and found articles that say that the normal ⌘ CMD-V will work, however it does not work for me. I'm ...
7
votes
1answer
116k views

What format and encoding does iPhone save video clips in?

Using the default Photo/Video application. Tried to find any info regarding this on Apple's web site with no success. Does anyone have the specs on this?
7
votes
1answer
689 views

Why are Mac files able to have multiple owners?

Regarding Unix file permissions, which Macs use, why are Mac files in particular able to have multiple owners? For instance, you can view the "Get info" panel of a file, and under the Permissions ...
7
votes
2answers
5k views

Which file types are “ineligible” for iCloud drive?

It seems that some files (or name thereof) are "ineligible" for iCloud drive. For example, if the file name ends with a tilde, it cannot be uploaded to iCloud drive. [Example of programs that produce ...
7
votes
2answers
2k views

What does Apple want for the WWDC Scholarship application uploads?

I am trying to submit my app for the 2013 Student Scholarship - form here (Dev program needed). However, I am confused about what it is, exactly, that they want: Here's a screenshot of the section ...
6
votes
2answers
2k views

Setting “open with” default app forever

There is a nice option in MacOS X that you can right-click on a particular file, select "open with", then select the app that you want to use to open the file type and check the mark "always open with"...
6
votes
1answer
586 views

How to determine which process is creating a file?

Two files have suddenly appeared in my home directory, called "aa" and "err". They are empty. I'm wondering how they got there. I deleted the files and they are created again after some seconds. Is ...
6
votes
1answer
932 views

How did the function “Save As…” change to “Duplicate”?

I recently noticed that within Pages ('09), Numbers ('09), Keynote ('09), the menu entry: File > Save As… had been replaced by a new one: File > Duplicate On the other hand I still use this ...
6
votes
2answers
649 views

How to Create New File in Selected Folder Using LaunchBar?

Using Launchbar, I'd like to be able to do the following: Navigate around by normal means in Launchbar > Once I'm in desired folder, I'd like to be able to run a command/action that asks me to enter ...
6
votes
1answer
5k views

How to change the default application for WEBLOC files?

On macOS Sierra, I am encountering a strange behaviour of WEBLOC files. In the Open with: section of the Info window, the drop down list for choosing the default application is greyed out. It is set ...
6
votes
1answer
2k views

Is it safe to delete dSYM files on Mac OS X?

I've got a few large dSYM files on my machine, installed by the Qt Framework. As I understand they are used for debugging, however I don't actually need to debug the library itself. Is it safe to ...
6
votes
1answer
912 views

AppleScript: How to check if the clipboard consists of a file (instead of text)?

If my understanding is correct, there are two types of content that can be copied to the Mac global (systemwide) clipboard: text or file Even though they are two different, discrete data types, ...
6
votes
5answers
160 views

How do you specify the type of file you're looking for in an 'open file' dialog with a pattern?

On every other operating system except MacOS, when you bring up an Open File dialog, you can type (for example) *.txt or even *recipe*.txt to narrow down the list shown on the screen. On MacOS, ...
5
votes
2answers
27k views

Does OS X enforce a maximum filename length or character restriction?

What is the maximum filename character length of files in OS X? Of secondary importance is whether some characters are allowed/disallowed in addition to any overall length restrictions.
5
votes
2answers
2k views

How to batch rename files via Terminal using the file's date as filename?

I have a bunch of photos and videos from different sources and want to normalize the file names using Terminal. I looked at a bunch of different tools from NameChanger to Automator and Finder itself. ...
5
votes
2answers
313 views

How are paths to files and folders constructed in OS X?

I need to indicate a right file path to read a .csv file into R on OS X, but how can I find where the file is stored? Looking at Excel files, the file path starts at users/…, but there is no ...
5
votes
2answers
5k 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, ...
5
votes
2answers
61k views

How can I change the default save location of Office for Mac?

I have Office for Mac 2011 and unlike Office PC, I can't find how to change the location where my files are to be saved. The default position doesn't suit my needs and I spend a lot of time "...
5
votes
1answer
1k views

How can I iterate through a folder and move/copy every Nth item

I want to make a time lapse from a folder of images, but there are too many and the time lapse progresses to slowly. How do I select, for example, every 10th item, and either copy or move the items ...
5
votes
4answers
2k views

How can I disassociate a single app (e.g., Xcode) from all file types it's mapped to?

Every time I get a machine that I install Xcode on, it associates itself with all kinds of filetypes. E.g., .xml, .rb, even .java! It's such a nuisance to have to re-associate those file extensions ...
4
votes
4answers
25k views

Mass remove character from file names and folder names

We have created a lot folders and files that contains the "<" character. Is it possible to mass-remove these characters?
4
votes
6answers
4k views

File sharing between Mavericks and non-Macs

I am using a MacBook running Mavericks and my brother is on a Linux box; and we often need to exchange files between each other. Both the laptops are Wi-Fi enabled and I also understand that Mac does ...
4
votes
5answers
6k 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 ...
4
votes
3answers
660 views

Batch change creation dates based on file names

I have files that are named like "12. 2017-04-11 063118.jpg", and "123. 2016-09-05 115236.jpg". The number to the left of the "." counts up like an index from 1 to 1400. How can I set the creation ...
4
votes
5answers
657 views

Mass change a portion of a file name?

I have a whole bunch of files named as following (example): ADVANTE 18''8.0 PCD5'114.3 ET45 CB73.1.jpg ADVANTE 18x8.0 PCD6139.7 ET20 CB110.2.jpg ADVANTE 'A MI576B 20''8.5 PCD6'139.7 ET25 CB110.2 ...
4
votes
2answers
367 views

Finder file size easy way

While showing items as icons (not in a list, in columns or wit cover flow). In order to know file size I right-click the file then select Get info then a window opens full of info and I have to look ...