A computer file is a block of arbitrary information, or resource for storing information, which is available to a computer program and is usually based on some kind of durable (disk) storage. A file is durable in the sense that it remains available for programs to use after the current program has ...
1
vote
1answer
115 views
Deleting a huge 500G does not free disk space
I have a remote server here running Ubuntu (Server Edition).
Yesterday I noticed that 100% of my harddisk space was occupied. There was a log file that grew bigger and bigger, so I deleted it via rm ...
1
vote
0answers
27 views
Looking for a “file/dir modification tracker” software for linux
I am looking for a tool that could ease tracking of file modification times of a number of files/directories placed on NFS mounts.
The idea is that in a multi-user environment where some files are ...
1
vote
2answers
43 views
How to manipulate accented files on Unix?
On our CMS that went through many versions and hosting platforms, we just came across an accented image file that would not work from it's url. So I ssh'd onto the box and tried to rename it.
...
0
votes
2answers
62 views
Netcat UDP File Transfer?
Is there any way to send a file (picture or video) using Netcat and UDP. It defaults as TCP, but I would like to send using UDP. I tried simply adding -u to the nc command, but that didn't work. Here ...
0
votes
2answers
63 views
Why are changes in a file so slow? (Apache Tomcat)
I got an Apache Tomcat 7 server. If I change a file on the server (for example stylesheet, javascript file or any plain/text file), for example using vim. Then if I go to the file in an internet ...
-1
votes
0answers
29 views
Could anyone suggest a way to serve files via http and also provide a search facility? [closed]
I am looking for a simple way to serve 5 terabytes of data (scientific data, not piracy). Millions of files and my budget is 0 dollars. Therefore I was hoping if somebody could suggest a nice way to ...
0
votes
1answer
91 views
cannot write to nginx www folder
I've recently installed nginx on my dev machine with Ubuntu 12.04.
I am currently logged in as myuser and after installing nginx I setup the following file permissions (nginx www folder was owned by ...
1
vote
2answers
54 views
Amazon Elastic Beanstalk - Any file managers?
Are there any file manager UIs I can use with Elastic Beanstalk (upload,view,etc)? Does the AWS Management Console include one? I'm doing PHP and HTML.
1
vote
3answers
34 views
How to see when what processes have accessed certain files
There is a directory on our server where we manually copy files to, and then some magical procedure runs at night to process these fiels and rename them. This was setup before I got here, and I can't ...
0
votes
2answers
115 views
NFS cache : file content not updated on client when modified on server
Here's my set up: One NFS Server machine (v4), several NFS client machines.
When a client machine write files to the NFS mount, the other clients see the new content instantly : no problem.
But, ...
0
votes
1answer
30 views
SBS 2008 Duplicate Files - what can I delete
I'm trying to look after my company's SBS 2008 server. It keeps running out of space on the C: (OS)drive, so Exchange stops when it gets down to 4Gb free space. From what I can tell after the last ...
0
votes
1answer
28 views
Folder/files access permission
I have office laptop registered into domain (wins server 2003) used by Bill with several access to folder/files in server, then Bill replaced by other staff, Mark. Laptop used by Bill are now used by ...
0
votes
1answer
133 views
File downloaded with wget has wrong encoding
We have a page on our intranet which is just plain/text encoded in UTF-8 and it contais insert scripts for database. And problem is, when I download this page to a file with wget or curl, my ...
0
votes
1answer
47 views
using command line to extract large db file
I have a large database file (1.5GB) named file.sql, I use "source" command to extract it into mysql databse but I receive lots of error messages. It used to work fine.
Here is a snapshot of part of ...
1
vote
2answers
67 views
downloading a large database
I tried to export a large sized database using phpmyadmin but later the downloaded file seems to be of incorrect size, many of the tables inside the database are eliminated during download. The file ...
2
votes
2answers
34 views
*nix behavor, when overwriting a file that's open by another process using mv
Will the other process be able to finish reading the old file even though it's been replaced?
9
votes
4answers
350 views
How do I most efficiently store and serve 1,000,000+ small gziped files on a Linux web server?
I have large static content that I have to deliver via a Linux-based webserver. It is a set of over one million small, gzip files. 90% of the files are less than 1K and the remaining files are at most ...
0
votes
1answer
133 views
Windows NTFS Permissions replacing child objects bulk
I have about 300 home user folders in a homes share. Each user has modify permissions to their own folder. They are connected to the folder via Active Directory with the \filerserver\homes$\%username% ...
0
votes
2answers
83 views
Hov to _MOVE_ files with scp?
How to not copy but move files from one server to another (both Linux)?
man scp didn't give me nothing useful. Just say 'scp' then 'rm' is not the solution because I must make sure file is ...
0
votes
1answer
72 views
ubuntu change default files and folders permission
i have ubuntu 10.04 on my server. when i was create a file by ftp, php and ... files permission is 600 and folders is 700. how can i change default files permission into 644 and folders to 755?
...
3
votes
1answer
140 views
Why does robocopy take 8 hours to transfer one files that is 70-80gb?
We have a scheduled task that runs every night and copies a file of around 70-80gb from one server to another on our network. For some reason it has been taking ~8 hours to do this, which is a problem ...
0
votes
2answers
86 views
Change all file permissions to 644 and all folder permissions to 755 recursively
How to change all file permissions to 644 and all folder permissions to 755 recursively using chmod in the following two situation:
If they had 777 permissions
Regardless of the permission (with ANY ...
1
vote
1answer
83 views
Windows server files and folders permissions mess
I have a Windows Server 2008 R2 box, which is set up as a very basic file server in a Workgroup environment. We have a single Shared folder, with subfolders for each department. For some reason all ...
0
votes
1answer
81 views
synchronization between two (or more) file servers : block open files to avoid conflicts
"Short version": When a user opens a file on a local share, other users can open only in read-only, until it is closed.
I want this to be true for the remote copy of the file: read-only when the local ...
2
votes
3answers
125 views
IOs reads writes per file
My target is to equally separate mysql database across the number of drives, using symbolic links on tables.
Now I can not seem to find the way to check IOs, reads, writes per table on mysql.
So now ...
0
votes
1answer
43 views
Django Dynamic File Name
A beginner Django guy here, I am looking to change my csv export file name to be dynamic hopefully naming the file with the date it was generated.
My current code is
response['Content-Disposition'] ...
0
votes
1answer
90 views
A uploaded file is 0 byte on Amazon S3 using django
I've symbolic linked a S3 directory on my EC2 server. But a uploaded file was 0 byte when I uploaded file. It was work well before (I used just web server directory)
I don't have any idea dealing ...
0
votes
3answers
204 views
Read-only file system VPS SSH error
I have a VPS and today I noticed apache was not running, I got in SSH, the httpd status says:
[root@adrimail ~]# service httpd status
httpd dead but pid file exists
Tried to restart it and I get ...
2
votes
1answer
62 views
What would cause a successful file transfer to have checksums not match?
After very large file transfers (this only happens with 10gig+ files) to a specific system, the receiving system would have a mismatched checksum of the file.
The transfer seems to have happened ...
1
vote
1answer
74 views
MySQL file limit. Error Out of resources
I was benchmarking my database the other day using mysqlslap, and I ran into a "Out of resources when opening file '/tmp/somefile' (Errcode: 24)" error.
I with a few click on google, I found a ...
1
vote
5answers
113 views
reverting file owner on CentOS
By mistake I ran a stupid command with a typo in it.
I created a user "teamspeak" and I wanted to change file owner of current directory and it's sub directories, but by mistake I ran it in the "/".
...
2
votes
3answers
127 views
How to configure Web/FTP Server so that it downloads .sh files instead of showing its content
I have an FTP server (vsftpd) where there are many files of various types. Normally when you click on .tar.gz file in your browser, it starts downloading it.
The problem is when user clicks on .sh ...
1
vote
0answers
30 views
If a file in a sites url has the name of a new domain but isn't where I'll point the domain, then what? [closed]
I will be giving a google apps web site the name of a new domain.
The name currently points to a wordpress blog.
My site can be found at https://sites.google.com/a/example.com/getreal/
It is the ...
0
votes
0answers
29 views
CentOS server for filesyncing [closed]
I am gonna be setting up a CentOS server for filesyncing and whatnot... is there a particular server (or kind of server) that I should buy which is better for these purposes?
1
vote
1answer
90 views
Least, secure and enough permissions for public_html and folders and files under public_html using SuPHP
I have a server with SuPHP and DirectAdmin. Many (but not ALL) of my users are running Joomla and Wordpress. Will it make a problem if I chmod public_html and sub-folders to 700? Will they NEED more ...
-2
votes
2answers
59 views
How can I read PHP file contents knowing only the link ? [closed]
I would like to read the contents of PHP file that is on located on some server: How can I do it ?
The only thing I know is the link.
0
votes
2answers
44 views
Difference between default new file and new directory permissions
My umask is 0022
When I create directory using
mkdir mydir
the permissions I get are drwxr-xr-x
However when I create file
touch file
the permissions I get are -rw-r--r--
Why do directories ...
4
votes
2answers
82 views
Fastest way to copy folder that contains many files via SSH
What is the best way to duplicate files on server via ssh?
In my case: I'm talking about duplicating magento shop. (15000 files ~ 50MB)
cp -a source destination
Is taking hours... (in my case ...
1
vote
4answers
103 views
GREP show lines that contain this but not that
I would like to search for lines that contain "uploaded" but do not contain "09"
Is there a way to do this with grep?
(CentOS 5.6 if it matters).
1
vote
3answers
81 views
What is the fastest protocol for transferring small files between a high latency VPN?
I have ~70ms latency over my VPN connection and need to set up a backup/replication system. SMB is the worst, with throughput ~200KB/s. SCP gives me ~400KB/s. HTTP ~700KB/s. The links are symmetric ...
-1
votes
1answer
84 views
cPanel File Manager Upload Not Working
I have recently tried to upload a file through cPanel File Manager and it is stuck at "Starting upload…". It doesn't show any percentage or any sign of starting. The file in question is only a few KB ...
0
votes
3answers
107 views
Batch File Syntax to get files from FTP server
I have trouble getting all files from an FTP Server. Usually I get all files using the command line/terminal with syntax the following syntax: get a.txt (very, very time wasting with login ...
0
votes
0answers
77 views
Rsync receives incremental file list, but doesn't transfer
I am trying to use Rsync to transfer files between two servers. Rsync builds the incremental file list, but doesn't transfer anything. I am using Ubuntu Server on both machines. I am using the ...
8
votes
5answers
520 views
How do I append a specific number of null bytes to a file?
I have a script that writes to a few files but I need them a specific size. So I'm wondering if there's a way of appending a specific number of null bytes from /dev/zero or however to a file?
0
votes
1answer
44 views
make vfs linux cache more inclined to keep inodes over actual file contents
I am using a centos 5 (2.6.18-194.el5).
I need to be able to list files very quickly, in order for my rsync backup to be efficient.
I don't really need to cache file contents, because file access ...
2
votes
2answers
52 views
What command should I use to find the file with the maximum size in a certain folder
What command should I use to find the file with the maximum size in a certain folder containing sub-directories which are several level deep. (in windows / linux)
1
vote
3answers
69 views
How To Setup A Centralized Repo To Distribute Files To Servers
Assume I have dozens, even hundreds of servers. What is the best method of pushing a central copy of files to a given directory to all servers? Example, we update a bash script, and put it on a ...
1
vote
2answers
101 views
Split large sql file by location of string OR start sql from last fail
I have a 15GB sql file which is a backup of a database. The problem I have is that half way through it, it failed. Luckily, I know which table to pick up from.
Is there a way I can split this SQL ...
1
vote
2answers
148 views
Cisco router - edit or view file content in telnet
Is there a command for editing (or at least viewing) text file content (that is on flash card) ?
0
votes
1answer
185 views
tuning linux cache settings for inode caching
I am dealing with hundred million files in a filesystem (distributed among a lot of subdirectories), and I need to be able to list them very quickly, particularly in order to rsync them efficiently.
...