Questions tagged [file-io]
17 questions
32
votes
3 answers
How can I move a folder from one directory to another in Windows command line?
I need to move folder into the ProgramData directory. Is there a way I can see it as unhidden?
If not, what's the command to move one folder (name_of_folder) into another (c:\ProgramData) in Windows Vista?
Thanks.
sombe
23
votes
9 answers
Will buffer be automatically flushed to disk when a process exits?
When I redirect a command's output to a file (e.g., echo Hello > file) will that file be guaranteed to have such data right after the command exits? Or is there still a very small window between the command exits and data written to the file? I'd…
Eric
- 351
19
votes
3 answers
How to increase the disk cache of Windows 7
Under Windows 7 (64 bit), I'm reading through 9000 moderately sized files. In total, there is more than 200 MB of data. Using Java (JDK 1.6.21) I'm iterating over the files. The first 1400 or so go at full speed but then speed drops off to 4ms…
Mark Christiaens
18
votes
9 answers
What is the fastest way to move a million images from one directory to another in Linux?
I have a million images that takes up 30GB of disk space that need to be moved from one local directory to another local directory.
What would be the most efficient way to do this? Using mv? Using cp? Using rsync? Something else?
I need to take…
Ryan
- 445
11
votes
4 answers
Why is my file copying slowly?
I am trying to duplicate a folder (around 1GB) in the same directory and the copy rate is quite slow (getting around 600kbps).
I can download large files from the Internet faster than that (2/3 MBps).
Any thoughts?
Note: I am using Windows 7…
Mahes
- 261
5
votes
2 answers
How can I copy every 4th file in a Folder into a New Folder?
I am exporting an animation as PNG image files.
From the 1199 sequences of frames exported, only every 4th file contains a key frame the rest of the image files are exact duplicates of the previous.
How can I copy only the 4th file into a New…
angelofdev
- 1,156
4
votes
4 answers
How to cut a file into pieces more efficiently?
Suppose I have a 10MB text file foo.txt, and it has 100,000 lines. Now, I want to process foo.txt window by window, with a window size 10.
My current script is like this:
for ((i=0;i<$lines;i=i+$step))
do
head -$((i+step)) $1 | tail -$step…
JackWM
- 333
3
votes
3 answers
Cannot use more than 746GB on 3TB Drive that is reporting 2TB free
Related: Tried to use my 3TB drive in a USB enclosure, now reports only 746GB even internally
I originally solved the problem in the link above by deleting the partition table using GParted re-partitioning it.
However, now that I've filled 746GB of…
JaredMcAteer
- 490
1
vote
2 answers
What happens when moving hard linked file across filesystems using `mv`?
I have a collection of folders on one file system which have been hard linked together (the contents are identical).
What happens when I move one of the folders to another filesystem on another disk?
I'm on Mac OSX snow leopard and I'm using the…
b20000
- 111
1
vote
0 answers
How do I eliminate file write latency spikes on mdadm raid0?
High Level Problem Summary
We are working on an application that requires high throughput to RAID0 for extended periods of time. There are up to 8 independent 5 GB/s data streams being written to dedicated RAIDs (1 RAID per data stream). This works…
Smitch
- 111
1
vote
0 answers
How to redirect file I/O operations of a process to memory or a different file?
Let's say I have a file named file.txt and a running process with PID 12345 which sometimes reads and sometimes writes to that file.
Is there any way I can fool the process with PID 12345 to read or write to memory (allocated by another process)…
Snackoverflow
- 129
0
votes
0 answers
bash: monitoring which files are used by a process in real time
Is there any command to track what files are opened / closed / written by program with given PID in real time?
I want to:
run a program,
enable program file operations monitoring,
do some stuff in program,
check what files have been changed in time…
Jezor
- 63
0
votes
0 answers
How do I kill mbuffer properly?
I'm trying to use a script to send a series of files over a network from hard drive to hard drive via mbuffer. I've got a listening mbuffer on one computer and a sending mbuffer on the other. Things go pretty well until the time comes to send the…
Inglonias
- 131
0
votes
0 answers
USB/SD transfer speed for concurrent writing of multiple files on Linux
I need to transfer more than one big file on USB or SD device, let's say 4 files of 1 GB each.
I noticed that on USB, the concurrent transfer of multiple files is way slower than queuing up the copy; it's a simple test I made by myself:
Test 1…
lorenzo.marcon
- 101
- 4
0
votes
1 answer
How to Run a Macro in Microsoft Word After a Document is Saved/Saved As, Based on File Name Conditions?
I'm trying to create a solution in Microsoft Word using VBA that automatically runs a macro after a document is saved. The goal is to check two things about the file name and take action if certain conditions are met:
The file name contains…