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

learn more… | top users | synonyms

7
votes
3answers
1k views

Sorting large binary files

Is there Unix utility for sorting large files containing fixed length binary records? In other words, I'm looking for something like sort(1) but for binary files with fixed length records. I could ...
3
votes
2answers
6k views

How do I get the last part of directory from a command line

How do I store the last part of directory in a variable? For example I have the following path: A\B\C\D, I want to store D in variable like file_name=D.
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 ...
8
votes
4answers
14k views

Moving a Logical Volume directly from one server to another over the network?

I have a KVM host machine with several VMs on it. Each VM uses a Logical Volume on the host. I need to copy the LVs to another host machine. Normally, I would use something like: dd if=/the/logical-...
0
votes
1answer
23 views

parse-server upload size limit , more than 100MB?

I am trying to upload a file to my parse server(using javascript sdk), but I need to make sure i can upload up to 500MB (for example). Is it possoible to be done in parse-server ? Can it be edited in ...
0
votes
2answers
10k views

Compress files to daily/weekly/monthly archives with Windows scheduled tasks

For EDI files which need to be archived, I would like to use a compression utility (like 7Zip) which collects and compresses files based on their file date. For example, a weekly archive (incoming-...
32
votes
6answers
33k 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
3k 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 ...
1
vote
1answer
1k views

Unable to upload a big file to server behind nginx as a reverse proxy

I use nginx as a reverse proxy. Behind it is coming apache hosing foo.com . In order to upload a big file, I set post_max_size = 20M and upload_max_filesize = 20M in php.ini . But I can't upload file ...
0
votes
1answer
42 views

Strange file appeared in my public_html [duplicate]

I was sending some files through FileZilla to my site when I noticed this strangely named file: \002\217a\333\\rb\004ݠ\025H\214d\277\\Z\304H\3328\f#\3641\ \tFA\001\\Z\272r\ \021\340\@\263\>\210\...
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 ...
15
votes
1answer
11k views

Is it possible to configure the location of “Temporary ASP.NET Files” folder in IIS?

Under IIS7.5 after switching pool identity to domain user I got this error: "The current identity (domain\username) does not have write access to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\...
0
votes
1answer
22 views

Can I edit a “live” log file?

I want to mark some log entries for a web server log file. Is it possible to do this while the file, possibly simultaneously, gets new entries added by the server?
0
votes
0answers
6 views

Multi-Folder/Site update of files

In our company we are hosting around 120+ sites on one of our servers, and we are bumping into the same scenario every few months. We find a bug in either an entire .html file or a class of a .css ...
8
votes
4answers
275 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 ...
11
votes
6answers
20k views

Recursively copying hidden files - Linux

Is there an easy way to recursively copy all hidden files in a directory to another directory? I would like to back up just all the settings files in a home directory, not the normal files. I tried: ...
12
votes
4answers
47k 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
19 views

Vanishing files on Ubuntu

I have an Ubuntu 14.04 web server installed on an Azure virtual machine. I am encountering a strange issue, where on seemingly random occasions files or directories are suddenly deleted without ...
-4
votes
1answer
44 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 ...
0
votes
0answers
23 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 ...
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
17 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 ...
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 /var/lib/svn/repos/b1me/products/payone/generic/...
2
votes
6answers
9k 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
131 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
62 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 ...
0
votes
0answers
24 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
45 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
13k 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: ...
6
votes
3answers
21k 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
869 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
80 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
871 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
202 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
11k 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
30k 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). I'...
0
votes
1answer
52 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
22 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
100k 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, etc)...
6
votes
4answers
273 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
55 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?
141
votes
13answers
155k 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
23k 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 ...