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
0
votes
0 answers

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 my url, it gets displayed. is there a way to…
sasori
  • 175
  • 2
  • 11
0
votes
0 answers

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 error. How do i avoid the error when any one of the…
celcoprab
  • 43
  • 2
  • 3
  • 8
0
votes
1 answer

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 wrong creation date (changed instead of…
Jürgen Steinblock
  • 316
  • 1
  • 4
  • 16
0
votes
1 answer

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 again?
josph
  • 1
0
votes
2 answers

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 it with incrond, watching both directories for…
0
votes
2 answers

Large database in SQL Server Express 2008

I've got a large backup that I need to partially install into our instance of SQL Server express 2008. The backup file is over the 4096Mb limit that restricts SQL Server Express. Is there any way to do a partial restore? This database is from a…
0
votes
2 answers

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 saved to. Is there a fast and easy way to generate a…
0
votes
0 answers

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 the error message comes up. I think it has…
lnband
  • 1
  • 1
0
votes
1 answer

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 at the top of the list: Explicit Deny Explicit…
quangkid
  • 103
  • 5
0
votes
1 answer

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 - it will happily transfer the files ... but the…
user227963
  • 209
  • 1
  • 2
  • 11
0
votes
3 answers

How do I move user folders for many users to a new server?

I need to move two users folders on two separate drives on a main DC to another shared folder on a NAS. These user folders are the users main home drives. What is the best way to do this without doing it one at a time.
Rob
  • 607
  • 3
  • 8
  • 16
0
votes
2 answers

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

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 permanently off a drive such that the file can…
Dudemanword
  • 103
  • 2
-1
votes
1 answer

Maximum Image Files Stored In A Directory

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 variable height - Possible over 2000px if it's a set…
Wayne Six
  • 1
  • 1
-1
votes
1 answer

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 not quite sure how i should go about…
Mac
  • 115
  • 1
  • 1
  • 9