Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [files]

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

0
votes
2answers
56 views

Powershell compare-object select results from both sides

I have read many example of comparing two objects, lists, arrays etc. What I can't seem to find or do is after comparing the objects and finding which one are equal, output some properties of BOTH ...
1
vote
1answer
16 views

How can I store the output of a Linux command in a Puppet file?

I want to create a new file on a specific Puppet agent and store the output of a Linux command to the file. Is there an easy way to do this with the content attribute? The command I want to run is ...
1
vote
2answers
45 views

Shell Scripting and Types of Text File Output RE: msinfo32

I ran the following script in my Windows 10 command prompt msinfo32 /report mysystem.txt, which saves all the system data of the machine in a single text file. However, when I ran strings on the ...
0
votes
3answers
27 views

Argument for providing 200 response on non-existent file

Does it ever make sense for a server to provide a 200 response when a GET request is made for a non-existent file? Shouldn't the response always be a 404? Here's the response header: {'Date': 'Tue, ...
1
vote
1answer
46 views

AWS file strategy when reading large files that don't change often

We have a web (Rails) application where a small number of somewhat large (1 - 10MB) business logic files can be uploaded by administrators. The content files will not change frequently, maybe once a ...
0
votes
0answers
17 views

locate output: are directories always before files?

Assuming use of a single locate database, is the order of results in locate(1)'s output guaranteed to list a directory before all files contained in that directory? I'd like to write a program that ...
3
votes
1answer
39 views

Not sure how to read lsattr output, where can the legend be found?

When I run the lsattr command, I get the following output: root@swarm-stg-01:/etc# lsattr timezone --------------e--- timezone But I don't understand how to read he output and man command doesn't ...
0
votes
2answers
108 views

.htaccess password protect a file in a certain directory

I have files with the same name in different directories on the serves (example: stats.php), and I want to password protect some of them (.htaccess file in the root directory). I tried "FilesMatch" ...
-4
votes
1answer
57 views

Rename and replace parts with different filenames [closed]

I know there are different questions about this topic but I have found nothing that fits my question: I want to replace a part of a name in a folder but there are different files with different names....
0
votes
0answers
66 views

File Server Resource Manager (FSRM) inconsistently triggering on a file screen rule

I've been exploring the capabilities of the FSRM -- specifically the File Screen Management feature -- to see how it works and what it can do. To test it out, I set up in a lab with some VMs. I ...
0
votes
1answer
48 views

NGINX Not showing directory contents

I have some trouble with NGINX on my server. I previously used Apache. When I try to request folder contents on my server (like, 192.168.0.128/files), I get a 403 Forbidden error. Anyone know how to ...
0
votes
2answers
85 views

Windows search cannot find files in current directory

We have a windows server 2012 r2 that has the file server role and windows search installed. The drives with the shared folders are indexed and the shares folders are mapped on all clients. I can ...
0
votes
1answer
9 views

find: equal file size limit but different unit returns different result

I noticed that the these two commands to list files below 5 GiB produce different results: find . -type f -size -5368709120c find . -type f -size -5G Specifically the one that uses kilobyte unit (...
0
votes
1answer
181 views

Files Not Appearing in S3 File Storage Gateway Bucket

I created an AWS S3 File Storage Gateway and mounted it to a Linux server on-prem. On that same server where the file gateway is mounted I have a separate NFS share mounted. My goal is to copy files ...
1
vote
0answers
41 views

Restore AWS Storage Gateway Server

I just setup an AWS File Storage Gateway server on-prem. I was able to connect it to an S3 bucket and I can mount it as an NFS share to Linux servers which is great. My concern though is this - if for ...
0
votes
0answers
61 views

Understanding some of my linux process file descriptors

Looking to some of my production processes, I realize that I can't understand what exactly some of its file descriptors are and/or what are they used for. More specifically those with TYPE sock and ...
0
votes
1answer
45 views

extend file system size on cloud server

On my 1and1 root cloud server I'm trying to extend my file system size after an upgrade. I should have 120gb instead of 70gb. I'm not very experienced with filesystem extending I'm on Ubuntu 16.04.3 ...
0
votes
1answer
58 views

Migrate over 1 million file with ~150 GB from 1 server to another

Tell me Guys, how would you transfer more than one million files, witch have a summarized size of about 150 GB from A servers (KVM) VM to another (let's call it B, XenCenter) servers other VM in ...
0
votes
1answer
44 views

How to back up MySQL data files directly (physically) yet consistently on Windows?

MySQL comes with "dump" commands and utilities that convert a database to text form and store that text somewhere on disk. For a large database, converting to text can be a slow operation and generate ...
0
votes
3answers
79 views

offload serving dynamic files from app server to nginx

I'm using Nginx as Reverse Proxy for my App Server. The App Server receives file download requests via this route: /files/:id Then the app finds the file path on the File System i.e. /path/to/file/...
1
vote
4answers
125 views

why does a file sometimes appear empty when being written to by another process

We have a situation where files are uploaded to a folder by FTP and then served by nginx. We've found that if the GET request immediately follows the modification of the file nginx returns files with ...
0
votes
0answers
50 views

PHP block file editing outside of webroot

Is in Apache2 way to restrict php file editing or file creating only to webroot? I want to block file editing outside of webroot. I'm using more virtual hosts and server is running at Debian 8.
0
votes
2answers
58 views

Windows - How to allow clients to access their files across all machines connected to AD domain?

I have a Windows Server 2008 server and have Windows 7 client machines. Is it is possible for all clients to log in to their accounts on any computer in the network and be able to access their files/...
-2
votes
1answer
26 views

Deleting orphaned .msp and .dll files

I have two terminal servers that I need to clear room off of. I have 35.8gb of .dll's and 15.5gb of .msp's. I need to clear these en masse, as there are literally thousands of files that I would have ...
0
votes
1answer
174 views

Make IIS server max_file_upload size 10GB

I am working on a website that is hosted with the company's own server, using IIS. I was wondering if it's possible to make the make file upload size 10GB? Their assets they send and receive to ...
0
votes
1answer
41 views

Can the last modification date of standalone.xml file be changed alone?

In our production envirement (jboss wildfly 8.2), Windows server 2012 R2, I noticed that all of the date of creation, modification and access of the configuration file Standalone.xml was changed to ...
1
vote
0answers
20 views

How to find complete installer location which is installed using small size initiator .exe on Windows 10

Some time companies give small setup.exe file, for example 2 MB .exe of Kaspersky which we run and that will connect to the company server, download complete installer/setup and install the software. ...
0
votes
0answers
30 views

How to search for all files owned by a particular user in SAN

My question might be confused you but honestly that very straight forward. I have a SAN with many terabytes of data. All users have their own home directory or share directory on that (And most ...
19
votes
7answers
2k views

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 ...
0
votes
1answer
17 views

compare 2 directories with different files names and locations of the files

I'm currently having 2 (top level) directories with a lot of sub directories and files. There are a lot of duplicate files between those directories but there is one problem with it, the names of the ...
0
votes
1answer
24 views

Remove files from directory path B which are not found in path A on Linux

I have two paths on same system for example: \mnt\a\data \mnt\b\data There are some directories and/or files in b\data which are not present in a\data. How can I remove those extra directories and/...
-1
votes
1answer
127 views

Sync files between centOS (ec2) & a NAS

I have made a cronjob, that takes backup locally - of some diffrent files. But i would like to have them copied to a remote server aswell. The problem is the "remote" server is a NAS server, and im ...
0
votes
0answers
319 views

Copy file from remote SSH to local without SSH client on remote

Suppose this setting: Full access on local machine The proxy server is accessible via SSH but only allows 2 specific commands: exit - closes the connection ssh remote - establishes an SSH connection ...
0
votes
1answer
59 views

ls *.csv --ignore=“*pattern*” returns files which contain “pattern”

Why does ls --ignore not ignoring the pattern? Looking at the below example: mkdir books cd books touch books_abby.csv touch books_karen.csv touch books_david.csv touch books_tom.csv This creates ...
0
votes
2answers
74 views

ubuntu - get size of directory of empty files

I am testing a flat design to be used instead of sql db, it uses a nested directory structure with files. First I was thinking to store the data inside of the file but it's not more than 40 sign per ...
5
votes
3answers
169 views

Can I validate a large file download piecemeal over http

I'm downloading a large file over http via wget, 1.2TB. The download takes about a week and has contained corruptions twice now (failed md5 check, which takes days to run by itself). Is there a good ...
-1
votes
1answer
90 views

How can I check that all files on copied partitions are OK? [closed]

I've moved my OS and copied another data partition to new SSD with AOMEI Assistant's "Migrate OS to SSD" and "Partition copy" respectively. How can I check that every copied file and partitions in ...
0
votes
1answer
20 views

ASP.NET file created by one AppPool not readable from another

I have two ASP.NET applications, configured to have a read/write access to a shared NAS location that they use as a simple key-value file store. The NAS location is mapped locally to each application ...
2
votes
0answers
493 views

Virtualbox shared folder file permission

On windows host I run a debian server on virtualbox and I share a folder which is working mount -t vboxsf -o rw,,dmode=777,uid=33,gid=33 share /var/www/share I already done sudo usermod -aG ...
0
votes
1answer
461 views

How to find duplicate files against a reference directory structure in Linux

There are a couple of duplicate file finders for Linux listed e.g. here. I have already tried fdupes and fslint. However, from what I have seen, these will find all duplicates of the selected ...
2
votes
1answer
58 views

Is there a standard tool to trim cache directories?

I want to run a cron job that removes old entries in a cache directory, so that its total size is reduced to a certain amount of bytes. I've concocted this one line shell command, but I was wondering: ...
-1
votes
1answer
22 views

Removing IP Address From Files On Site (IIS)

I have an IIS server set up hosting my website (only 2 files now: index.htm and banner.png). I have a domain set up with GoDaddy and have forwarding set up in GoDaddy as well. So, when I type http://...
0
votes
1answer
32 views

Linux, search for extended attribute value

When a directory contains some files with non-empty extended attributes, all the attribute values can be shown as follows: $ getfattr -d * # file: file1 user.comment="comment1" # file: file2 user....
-2
votes
2answers
72 views

Which protocol to use for a barebones LAN file upload with mixed Unix and Windows clients

I have a set of about 20 embedded Unix clients who physically move from time to time. When they move into the range of a specific wireless AP, they will push a certain set of files to a Windows file ...
2
votes
1answer
79 views

Where's the global inputrc file in AIX?

I want to save my Readline settings globally for all bash users (it is installed on the system), but I cannot find the global configuration path, neither in /etc nor in /usr/etc. I also couldn't find ...
0
votes
1answer
571 views

Open files inside Windows Recycle Bin

I've done lots of research on trying to recover files from another user's recycle bin (Windows 10). They can just log in themselves, but I wanted to work on their ticket while they're out of office. ...
1
vote
1answer
253 views

nginx try_files not finding files in large directory (86k files)

To start out, the nginx config: server { listen 443 ssl; server_name example.com; ssl_certificate /example/fullchain.pem; ssl_certificate_key /example/privkey.pem; ...
0
votes
0answers
204 views

Delete my unison folder cant find how to sync again all

I run unison sync and it works perfect, but accidentally dropped the folder and now I cannot recover it. I tried to run unison again, but it returned Nothing to do: replicas have not changed since ...
0
votes
1answer
37 views

filenames including “/bin/sh” pattern are not served by apache

I have been tracking down a bug which I have reduced to the following case. We have a web server running apache and it doesn't serve filenames including "/bin/sh" pattern outside of the campus in ...
0
votes
1answer
43 views

File overwriting vs. Creating a new file

I have some utility, which should regularly create medium-sized plain-text file, every 10 minutes. As I understand, it will increase HDD wearout. (I use NTFS, i.e. NT file system). The question ...