Questions tagged [files]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
11 views

Cron to find multiple file types and automatically delete them

I am trying to put together a command that will find multiple file types and automatically delete them. I want to run this in a cron every 10 minutes on my server. I would like to find files of type: ....
0
votes
1answer
17 views

Compare two files to find the same output in each

I have a file1.txt and file2.txt i want to tell if all the information in file1 is in file2. If it is, then output it to file3.txt otherwise dont do anything. I looked at comm command and diff, but it ...
0
votes
1answer
30 views

User-Permission on Folder without affecting owner:group

How can I allow a specific user on my Ubuntu desktop to view/open all folders and files in a specific location without affecting or changing the owner:group of that location? Until now I need to ...
0
votes
0answers
27 views

Windows: Manually replaced program exe was back to old version after reboot. Can I verify what happend?

I witnessed my customer installing an older program by means of an .exe-based setup (built with install shield back when) on a freshly installed Windows 10 Pro under local Admin account, not domain-...
1
vote
2answers
120 views

GREP multiple lines that are not next to each other

I have a text file that looks like this: landlord: John Smith has: house: 0 flat: 5 available: 1 cheap: 0 quality: 1 landlord: Will Hall has: house: 3 flat: 4 available: 1 ...
0
votes
0answers
21 views

how to prevent my test.md and composer.json from being access publicly?

I have a test.md file which contains some written texts and a composer.json the problem is when i typed test.md along with the url of my site, it gets downloaded. if i type composer.json appended to ...
2
votes
2answers
125 views

How to manage a modified copy of a file?

Following this answer, I want to make a copy of OpenSSL's configuration, with a specific set of changes. The original file is out of my control, so I can't make it a template. At the moment I have: -...
0
votes
0answers
40 views

AWK to read multiple files in linux without duplicates

I have a task to merge three files in linux, so i used awk to achieve this task. hostsfiles is a variable which has test.txt test1.txt and test3.txt awk 1 {{ hostsfiles | join(' ') }} I get below ...
-2
votes
1answer
639 views

How to save to a “virtual local drive” and have the data streamed to a remote drive? [closed]

(This is for Windows computers.) So, the reason why I need this is not really important, but generally speaking... I have a program which takes a long time to generate a huge file (like 100's of GB). ...
0
votes
0answers
18 views

Can't Relocate Library from network to local

When I started with my company a few years ago my accounts were initially set up with offline file sync turned on for my libraries, i.e. Desktop, Documents, Downloads, etc, along with folder redirect ...
0
votes
1answer
37 views

change files changed time to created time

I have an apache web server which serves files over webdav (Ubuntu 18.04.5, Apache 2.4.29 with mod_dav enabled) I modifed the permissions with chmod on all files and now the webserver returns the ...
0
votes
1answer
70 views

What will happen to the files under domain after changing to a workgroup

I recently change from domain to a workgroup because of trust issue error, unfortunately I forgot to backup all my files in the domain, is it possible to recover my files after returning to the domain ...
0
votes
2answers
51 views

Trigger a command when two files have arrived in different directories in Centos 7

I need to launch a command when two files from different sources are present. Every file could arrive in different time, but I want to trigger the command when both were received. I have tried to do ...
0
votes
0answers
10 views

folder rights permisions from Wordpress

raised the server on Google Cloud Platform, with pre-installed WordPress now writes that the file wp-config.php not available for writing tried to connect via SSH, and throw the file there but did not ...
0
votes
1answer
419 views

Why is transferring large local files in PowerShell so slow for me

I am currently using PowerShell's Copy-Item commandlet to create a copy of a 500GB file and transferring it to another local hard drive on the computer. Doing it this way is really slow: a couple ...
-2
votes
1answer
119 views

How to generate file size statistics in Windows 7?

Say I have a PC connected to some experimental instrumentation. C: is the system partition with Windows 7 and all the programs on it, and D: is the storage partition where all the acquired data is ...
0
votes
0answers
20 views

Is it possible to have an alias directive apply to all files except one in a directory?

I would like to have an alias to a directory in order to serve static files, but I'd like that alias to not apply to one file in the directory so that I can serve it through a framework instead of ...
0
votes
0answers
290 views

multiple robocopy calls in one .bat file won't run

I'm trying to backup some files from my Windows server to an external USB drive using robocopy. Running robocopy tasks in cmd works fine but in the .bat it won't run and instead just echoes the ...
1
vote
0answers
60 views

AWS Windows 10 Error 0x80070780: The file cannot be accessed by the system

We have log files stored on one of our AWS machines, however, a significant amount of the log files have been corrupted without any clearly apparent reason. When trying to open/read/write/rename/...
0
votes
0answers
22 views

mass conversion of excel and word sheets to pdf

I hope everyone is safe and well. I have a user who has a tree structure with subfolders that contain excel sheets and word files on a file server. He would like to be able to print all the documents ...
2
votes
1answer
118 views

How do I know what the standard location is for putting server files on Linux systems?

I'm just getting into doing my own hosting, and it seems like there are often common practices for choosing file locations. For example, I found this website that says that there are standard places ...
0
votes
0answers
567 views

502 Bad Gateway when uploading files (NGINX and NodeJS)

I am developing an app where the user can upload files. While the backend call seems to work fine, the call when uploading files returns a 502 Bad Gateway message. The files actually get uploaded but ...
0
votes
1answer
297 views

Explanation :File permissions override folder permissions, unless the Full Control permission has been granted to the folder

According to the article: http://ntfs.com/ntfs-permissions-precedence.htm The hierarchy of precedence for the permissions can be summarized as follows, with the higher precedence permissions listed ...
0
votes
1answer
130 views

How can I rsync a directory that might be busy with updating files?

I would like to transfer a directory of files to a remote destination. Easy. However, at any given time, one or many of these files may be in-use and being updated by users. This doesn't bother rsync ...
-1
votes
1answer
107 views

Recover files on a Windows 7 host from a user who has been deleted from active directory?

Is there a way to recover data (Files, Programs, etc...) on a Windows 7 machine assigned to a specific Active directory user, that has since been deleted from Active Directory? For some reason the ...
1
vote
1answer
449 views

Modify Multiple Files Names with PowerShell in same directory

I'm a complete noob when it comes to powershell but I've been struggling with this one all day and not sure why. Each day, I will have a set of files in a directory. The files will be different ...
1
vote
2answers
24 views

Store sensitive files in a secure store

In a project that I'm working on we are required to temporarily store sensitive files (pdf, images, ...). These files are uploaded by a user over the internet and we would like to make sure that only ...
0
votes
2answers
40 views

read the first line in a file, given the file path in BASH

I have a file stored in a location /x/y/z/file.txt. There is only an unsigned integer stored in this file. How would I read it and store it into a variable?
0
votes
2answers
40 views

How do I unrecoverably remove a file/directory on a linux system?

Chucklehead A accidentally sent data to internal user Chucky B that this user is not supposed to see. Luckily, Chucky didn't see it. Other than wiping the drive, how can I delete the classified data ...
-1
votes
1answer
47 views

Why are some software packages so big? [closed]

Some packages that I install – which I assume contain nothing but code – are tens or even hundreds of MB. For example, I recently installed pytorch and the size of the binary was 428 MB. How can ...
1
vote
1answer
229 views

Download speed slowdowns on Google Compute Engine file server

I did set up simple file server running on Apache (2.4) on one of my Compute Engine instances. The problem is the download speed for some people drops to radically low speeds. They do download they ...
1
vote
1answer
169 views

Apache2 / PHP 7.4-fpm not downloading files but displaying them in browser

Apache2 using PHP 7.4-fpm is not downloading files but displaying them in browser Take a look here https://www.files.olokos.pl/wl/?id=MCeDihTf5XvHq8RCqbh81rlRoAACLIL8 I am not sure what happened as ...
1
vote
1answer
404 views

Windows Server 2019 file snapshot

Is there a way to recover data files that are accidentally deleted on a Windows 2019 Server file server? We have a pair of Win2k19 servers running DFS-R and sharing the folder for departmental data ...
5
votes
2answers
6k views

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

What files in node.js do I need?

I am planning to download node.js onto my server. I already have all the node_modules I need elsewhere. Does this mean I can delete the folder called node_modules in nodejs?
1
vote
0answers
27 views

Browse files on partially formatted drive

So I had a customer come in for data restoration when they had an installation fail which resulted in partial data loss. When booting into a live USB on the machine the drive shows up with lsblk as ...
0
votes
0answers
92 views

Process Monitor(Procmon) on Windows Server

I am having issue in one specific file which is used by Operating system and it seems to be locked and doesn't give access to my database. Since file is inaccessible by database, query/job/...
0
votes
1answer
653 views

How to split a file with round robin

I am reading the split --help but I am unsure how to execute this command with the round robin feature, can someone please give me an example Usage: split [OPTION]... [FILE [PREFIX]] -n, --number=...
-1
votes
1answer
27 views

Maximum Image Files Stored In A Directory [duplicate]

I've built a blogging system which allows multiple short posts to be added daily, each with a photo to represent the article content. So each photo is in JPG format and a max width of 280px, but a ...
0
votes
1answer
5k 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
391 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
449 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
412 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
219 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 ...
3
votes
1answer
306 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
127 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
80 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
1answer
1k 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
290 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
18 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 (...

1
2 3 4 5
14