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
6
votes
3 answers

chmod all files (including hidden files) in a directory in Linux (not recursively)

Yesterday I did something stupid which I today realised. I ran: /root# chmod o-rwx * .* This supposed to remove read, write and execute permissions for the world on all files in the current directory (/root). As soon as I did this, screen behaved…
Lekensteyn
  • 6,241
  • 6
  • 39
  • 55
6
votes
5 answers

Free space on ZFS file system unexpectedly missing

Going to completely rephrase this question since it's still an outstanding production issue several months later. I have a FreeNAS 0.7.2 box, based on FreeBSD 7.3-RELEASE-p1, running ZFS with 4x1TB SATA drives in RAIDz1. I appear to have lost 1TB of…
tomfanning
  • 3,378
  • 7
  • 34
  • 34
6
votes
5 answers

Windows File Sharing Orphaned File Locks

Over the past few weeks the company I work for has been having issues on their server wherein a file gets locked by something, and can't be unlocked. These files are almost always files that are being actively accessed over Windows file sharing.…
Sean Edwards
  • 63
  • 1
  • 2
  • 6
6
votes
9 answers

Remove files that are listed in a text file

I have a file that exported a bunch of file names that need to be removed. I need to know how to go about removing each file without having to issue it one at a time at the command line. I've thought about just cating it inside a for loop, which…
drewrockshard
  • 1,763
  • 4
  • 20
  • 27
6
votes
1 answer

wget - specify directory and rename the file

I'm trying to download multiple files and need to rename as I download, how can I do that and specify the directory I want them to download to? I know i need to be using -P and -O to do this but it does not seem to be working for me. I'm writing…
user50221
6
votes
9 answers

Deleting large no of files on linux eats up CPU

I generate more than 50GB of cache files on my RHEL server (and typical file size is 200kb so no of files is huge). When I try to delete these files it takes 8-10 hours. However, the bigger issue is that the system load goes to critical for these…
Sanjay
  • 183
  • 2
  • 4
5
votes
1 answer

Windows Active Directory backup to a file

How can i take a complete backup of windows Active Directory into a single file and is it possible to restore this AD backup to another server? I cannot use active directory replication now, because of the connectivity issues.
Vishnu
  • 711
  • 2
  • 8
  • 15
5
votes
3 answers

How can I see which processes locked a file?

How do you find out which processes have a lock on a given file, in Linux?
Fragsworth
  • 1,181
  • 2
  • 12
  • 14
5
votes
3 answers

Fastest way to move a large file from an ESXi host to another

I have two VMWare ESXI 5 hosts and I want to move a 2 TB .vmdk file from one to another. I tried downloading the file via vSphere Client to upload it to the other host via vSphere Client, but it seems that it would take a week or more! I tried scp…
Ali Hashemi
  • 288
  • 1
  • 5
  • 15
5
votes
3 answers

Disabling filecaching during copy of large files on Windows 2012, Windows 2012R2

I've huge problems with backup of Hyper-V on handful of HOSTS. During backup done by the software some machines become unavailable, host starts dying etc. We tracked this to not the software itself but file copying. Just doing file copy from drive D…
MadBoy
  • 3,725
  • 15
  • 63
  • 94
5
votes
2 answers

Best parameters for ext4 filesystem for storing virtualbox disk images

I have partition, which I'm going to use for keeping VirtualBox disk images (VDI, or may be VMDK). They are fixed-size (not dynamically-allocated) images. There are no other files/directories on partition (only several *.vdi files in the root…
Sasha
  • 158
  • 1
  • 5
5
votes
1 answer

How can i manipulate the find command to "find" the directories the "found" file is in?

So i'm trying to use the find command to find all files in my system with mtime -x. It does this but it does not "find" the directories of the file. find . -mtime -2 -exec rsync -av {} /destination/ \; I thought if i could bring over all the…
user768352
  • 53
  • 1
  • 1
  • 3
5
votes
5 answers

Remove Corrupt File With Bad File Name Linux

Last night I had a Dovecot server lock up and it corrupted a file in a user's maildir. The file name now has special characters in it and can't be deleted, all command line tools say the file cannot be found, even though it shows up via the LS…
TriadicTech
  • 448
  • 2
  • 5
  • 14
5
votes
8 answers

How do I remove Windows Update uninstall files on Windows Server 2008?

I'm running Windows Server 2008 Standard running in VMware. It has 2 disks: system disk: 16 GB data disk: 500 MB I installed Visual Studio 2008 SP1 + MSDN and some small tools and libraries that don't take much space. Over time the system disk's…
5
votes
1 answer

BYOD (accessing files) on a domain without joining?

I run a Samba 4 instance at a small private school. This makes a regular Linux server appear as a directory controller. There are two relevant benefits to this: I have a Samba share for people's documents, and I use the Redirected Folders feature…
Philip
  • 801
  • 6
  • 10