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

learn more… | top users | synonyms

0
votes
2answers
968 views

copy all *.mkv in subdirectories to parent directory

Roughly, I have a folder setup like this on a linux server: /show/season01/show01/shows01e01.mkv /show/season02/show01/shows02e01.mkv /show/season03/show01/shows03e01.mkv I want to eliminate the ...
2
votes
7answers
2k views

Massive amount of subfolders and long subfolders. How can I delete all of them?

We have a little problem here. We have a share with the backup of all the server's offices, Its a really big share with more than 8.000.000 files. Our users usually give long names to the folders ...
4
votes
6answers
14k views

How to rename multiple files by replacing word in file name?

Replace ACDC to AC-DC For example we have these files ACDC - Rock N' Roll Ain't Noise Pollution.xxx ACDC - Rocker.xxx ACDC - Shoot To Thrill.xxx I want them to become: AC-DC - ...
0
votes
2answers
1k 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 ...
0
votes
2answers
631 views

Clearing out deleted memory mapped files quicker?

We use Tika for PDF text content extraction for searching. I'm seeing heavy use of temporary files that seem to now run us out of file handles. We're on CentOS 5.5. For our search system, we had ...
0
votes
2answers
349 views

copy files created in one folder to multiple other folders on linux

I'm looking for a way to copy photos that are uploaded to one folder to many other folders and visa versa. Example: a photo is uploaded to folder 1, it is then copied to folders 2-5. And if a photo ...
3
votes
3answers
3k views

monitor open process files on linux (real-time)

The files opened by XYZ process can be found with the command ls -l /proc/PID/fd Is there anyway that can be done in a more interactive way like tail auto-refreshing every x seconds? Thank you.
0
votes
1answer
80 views

Any cloud storage for backups (upload by passing a http-link)

We have our backups available via direct http and we are serching for a cloud provider with a feature: We should give a backup http or ftp link to it`s control panel or api and it should upload this ...
1
vote
1answer
208 views

Merge 2 sql files

i made a backup of a old sql database and wont overwrite the new one. is that a way i can merge them?
14
votes
9answers
34k views

Linux (mv or cp) specific files from a text list of files?

I have a directory of many files, something like 50,000 pdf's and other files on a server. I need to move specific ones to another directory. I can generate a list of the files that need to be moved ...
0
votes
2answers
2k views

Removal of old mail logs in ubuntu - rm or not?

I have a ubuntu server which handles mail via postfix. The server has recently been caned by spam emails and the mail logs are really large as a consequence. The logs are stored with timestamps and I ...
1
vote
2answers
4k views

how to find usb storage devices on esxi server?

We are looking at temporarily mounting an external hard disk on USB to an ESX1 v4 server from VMware. In /var/log/messages, we see the messages of the device being connected, but we cannot figure out ...
0
votes
1answer
23 views

Synchronise when an instance of Server 2008 is brought up in Amazon

What is built into Windows server to allow the replication of files from a "Master" folder on the main server to be copied over to the instance that was just CREATED in the amazon control panel? The ...
0
votes
1answer
81 views

CGI file executes only on local machine, not online

I've got a CGI script written in python (starts with #!/usr/bin/env python) that executes fine on the server. I type in /home/company/server/root/adam/code.cgi and it outputs the right output. I go to ...
3
votes
6answers
3k views

How to administer files on a remote ubuntu machine?

I do not have very much linux experience. Previously I administered a debian machine on a local network by logging in as root, and using ftp as root. Now I m working with an Ubuntu machine, and ...
2
votes
3answers
4k views

Fast way to recursively count files in linux

I'm using the following to count the number of files in a directory, and its subdirectories: find . -type f | wc -l But I have half a million files in there, and the count takes a long time. Is ...
0
votes
1answer
431 views

Calculate the size of multiple folders accros network

We basically have ~250 users all running a mix of Windows XP and 7. All our users have been asked to place all their important files in a folder on their desktop called "Backup". I basically need to ...
0
votes
1answer
415 views

Intermittent issue involving fileserver

We're having an intermittent problem with our fileserver. It's using Windows Server 2003. Every now and then, when attempting to access it (ie. \servername), it brings up a login dialog box. No ...
2
votes
5answers
442 views

Any way to determine how files were deleted on Linux/Apache server?

PROBLEM: I have several missing directories on an offsite Linux/Apache server. I've tracked down about when they went missing from the httpd error logs, and I have a list of SSL logins to the machine ...
1
vote
4answers
225 views

Access filesystem underneath another mounted filesystem

The case I have is a directory that stores phone call recordings throughout the day. The root filesystem is running out of space so we added an external hard drive. This server may not be taken out ...
0
votes
3answers
273 views

how i can read file and store its containt in variable?

I want to store number in file for example file number.txt contain 3242 I want to real this file and store its contant in variable for example variable number_var = number.txt so that number_var = ...
0
votes
2answers
398 views

Retrieve My Documents After Being Removed From Domain

A friend of mine asked me to setup a home network which consists of a few computers and a printer as his employer had recently gone out of business. 2 of the laptops were brand new and 1 was his own ...
2
votes
4answers
2k views

Recommendation for syncing data on Windows Servers securely over the internet?

I have a Windows Server at a data center and an EC2 Windows Server running in the cloud. In the *Nix world I know the answer to sync these would be rsync. What are some good options for Windows? Is ...
3
votes
3answers
382 views

Recursively archive small files in document tree on linux?

Given a base directory (like /home/user) is there a command that could be run which would create an archive back up all text files (i.e. files less than 100kb) in that directory and it's children? I ...
0
votes
2answers
107 views

Restricting a folder in UNIX to accept files of only certain type (say images)

Is it possible we can run some command on some particular folder so that we can't file type except image in that folder ?
1
vote
3answers
216 views

What is the purpose of executable file access rights in Linux?

I never understood this, because if you have access to read a file, doesn't that mean you would be able to copy it somewhere else, thus allowing you to execute it anyway? What am I missing?
0
votes
3answers
3k views

SUDO permissions, file copy/chmod question?

So, I'm logged in as sudo, and seeing this... why? $ cd /var/www/drupal-6.19/sites/default $ ls default.settings.php $ sudo -v [sudo] password for sudo_username: $ cp default.settings.php ...
0
votes
1answer
533 views

how i can check if the path (file) exist or not in unix bash?

i want to check a path if exist or not before pass it as argument
1
vote
2answers
1k views

Is there a maximum limit of files per directory

If I were talking about a web hosting server, would there be a maximum limit of files per directory?
3
votes
2answers
4k views

Delete files older than X days on remote server with SCP/SFTP

Do anyone know some good way to delete files on remote server that are older than X days using just SCP/SFTP? Sure I can write some script on perl etc but I feel it's overkill. Any UNIX way? Oneliner? ...
1
vote
2answers
944 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 ...
0
votes
3answers
110 views

How can I make content of file as output of command?

I have a file contain list of path now I want to execute command on each line example :- file name : rawabdeh ....... command : command file contains:- path/no/1/ path/no/2/ path/no/3/ I want to ...
0
votes
2answers
108 views

how i can delete something from file?

i want to delete something from each line of file for example :- i have the following path in file : /var/lib/svn/repos/b1me/products/payone/generic/code/core/db/fs-type ...
0
votes
3answers
96 views

Can i still get to the old files once i transfer a cPanel account to another server

I've recently transfered a cPanel account to a new host and now i'm curious as to how i can access the files on the old server. I used to login to the cpanel of the old server with ...
0
votes
2answers
133 views

Register file changes to perform action

I have the following problem: I make some automated changes in my webserver config (through a web interface) and I want to restart the apache. Since none of the actions are performed by root I cannot ...
0
votes
2answers
697 views

Delete multiple files with special characters

I have a machine containing a large number of files that were originally created on a mac with some sort of special character in the name (not sure what). When I do an ls in a bash terminal, these ...
1
vote
1answer
650 views

Serving .cs / .csproj files on IIS7.5

I've got this small problem, I've got a HG repository server set up and it works fine (at least as far as being a repository & working with HG) I'm having a problem with the web view because it ...
3
votes
8answers
3k views

Remove files that are listed in a text file

I have a file that exported a bunch of file names that need to be removed. I need to know how to go about removing each file without having to issue it one at a time at the command line. I've ...
2
votes
3answers
318 views

How to use find to replace several files of the same name

I have several files of the same name (say, somefile.php) scattered within several directories under /var/ If I want to replace all of them with a new version of somefile.php located in, say, ...
0
votes
1answer
1k views

wget - specify directory and rename the file

I'm trying to download multiple files and need to rename as I download, how can I do that and specify the directory I want them to download to? I know i need to be using -P and -O to do this but it ...
1
vote
3answers
120 views

website backup: database content reliably matching static content without downtime?

If the server fries and all you have is your last backup, you at least want it to be congruent in itself / of high integrity. Well, I do. What I am worried about is that without downtime, one faces a ...
-2
votes
1answer
2k views

How can MediaFire afford unlimited storage space and bandwidth? [closed]

How can MediaFire (and other online storage websites) afford to offer unlimited storage space, as well as unlimited bandwidth?
0
votes
1answer
304 views

PHP script gives “failed to open stream: Permission denied” unless permissions allow public write

I have a php script in a directory called /manager. In it, I open and write to a file in the directory above /manager. However, if the permissions are set to allow owner write, I get "failed to open ...
2
votes
1answer
836 views

ZFS file deletion and its relationship to disk space

I deleted a large file (many gigs) from a Solaris system and it didn't seem to recover the amount of space on the zpool equal to the size of the file. Is there any reason that I wouldn't see this ...
4
votes
5answers
247 views

Remove a file with <Down> in the name?

So, on a CentOS box, I accidentally executed :w<Down> in a vim editor, with "<Down>" being literally pressing the down arrow key on the keyboard (rendered onscreen as "<Down>"), and ...
29
votes
6answers
19k views

Merge 2 directory trees in Linux without copying?

I have two directory trees with similar layouts, i.e. . |-- dir1 | |-- a | | |-- file1.txt | | `-- file2.txt | |-- b | | `-- file3.txt | `-- c | `-- file4.txt `-- ...
0
votes
2answers
1k views

htaccess exception / “deny from all except Paypal”

I spent my evening on this problem and I did not find how to solve/bypass it :-( I have in "mydomain.com/admin/" a .htaccess file with the following : <Files ~ "[^index]\.php$"> Order ...
3
votes
3answers
146 views

Testing for disk write

I'm writing an application for storing lots of images (size <5MB) on an ext3 filesystem, this is what I have for now. After some searching here on serverfault I have decided for a structure of ...
1
vote
1answer
192 views

Batch renaming 32000 files - splitting into multiple subdirectories

I've got a web server which has files uploaded to it. There is a script which assigns them numeric IDs and stores them in a corresponding subdirectory. I've now got 32000 of these uploads and that's ...
0
votes
2answers
1k views

File access with hostname or ip only - no domain?

Edit: I think part of the problem is I needed to use port 8080, but I'm still getting the "unable to connect" message. Is there anything I need to configure in /etc to make that accessible? -- It ...