Questions tagged [files]
Organized data encoded in a pre-defined format and stored on a filesystem.
664
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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’`...
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:
...
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 &...
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 ...
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. ...
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 ...
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 ...
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 ...
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: ....
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 ...
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 ...
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
...
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 ...
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:
-...
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 ...
-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).
...
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 ...
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 ...
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 ...
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 ...
-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 ...
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/...
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 ...
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 ...
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 ...
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 ...
-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 ...
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 ...
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 ...
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?
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 ...
-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 ...
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 ...
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 ...
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 ...
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 ...
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?
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 ...
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/...
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=...
-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 ...
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 ...
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
...
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 ...