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

learn more… | top users | synonyms

-1
votes
1answer
7 views

Unable to upload file on FTp

My server is CentOS-6.2-64bit. I have made following changes in php.ini file: memory_limit = 7G post_max_size = 6G upload_max_filesize = 5G But unable to upload 5GB file on server. Guide me to ...
8
votes
3answers
148 views

Bash one-liner to atomically create a file if it doesn't exist

I want a Bash one-liner that atomically creates a file if it doesn't exist. That means essentially "if file doesn't exist, create it" but ensuring that no one else manages to create the file in the ...
0
votes
0answers
20 views

Prevent Windows Installer from copying all files while installing from USB flash

Is there any option (probably using Autounattend.xml) that will prevent the Windows installer to copy all files from USB flash to the C:\Windows folder while installing? Eg: the installation media ...
0
votes
0answers
36 views

Delay after file adjustment on FreeBSD [on hold]

The files that we adjust need up to a minute for the adjustments to become visible. This has become a true annoyance when we need the adjustments to apply instantaneously. The method of adjusting does ...
2
votes
2answers
2k views

Disabling filecaching during copy of large files on Windows 2012, Windows 2012R2

I've huge problems with backup of Hyper-V on handful of HOSTS. During backup done by the software some machines become unavailable, host starts dying etc. We tracked this to not the software itself ...
0
votes
2answers
2k views

Can access website but images, css stylesheets and javascript files do not download

i have this problem, not sure about the source of it, Basically the title describes the issue, I can access the webpage and see the html structure, but no resources are being donwloaded nor I have ...
1
vote
1answer
81 views

File downloads dry out?

Bare with me as I'm not even sure what to search for exactly. So couple of our users reported problems downloading zip files from our server. Downloads start but they dry out son. They basically stop ...
10
votes
1answer
3k views

Why does getfattr not display anything for a file that has the extended attribute bit set?

I've got a Nagios XI install running on CentOS 6.2, and want to modify the backup script. I noticed that the extended attribute bit is set for this shell script, so I want to be sure not to mess ...
0
votes
0answers
12 views

Write important libs after deleting file-libs accidentally on CentOS?

this is what seems to be my biggest fault since working on servers: I'm fighting yum rpmdb issues for the whole evening and accidentally deleted krb5-libs and file-libs. This leads to missing ...
1
vote
2answers
1k views

PowerShell filter files by date in name

I have many files with different names per day. How can I filter them by the date in their name? For example: app_20130505.log app_20130506.log app_20130507.log app_20130508.log app_20130509.log ...
6
votes
5answers
7k views

Windows File Sharing Orphaned File Locks

Over the past few weeks the company I work for has been having issues on their server wherein a file gets locked by something, and can't be unlocked. These files are almost always files that are being ...
1
vote
3answers
1k views

how i can add Add text at the beginning of each line?

how i can add Add text at the beginning of each line? for example:- i have file contain:- /var/lib/svn/repos/b1me/products/payone/generic/code/core ...
2
votes
6answers
8k views

How to deny the web access to some files?

I need to do an operation a bit strange. First, i run on Debian, apache2 (which 'runs' as user www-data) So, I have simple text file with .txt ot .ini, or whatever extension, doesnt matter. These ...
2
votes
3answers
124 views

Debian - how to prevent global read access for all files?

In my debian all files, even the system ones have permissions rw-r--r--, so it means that all users can view ANY file even some system configuration or database files and so on. How do I prevent ...
0
votes
1answer
29 views

Using nginx try_files and custom error pages for the main location block?

When using try_files in nginx, is there a way to specify and use a custom error_page only after it has tried each URI specified in the try_files directive? The below configuration does not work: ...
0
votes
2answers
2k views

How to get Proftpd to completely hide a directory

Within my ftp tree there is a directory that I don't want to be accessible via anonymous. I am able to hide the directory in question and all the files within the directory. What I have not been ...
9
votes
4answers
41k views

Move files to another directory which are older than a date

I am looking for a solution to move files that are year older from today. My log partition is getting full, but I can not remove them. They are needed for a long long time. Anyway one solution I came ...
0
votes
0answers
18 views

How to capture configuration files from saltstack minion and store them on git?

I'm trying to use salt to manage the configurations from systems that have configuration files in many different locations (but within a given account). My intent is not only deploy the files in ...
0
votes
2answers
31 views

Serving images from two different directories with Nginx

This should be basic... I'm brand new, and no amount of googling and searching stack exchange is helping. I have a website that I want to be able to serve images from, from different directories. I ...
7
votes
7answers
12k views

Get total files size from a file containing a file list

I have a file containing a list of files that I would like to know the total files size. Is there a command to do so? My OS is a very basic linux (Qnap TS-410). EDIT: A few lines from the file: ...
5
votes
3answers
19k views

How to view hidden files using Linux `find` command

On a Linux server, I need to find all files with a certain file extension in the current directory and all sub-directories. Previously, I have always using the following command: find . -type f | ...
1
vote
2answers
765 views

Use temporary filename during upload in PureFTP

Is it possible to configue Pure-fptd to use a temporary filename during upload? At the moment files that are uploaded are given their final name from the very start of the upload. I would like it to ...
-2
votes
2answers
54 views

How To Optimize Huge Directory of Images

I took over the tech operations at a small company. However, the previous lead made the erroneous decision of storing 100's of GB's of images, even though our website only ever uses around 5GB of ...
0
votes
1answer
64 views

How to maintain ssh connection for multiple scp transfers?

I'm using the scp command to copy files from my local machine (ArchLinux) to my server (CentOS 6.5). But for each scp command a new connection is established and although I'm using SSH keys for ...
1
vote
4answers
835 views

.php file blank - .php5 files works

I have a problem with a server of mine. I've installed virtualmin/webin on it for administration and I have 1 domain on it. DNS management is external. On this domain I only have an html "Under ...
2
votes
8answers
4k views

Can't unmount a loop backed file but there's no open files?

On linux, I have a file that I've mounted using the -o loop option. I want to unmount it. However it tells me that device is busy. However by doing lsof | grep pathofimagefile I get no results. And ...
1
vote
1answer
190 views

Linux Find File with Exact Size

In the Linux command line, how can I find all files exactly 158 kB in size? I was using the following command but it didn't work: find /var/www/ -xdev -type f -size 158k
5
votes
2answers
9k views

nginx uLimit 'worker_connections exceed open file resource limit: 1024'

I keep getting this error in nginx/error.log and its driving me nuts: 8096 worker_connections exceed open file resource limit: 1024 I've tried everything I can think of and cant figure out what is ...
1
vote
3answers
29k views

Script to delete temp files for all users in XP, Vista, and 7

Basically, we have numerous customers running XP and 7 with a few Vista machines. I've found this batch script, but it is limited to the current user (uses the %userprofile% environment variable). ...
0
votes
1answer
39 views

Replacement for Offline Files

We're trying to use IIS shared configuration on Server Core 2012 R2. It works perfectly with one exception which is that if the SMB share that stores the IIS config files goes offline IIS crashes ...
0
votes
0answers
18 views

parse_failed error occured in augeas,why this error occur and how to fix this issue?

I want to edit file "myfileDB.properties" using augeas. so used Properties.lns. but it made error "parse_failed"and some time "parse_skel_failed". explain the root cause of this error and solve this ...
0
votes
1answer
23 views

FTP file size limit

I have a webhost account, which has a file size limit, so cannot upload my backup file. How can I upload it maybe in more pieces and after that merge pieces on server? I don't have SSH access.
3
votes
7answers
96k views

Why am I getting 'File in use by Another User' and 'Application Sharing Violation' errors when trying to open & and save files?

We're getting this a lot lately. Windows 2008 Server Windows 7 & Vista Client PC's Microsoft Office 2007 When a user tries opening a file on our network drive (word doc, excel spreadsheet, ...
5
votes
4answers
234 views

rsync directory so all changes appear atomically

I do some nightly and weekly mirrors of frequently used repositories for the local network. On a few occasions, someone has tried to do an update while the rsync is happening and failed because the ...
0
votes
2answers
47 views

Inotify/iwatch cannot see when more files created at the same time

I would need a script that can check files when they are getting uploaded/created on the server. I wrote the script that checks, but I would like to make it run when a create event happens. I tried ...
11
votes
8answers
15k views

Is it possible to hide lost+found?

Given a partition intended solely for storing music, video and so-on, is it possible to hide the lost+found directory?
130
votes
13answers
145k views

Copying a large directory tree locally? cp or rsync?

I have to copy a large directory tree, about 1.8 TB. It's all local. Out of habit I'd use rsync, however I wonder if there's much point, and if I should rather use cp. I'm worried about permissions ...
21
votes
2answers
22k views

How to delete .fuse_hidden* files?

I have small Linux server (Debian Squeeze) which runs a Samba server which is configured to share some folders with some windows machines. While trying to delete one of the directories from windows I ...
2
votes
3answers
17k views

Windows Server 2008 R2 max open files limit

Does Windows Server 2008 R2 have similar limitations to maximum number of opened files like linux have?
1
vote
1answer
494 views

Automatically retrieve a specific file via SFTP

How do I determine which file is the newest from a remote server that I am connected to via SFTP? My goal is to retrieve a specific file each day, via SFTP. The steps I will follow are: Connect to ...
91
votes
8answers
136k views

How do I create a symbolic link in Windows?

Windows Vista added the ability to create symbolic links to files and directories. How do I create a symbolic link and what are the current consumer and server versions of Windows that support it?
31
votes
5answers
31k views

How to make scp copy hidden files?

I often use SCP to copy files around - particularly web-related files. The problem is that whenever I do this, I can't get my command to copy hidden files (eg, .htaccess). I typically invoke this: ...
3
votes
2answers
276 views

What are these zero-length files created by Apache in the tmp directory?

Any ideas on why apache (httpd) creates these files in /tmp? I'm on Redhat 5.5 and Apache 2.2, mpm-prefork. -rw-------. 1 apache apache 0 Aug 14 12:46 filec1puD5 -rw-------. 1 apache apache ...
2
votes
2answers
5k views

How to find hidden/cloak files in Windows 2003?

Here is the point. I set Windows to display all the hidden files and protected operating system files but even after that, my antivirus (Kaspersky) is still getting a ".dll" file on ...
0
votes
2answers
25 views

Using the output of a program as the contents of a file, dynamically

In Linux, I would like to create a file where the contents of the file are dynamically generated by the output of a program. The examples which already exist are /dev/random /dev/urandom, /dev/zero, ...
1
vote
2answers
46 views

Linux - wrapper to monitor an application's file access? [closed]

Are there any user-level wrapper-like scripts/programs that can watch what files an application accesses, without impacting performance? I'm trying to capture what files are produced by an automated ...
-1
votes
1answer
25 views

Why du -sh * tells me sys has 0 size?

I use du -sh * to find out the size of folders, but the sys folder is giving me 0, and the same about any folder inside sys. find . | wc -l gives me 11k files. Do you know why and can you suggest a ...
0
votes
1answer
72 views

Could not evaluate: Could not retrieve information from environment bootmaster source(s)

Feeling like a complete newbie to puppet (I admit I am very rusty :-) So my manifest/site.pp file contains. file {"/tmp/findme.txt": source => "puppet:///modules/concat/concatfragments.rb" ...
0
votes
1answer
21 views

Directory vs Files for efficient search and retrieval of files

I am working on a website where users have ability to store all kinds of media on the server and there can be any number of users. I thought I would store all the media which users upload like this: ...
1
vote
1answer
45 views

How to pipe a file being written to?

I have a binary file that is being written to continuously. I need to read the full content of that file to a pipe (either to nc or to a FIFO) and keep reading it while its is written (i.e. the ...