Questions tagged [files]

Organized data encoded in a pre-defined format and stored on a filesystem.

In the computational sense, one-dimensional array of bytes stored in a filesystem, typically encoded a pre-defined format, often indicated by a file-extension or "magic number". More "durable" than in-memory storage.

677 questions
14
votes
7 answers

How to Find a file in FreeBSD

I'm trying to locate all copies of example.filename on my FreeBSD server. What's the best / easiest / most efficient way to do this?
Ian
  • 1,498
  • 4
  • 26
  • 32
14
votes
19 answers

What is the simplest and fastest way to transfer large file through a Windows network?

I have a Window Server 2000 machine running MS SQL Server that stores over 20GB of data. The database is backed-up every day to the second harddrive. I want to transfer those backup files to another computer to build another test server and for…
Sake
  • 417
  • 3
  • 5
  • 12
14
votes
7 answers

How long do you keep log files?

I have an application which writes its log files in a special folder. Now I'd like to add a functionality to delete these logs after a defined period of time automatically. But how long should I keep the log files? What are "good" default values (7…
Alex
  • 243
  • 1
  • 2
  • 4
14
votes
6 answers

Best method to track folder size growth over time?

I have a file server that has a pretty large folder tree. There's a shared folder, under that are 5 departmental folders. Nested inside of those are thousands of subfolders and files. I would like to be able to trace growth of those 5 departmental…
Aszurom
  • 463
  • 2
  • 8
  • 19
13
votes
6 answers

Comparing owners and permissions of content of two folders?

How to to compare owners and permissions of content of two folders? Is there something like diff command which compare recursively two folders and display owner and permissions differences?
J.Olufsen
  • 303
  • 2
  • 3
  • 9
13
votes
8 answers

RAID configuration for large NAS

I'm thinking of building a 24 1TB disk NAS box, but I'm not sure what the best drive configuration is. I'm looking at using the areca ARC-1280ML-2G controller, and hanging all 24 drives off of it. I'd like it all to be mounted as one volume, due to…
kevin42
  • 278
  • 1
  • 2
  • 9
13
votes
4 answers

Linux tools to find duplicate files?

I have a large and growing set of text files, which are all quite small (less than 100 bytes). I want to diff each possible pair of files and note which are duplicates. I could write a Python script to do this, but I'm wondering if there's an…
Daryl Spitzer
  • 2,996
  • 9
  • 33
  • 40
13
votes
6 answers

How do I delete a locked file in Windows?

I'm moving some files around on the server (Windows Server 2003), and there's a locked file that no one seems to have open. How do I delete this file?
user640
12
votes
3 answers

How can I get docker build to overwrite a file?

It seems that docker build won't overwrite a file it has previously copied. I have a dockerfile with several copy instructions, and files touched in earlier COPY directives don't get overwritten by later ones. A simplified example (although it also…
fields
  • 690
  • 1
  • 10
  • 21
12
votes
2 answers

What is the impact of increasing "nofile" limits in /etc/security/limits.conf?

I've found a number of articles describing how to increase the limits for the number of open files through /etc/security/limits.conf, but I don't understand the impact of doing so. Many times I see people updating 1024 to 2048. Ok, those file…
Adam
  • 276
  • 1
  • 3
  • 8
11
votes
4 answers

Bash one-liner to atomically create a file if it doesn't exist

I want a Bash one-liner that atomically creates a file if it doesn't exist. That means essentially "if file doesn't exist, create it" but ensuring that no one else manages to create the file in the small space between doing the if and creating the…
Ram Rachum
  • 5,231
  • 7
  • 34
  • 46
11
votes
4 answers

rsync directory so all changes appear atomically

I do some nightly and weekly mirrors of frequently used repositories for the local network. On a few occasions, someone has tried to do an update while the rsync is happening and failed because the expected files aren't all there yet. Is it…
mikebabcock
  • 420
  • 4
  • 12
11
votes
6 answers

What does 'no locks available' mean?

I'm trying to commit to a SVN server. On the server the subversion repository is NFS mounted. When doing a commit, I get this error message: svn: Can't get exclusive lock on file '/svn/repo/db/transactions/7802-2.txn/rev-lock': No locks…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
11
votes
3 answers

In SQL Server, when should you split your PRIMARY Data FileGroup into secondary data files?

Our database currently only has one FileGroup, PRIMARY, which contains roughly 8GB of data (table rows, indexes, full-text catalog). When is a good time to split this into secondary data files? What are some criteria that I should be aware of?
Jarrod Dixon
  • 685
  • 2
  • 13
  • 23
11
votes
6 answers

Is there a tool to compare values in .ini files?

I'm looking for a file comparison utility specifically for .ini files, typically used as settings files. There are plenty of file comparison tools (WinDiff, Beyond Compare, CompareIt, WinMerge, ...), but none of the tools I tried can handle .ini…
ssollinger
  • 233
  • 1
  • 3
  • 9