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
11
votes
4 answers

Delete files older than X days on remote server with SCP/SFTP

Do anyone know some good way to delete files on remote server that are older than X days using just SCP/SFTP? Sure I can write some script on perl etc but I feel it's overkill. Any UNIX way? Oneliner? Separate utility? Thanks P.S. The task is to…
Mike
  • 374
  • 1
  • 3
  • 13
10
votes
4 answers

Linux: How to break a large file into smaller files?

I have a giant file (>20 gigs) sitting on my source machine and I need to transfer it to my target machine. For the purposes of this question, let's assume that I do not have network connectivity between the two machines. I need to break this file…
Runcible
  • 3,145
  • 3
  • 23
  • 15
10
votes
1 answer

Why does getfattr not display anything for a file that has the extended attribute bit set?

I've got a Nagios XI install running on CentOS 6.2, and want to modify the backup script. I noticed that the extended attribute bit is set for this shell script, so I want to be sure not to mess anything up when I make changes to it. I…
Alan
  • 541
  • 1
  • 6
  • 20
9
votes
2 answers

Windows Server 2008 R2 max open files limit

Does Windows Server 2008 R2 have similar limitations to maximum number of opened files like linux have?
yojimbo87
  • 672
  • 5
  • 12
  • 22
8
votes
2 answers

Transfer a 30GB tar file from one remote server to another - restrained by disk space

I have a 38GB "Moodle" tar file that I need to transfer from the old server (Shared hosting), which we can call "Server A" to the new server (Dedicated virtual), or "Server B". I'm with Mediatemple if that helps. I've already tarballed the directory…
alexbass
  • 83
  • 3
8
votes
4 answers

Linux : Losing group ownership of files

I have a project with a number of files that I created in Linux. And I needed to give another user write permission on them. So I created a "dev" group of which he and I are members and changed the ownership of the files to this group. A typical…
interstar
  • 1,281
  • 4
  • 18
  • 23
8
votes
4 answers

How can I easily confirm in Linux that two separate directories have the exact same contents?

CentOS 5.x Mq question seemed similar to this one but I wasn't sure... I have two servers (completely isolated from each other), each with a directory and sub-directories that should have the same exact contents. For example the directory layout…
Mike B
  • 11,871
  • 42
  • 107
  • 168
8
votes
3 answers

How to see if/when a long file copy operation actually completed?

Having to move several very large files (VHDs) between two servers, I launched the file copy operation using Windows Explorer in a Remote Desktop session, and then closed the session without logging off, leaving the file copy to work; the next day,…
Massimo
  • 70,200
  • 57
  • 200
  • 323
8
votes
2 answers

Why can't I create files larger than 2 GB on Linux?

I wanted to share some knowledge I picked up when I ran into trouble using libpcap and snort to sniff a high-capacity (1 GB full duplex; 2 GB max aggregate) network link. The applications would sniff all traffic successfully, but would crash when…
romandas
  • 3,302
  • 8
  • 39
  • 44
7
votes
4 answers

Incorrect file creation date in Windows XP/Vista

Check this out: Create a new file on your Windows machine. Note its creation date/time. Delete the file. Wait a little bit. Create a new file on the same directory, with the same name as the previous one. The creation date/time of the new file will…
CesarGon
  • 440
  • 3
  • 14
  • 27
7
votes
9 answers

Can't unmount a loop backed file but there's no open files?

On linux, I have a file that I've mounted using the -o loop option. I want to unmount it. However it tells me that device is busy. However by doing lsof | grep pathofimagefile I get no results. And yet I can't unmount!
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
7
votes
2 answers

How to find files affected by reallocated sectors?

I have a Western Digital RE4 1.5TB that has just reallocated 56 sectors. Reallocated Sectors Count,140,193,193,OK,56,0,Enabled I want to know if it is possible to find out which are the files affected by these reallocated sectors, and if they…
Nick
  • 181
  • 1
  • 4
7
votes
5 answers

How can I tell what files a process has open?

I have a daemon process and I want to know what files it has open (and ideally what its CWD is). Is there any shell command that can tell me that?
Denis Hennessy
  • 173
  • 1
  • 5
7
votes
1 answer

IIS7 - how to configure server to serve large (GBs) files?

I wanted to download some backups (about 4..5Gb in size) via HTTP and was surprised that IIS7 didn't allowed me to do so. The attempt was seemingly blocked - got a 404 page. Where should I go in the IIS Management console to allow such downloads?
kagali-san
  • 1,991
  • 5
  • 17
  • 20
7
votes
1 answer

How do I hide a directory of text files on IIS?

I have a directory of text files on IIS. I would like this directory to be hidden. I have set the web.config as follow:
nunespascal
  • 193
  • 1
  • 1
  • 4