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
21
votes
9 answers

Get total files size from a file containing a file list

I have a file containing a list of files that I would like to know the total files size. Is there a command to do so? My OS is a very basic linux (Qnap TS-410). EDIT: A few lines from the file: /share/archive/Bailey Test/BD006/0.tga …
Nicolas
  • 454
  • 2
  • 6
  • 16
21
votes
2 answers

What is stored in %Windir%\System32\LogFiles\WMI\RtBackup?

I occasionally notice in Resource Monitor hard disk activity related to ETL files in the folder C:\Windows\System32\LogFiles\WMI\RtBackup. Which process/service creates these ETL files and what is their purpose? Resource Monitor shows "System" as…
Helge Klein
  • 2,101
  • 1
  • 16
  • 22
20
votes
7 answers

Linux mv file with long name

In Linux I sometimes rename files like this: mv dir1/dir2/dir3/file.txt dir1/dir2/dir3/file.txt.old Note that I want to just rename the file, not move it to another directory. Is there a command that would allow me to do a shorthand version of…
santiago arizti
  • 435
  • 6
  • 16
19
votes
9 answers

Is it possible to hide lost+found?

Given a partition intended solely for storing music, video and so-on, is it possible to hide the lost+found directory?
jldugger
  • 14,342
  • 20
  • 77
  • 129
18
votes
1 answer

What is fastest way to copy a sparse file? What method results in the smallest file?

BACKGROUND: I'm copying a sparse qcow2 VM image that is 200GB in size, but has 16GB of allocated blocks. I've tried various methods to copy this sparse file within the same server and have some preliminary results. Environment is RHEL 6.6 or…
Steve Amerige
  • 433
  • 2
  • 5
  • 12
18
votes
3 answers

Building a 1,000M row MySQL table

This question is reposted from Stack Overflow based on a suggestion in the comments, apologies for the duplication. Questions Question 1: as the size of the database table gets larger how can I tune MySQL to increase the speed of the LOAD DATA…
Ben
  • 283
  • 2
  • 6
17
votes
2 answers

nginx uLimit 'worker_connections exceed open file resource limit: 1024'

I keep getting this error in nginx/error.log and its driving me nuts: 8096 worker_connections exceed open file resource limit: 1024 I've tried everything I can think of and cant figure out what is limiting nginx here. Can you tell what am I…
Neel
  • 1,441
  • 7
  • 21
  • 35
16
votes
7 answers

In *nix, how to determine which filesystem a particular file is on?

In a generic, modern unix environment (say, GNU/Linux, GNU/Solaris, or Mac OS X), is there a good way to determine which mountpoint and filesystem-type a particular absolute file path is on? I suppose I could execute the mount command and manually…
smokris
  • 705
  • 3
  • 13
  • 27
16
votes
3 answers

Is there a hard limit to the number of files a directory can have?

Wondering if there is a limit to the number of files that can be stored inside a directory, in CentOS 6. There is one particular directory which could potentially have millions of subdirectories. Storage capacity aside, is there a limit to the…
Juan Carlos Coto
  • 677
  • 2
  • 6
  • 13
16
votes
4 answers

Concatenating files to a virtual file on Linux

On a Linux system, is there any way to concatenate a series of files into one exposed file for reading and writing while not actually taking up another N bytes of disk space? I was hoping for something like mounting these files via…
Ryan
  • 273
  • 2
  • 5
16
votes
6 answers

Files disappearing on linux server

I've got 4 specific files that seem to keep disappearing from a user's home directory. As far as we know, there are no cronjobs or other automated tasks that would be removing them. I've setup auditd on them but the logs aren't really showing…
Chad P
  • 1,510
  • 2
  • 14
  • 16
15
votes
6 answers

Moving a Logical Volume directly from one server to another over the network?

I have a KVM host machine with several VMs on it. Each VM uses a Logical Volume on the host. I need to copy the LVs to another host machine. Normally, I would use something like: dd if=/the/logical-volume of=/some/path/machine.dd To turn the LV…
Nick
  • 4,503
  • 29
  • 69
  • 97
15
votes
4 answers

read specified range of lines from a file

I have i file that contains 100000 line how i can get the lines from line# 5555 to line# 7777 under linux. Thanks for all.
ibrahim
14
votes
3 answers

Systemd drop-in fails to create PID file

I have a drop-in for systemd-machined at the path /etc/systemd/system/systemd-machined.service.d/10-machined-pid-file.conf. when I run systemctl status systemd-machined I do see the lines Drop-In: /etc/systemd/system/systemd-machined.service.d …
Christian Grabowski
  • 559
  • 1
  • 5
  • 18
14
votes
4 answers

Monitor open process files on Linux in real-time

The files opened by a process can be found with this command: ls -l /proc/PID/fd Is there any way that can be done in a more interactive way like tail, auto-refreshing every x seconds?
Frankie
  • 429
  • 1
  • 6
  • 20
1 2
3
45 46