For questions concerning the generic use of computer files.

learn more… | top users | synonyms (1)

39
votes
8answers
13k views

How do I delete a 'locked' file?

On Windows XP, When I try and delete a specific file it says : Cannot delete blah.blah: Make sure the disk is not full or write-protected and that the file is not currently in use. How can ...
39
votes
19answers
64k views

How can I mass rename files from the command line or using a 3rd party tool?

I've got a bunch of files named with a the pattern 99 - DescriptiveName.txt and I'd like to remove the number from the front so I just have DescriptiveName.txt. How can I do this? Can I do it from ...
35
votes
10answers
69k views

How to recover a removed file under Linux?

By accident, I used rm on a file I didn't want to delete. Is there a way that I can get it back under Linux?
26
votes
13answers
5k views

Best way to *confidently* search files and contents in Windows without using an indexing service?

Back in Windows XP I knew that doing a file search and checking "Search file contents" (or whatever it was) I would get my results if I waited patiently. In Vista, I felt I had absolutely no ...
23
votes
6answers
26k views

Batch-convert files for encoding

How can I batch-convert files in a directory for their encoding (e.g. ANSI->UTF-8) with a command or tool? For single files an editor helps, but how to do the mass files job?
13
votes
20answers
7k views

What editor/viewer to use to inspect large text based files? [duplicate]

Possible Duplicate: Text Editor for very big file - Windows Are there any text editors/viewers (preferably on windows but other platforms are also ok) that can handle files of 500 MB or ...
21
votes
22answers
11k views

What's a good alternative to Windows' “Search for Files and Folders”? [closed]

The built-in Windows Search tool will apparently not search within PHP files. I cannot find the files named *.php containing text "some_function_name" that I know are there. Search is complete. ...
20
votes
7answers
3k views

What does the @ mean on the output of “ls” on OS X' terminal?

When doing an ls in a directory I get the following output: drwxr-xr-x@ 12 xonic staff 408 22 Jun 19:00 . drwxr-xr-x 9 xonic staff 306 22 Jun 19:42 .. -rwxrwxrwx@ 1 xonic staff 6148 25 ...
33
votes
9answers
43k views

How to delete a file in Windows with a too long filename? [duplicate]

Possible Duplicate: Tool for deleting directories with path/names too long for normal delete My wife has several files and folders that somehow ended up having filenames that have caused ...
5
votes
2answers
12k views

How to recover deleted files in Mac OS X?

Is it possible to recover my deleted files in Mac OS X (after I emptied the trash also)? In Windows I can recover the deleted files using file recovery software. Similarly, in Mac OS X, Is any ...
44
votes
11answers
58k views

How can I identify what application is using a given file?

I'm trying to delete some folder but this error is preventing from doing it: Cannot delete [FileName]: It is being used by another person or program. Close any programs that might be using ...
12
votes
2answers
62k views

How to copy files to read-only NTFS hard drive on a Mac

I want to copy my some files from Mac (Macbook-Air) to a USB external hard drive, formatted as NTFS. How is it possible? Because when I do copy my files from the Mac and go to paste them on the ...
21
votes
0answers
5k views

Tool to determine what has locked a file [duplicate]

Every once in a while when I try to remove a file I have been working with, Windows tells me I cannot remove it, because some application is still using it. Sometimes it's just my own stupidity, and ...
4
votes
4answers
10k views

Windows 7: File In Use when deleting file [duplicate]

Possible Duplicate: How do I delete a 'locked' file? Trying to delete a file, and I get an error saying that the file is in use. I've tried to look for it in the Resource Monitor ...
12
votes
6answers
13k views

How do I determine what file occupies a given sector?

I have a hard drive with 3 bad sectors. I know the sector numbers and the computer can still boot into Windows. I want to run sector repair from an HDD diagnostics tool from the manufacturer, but ...
9
votes
4answers
5k views

How to delete (invalid) files with colon in their name under Windows

I've got a rather large number of files on my Windows drive that have a colon in their name. (These came from unpacking some Unix archives.) When I try to delete them, Windows (XP) complains that ...
55
votes
2answers
70k views

Easy way to find out which process is locking a file or folder in Windows? [duplicate]

Possible Duplicate: How do I delete a ‘locked’ file? How can I find out which process is locking a file or folder in Windows? For instance if you are trying to delete a folder ...
17
votes
3answers
10k views

What is the difference between size and size on disk?

Looking at the properties for a windows file I get two attributes, Size & Size on disk and Size on disk is always larger. What do these two metrics mean?
10
votes
3answers
3k views

Search and replace tool that can handle multiple files and subfolders

I'm looking for a tool which can search/replace within file contents for a broad range of file types (i.e. it should, if possible, process the maximum possible number of file types like .txt, .sql, ...
54
votes
10answers
74k views

Linux: How to move all files from current directory to upper directory?

I tried something like mv . .. but it doesn't work.
39
votes
3answers
57k views

How to make new file permission inherit from the parent directory?

I have a directory called data. Then I am running a script under the user id 'robot'. robot writes to the data directory and update files inside. The idea is data is open for both me and robot to ...
36
votes
5answers
28k views

Recursively count all the files in a directory [duplicate]

Possible Duplicate: How can I count the number of folders in a drive using Linux? I have a really deep directory tree on my Linux box. I would like to count all of the files in that path, ...
36
votes
3answers
56k views

How can I determine what process has a file open in Linux?

I'd like to determine what process has ownership of a lock-file. The lock-files are simply a file with a specific name that has been created. So, how can I determine what process has a particular ...
6
votes
1answer
7k views

How to change default app for all files of particular file type through terminal in OS X

How can I change the default app for all files of a particular file type through the Terminal in OS X?
7
votes
5answers
1k views

tag based file organizer [closed]

I'm finishing professional school and over the years have acquired a pile of notes and articles that I'd like to hang onto. I'd like to add to them and create sort of an archive of article and files ...
4
votes
4answers
397 views

How do I delete a file that is in use by another process? [duplicate]

Possible Duplicate: How do I delete a 'locked' file? More specifically, I'm trying to rename or overwrite a file, and get the message Access Denied. Make sure the disk is not ...
10
votes
2answers
2k views

Unix: Files starting with a dash, -

Ok, I have a bunch of files starting with a dash, -. Which is not so good... and I want to rename them. In my particular case I would just like to put a character in front of them. I found the ...
7
votes
1answer
5k views

Windows 7, any way to sort folders and files all mixed together?

Is there a way to sort folders and files by their name all mixed together in Windows 7? It would be easier to understand if you look at THIS page. I want my folders and files arranged like the ...
6
votes
3answers
18k views

How to prevent a file from accessing the internet

There are some exe and dll files belonging to some programs on my laptop which communicate with the internet without my permission (for self-update generally). I want to prevent those files one by one ...
4
votes
1answer
631 views

Associating/Grouping a file with a folder in Windows so that they both are moved together

I saved an HTML web page using Google Chrome. An HTML file along with a folder containing the images was saved on my computer. Now when I move the HTML file to a different location or delete it, the ...
6
votes
2answers
1k views

Renaming files using F2 on Windows XP

On Windows Vista & 7, when you select a file and press F2, only the file name is automatically selected without spanning the extension. Then you can write the new file name and hit enter. It is a ...
5
votes
4answers
4k views

Windows 7 delayed file delete

I'm stuck with a pretty rare problem that happens on Windows 7 OS only. Every time I'm deleting the file with *.exe extension through explorer, the file doesn't get deleted immediately. I'm forced to ...
13
votes
1answer
10k views

How many files can a windows folder contain?

How many files can a windows folder contain? This question is asked here but then the question text pollutes the question with issues of "rules of thumb" So to be clear, this question is: How many ...
10
votes
4answers
5k views

How to join two CSV files?

Suppose you have one CSV file with 2 fields: ID and email. You have another file with 2 fields: email and name. How can you produce a file with all three fields joined on email?
13
votes
9answers
19k views

Windows equivalent of the Linux command 'touch'?

What do you use when you want to update the date-modified field of a file on Windows? commands accessible via C++, .NET, C#, or something native to Windows (Vista preferably) tools/applications ...
3
votes
3answers
10k views

Obtaining the Windows 7 CD key from its installation files

Are there any files probably contained in the Windows directory that have the product key? I need to re install the OS of my laptop but have misplaced the CD key.
5
votes
4answers
20k views

Insert a Null Character (ASCII 00) in Notepad

I want to insert a null character (ASCII Value 00) into an open file in Notepad. A program that is reading this file is expecting 00 at the end, but it's getting the ASCII value for space - 20. How ...
5
votes
2answers
1k views

how to delete a file with a weird name

I wrote a program that uses POSIX memory-mapping function (mmap) The program takes a file (a.dat) and memory-maps it for reading/writing. Due to errors in the program, every time I run the program a ...
7
votes
7answers
5k views

Can't delete file named ЃϵϳЅЂϿϽϯІχϯπρЂϻϵЉЃϵϳЅ

I installed Windows 7 over the top of XP and it left me with a 'Windows.old' folder. I tried to delete it, and it got rid of everything except 2 files named: ЃϵϳЅЂϿϽϯІχϯπρϴϱЄϱЃϵϳЅ ...
1
vote
4answers
669 views

Vista: setting file permissions

I have a server running on Windows Vista and am having problems setting file permissions. I want to set a folder to 777, but when unselecting read-only from Explorer, after going back to it read-only ...
1
vote
2answers
502 views

Mac OS X file recovery [duplicate]

Possible Duplicates: How to find the original content when the folder is already “replaced”? Is there any free undelete software for the Mac? I thought that all operating ...
1
vote
3answers
2k views

Modification of files with 777 permissions but not with 755 permissions?

I can modify the files with 777 permissions, but not with 755. I do it by sourcing some sed commands. I find it odd because I can modify the files with even 700 permissions in Vim. Why is it not ...
28
votes
4answers
21k views

How do I find out the file type without an extension? [duplicate]

After recovering my HDD, I ended up with a lot of files with no extension. Many of them are .bin files. Is there any way to find out what file format they actually are? Many of them have no ...
28
votes
2answers
14k views

Is there a fix for the “Too many open files in system” error on OS X 10.7.1?

I need to get rid of the pesky "Too many open files in system" limit on OS X 10.7.1.  Is there a way?
58
votes
3answers
3k views

Why do some downloading files not know their own size? [duplicate]

Occasionally, when downloading a file in a web browser, the download progress doesn't "know" the total size of the file, or how far along in the download it is -- it just shows the speed at which it's ...
46
votes
2answers
10k views

How to append to a file as sudo? [duplicate]

Possible Duplicate: sudo unable to write to /etc/profile I want to do: echo "something" >> /etc/config_file But, since only the root user has write permission to this file, I can't ...
8
votes
1answer
5k views

Where is the Windows Registry Files stored?

Where can I find the files edited when you run RegEdit?
6
votes
6answers
39k views

What files are in local settings/temp and can I delete them?

I just found that I have 4 GB of space in /Documents and Settings/<user name>/Local Settings/temp. Is there any reason why I shouldn't go and delete these?
8
votes
2answers
2k views

Remove duplicate files across separate directory trees

I have two directories: old/ and new/. Some of the files in old/ are duplicates of those in new/. Some merely have the same name, and a few may even have identical content but different names. I'm ...
6
votes
1answer
227 views

Is it possible to 'instantly' create arbitrary files?

I've seen the following trick to create large, empty files somewhat quickly: dd if=/dev/zero of=test.dat bs=1024 count=1024 However, this still takes some time when creating multi-GB files. I ...