Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [files]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

Azure Storage Lifecycle Management Policy - Filter by Extension

I want to utilize Lifecycle Management (LCM) policies on one of our storage accounts, mainly switch from cool tier to archive tier after X days. I have various blobs in this storage account as well as ...
user avatar
  • 578
0 votes
1 answer
245 views

Where to find the website folder in ubuntu server?

So someone gave me the task to find where is the website code exist on ubuntu server when I look at the the index.html file path it is /var/www/example.com/html but when I go to /var/www directory I ...
user avatar
1 vote
1 answer
186 views

How to trigger an event after saving a chosen csv file in Google Cloud Storage bucket

Trying to make a synchronous pipeline, I need to copy a csv file from Google Cloud Storage after it has been saved in Google Cloud Storage. The copy job does not have to be triggered right after the ...
user avatar
1 vote
1 answer
19 views

Questions about Debian OpenDLAP configuration

I have the slapd/stable,now 2.4.57+dfsg-3 amd64 Debian 11 package. I read the official OpenLDAP documentation and Debian article. But I cannot understand the difference between the multiple ...
user avatar
0 votes
0 answers
23 views

A tool to split tree into subtree groups

Let's say I have a textfile with an exported list of filenames (e.g. files that have been created too long time ago or that are too large). The list is pretty huge (100k+ files). I don't have direct ...
user avatar
  • 183
0 votes
1 answer
76 views

How can I search for symlinks that point to other symlinks? [closed]

I have morass of chained symlinks like this scattered around: A (symlink) -> B (symlink) -> C (file) Some may even involve longer chains, I'm not sure yet. When manually examining a single file ...
user avatar
0 votes
0 answers
27 views

strange file in public_html folder wordpress [duplicate]

I found some strange file named as "zi1mQiuH" inside of public_html folder. the file size is 5GB Inside that file the code is like below format PK "¥R .well-known/UT ðk’`...
user avatar
0 votes
0 answers
42 views

How to merge two data sources with slightly different folder names

How can I copy all .msg files that are spread throughout some GUID sub-folders in one folder to another folder that has a slightly different folder name at the end. Is it possible? So for example: ...
user avatar
  • 1
1 vote
0 answers
68 views

How can a file be visible to a regular user but non-existent to root?

I have asked this question yesterday but it was marked as duplicate and closed because of its context, as it was thought to be an X/Y question, whereas I was just interested in the general matter of &...
user avatar
2 votes
1 answer
468 views

Why is AWS S3 Object count is measured iin units used to measure file size?

In AWS, the files/objects are stored in S3 bucket and the files/object count should list the total no of files/objects stored in S3 bucket as an INTEGER value. But I see the S3 object count as ...
user avatar
0 votes
1 answer
47 views

What could cause files to end up zeroed out?

A client sent us an external hard drive where at least half the files are corrupt. They are broad mix of filetypes (images, documents, etc) and there is no discernible pattern into which are corrupt. ...
user avatar
0 votes
0 answers
21 views

How can i find files and directories with incorrect permissions(perm that i don't not want) and then change only those

I am sure there is an easy way of doing this either with a script or possibly with a one-liner, which would be great. basically, i want directories to be changed to 775 only if perm doesn't currently ...
user avatar
  • 1
0 votes
1 answer
261 views

Drupal 9 files storage on Azure App service

Been fighting with the problem for a month now. Have Drupal 9 set up on Azure App service with docker images running php8 (base image drupal:9.1.7-php8.0-apache) I have found out that there are two ...
user avatar
0 votes
0 answers
51 views

Deleted public_html without reason

I had a problem today in the morning which I am still trying to figure it out, so it does not happen again. Somehow a lot of files from public_html got deleted, except one folder. I did not delete ...
user avatar
0 votes
1 answer
57 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: ....
user avatar
0 votes
1 answer
19 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 ...
user avatar
0 votes
1 answer
74 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 ...
user avatar
  • 43
1 vote
2 answers
131 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 ...
user avatar
0 votes
0 answers
22 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 ...
user avatar
  • 175
2 votes
2 answers
170 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: -...
user avatar
  • 381
0 votes
0 answers
79 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 ...
user avatar
-2 votes
1 answer
646 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). ...
user avatar
  • 111
0 votes
1 answer
108 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 ...
user avatar
0 votes
1 answer
79 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 ...
user avatar
  • 1
0 votes
2 answers
85 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 1
-2 votes
1 answer
129 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 ...
user avatar
1 vote
0 answers
87 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/...
user avatar
2 votes
1 answer
231 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 ...
user avatar
  • 23
0 votes
0 answers
1k 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 ...
user avatar
  • 1
0 votes
1 answer
840 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 ...
user avatar
  • 101
0 votes
1 answer
221 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 ...
user avatar
-1 votes
1 answer
108 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 ...
user avatar
  • 1
1 vote
1 answer
675 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 ...
user avatar
1 vote
2 answers
32 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 ...
user avatar
  • 113
0 votes
2 answers
64 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?
user avatar
0 votes
2 answers
50 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 ...
user avatar
-1 votes
1 answer
52 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 ...
user avatar
1 vote
1 answer
735 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 ...
user avatar
  • 11
1 vote
1 answer
333 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 ...
user avatar
  • 11
1 vote
1 answer
830 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 ...
user avatar
  • 147
10 votes
3 answers
14k 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 ...
user avatar
  • 670
0 votes
1 answer
35 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?
user avatar
1 vote
0 answers
28 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 ...
user avatar
0 votes
0 answers
158 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/...
user avatar
0 votes
1 answer
976 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=...
user avatar
-1 votes
1 answer
39 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 ...
user avatar
1 vote
2 answers
6k 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 ...
user avatar
  • 13
2 votes
1 answer
769 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 ...
user avatar
1 vote
2 answers
663 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 ...
user avatar
  • 111

1
2 3 4 5
14