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
39
votes
3 answers

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 used the following command: find . -type f | grep -i *.php However, it doesn't find hidden files,…
Tom
  • 4,277
  • 11
  • 42
  • 52
38
votes
3 answers

Does the Midnight Commander have an option to display actual dir sizes?

i have plenty of empty directories and i wonder if there's a way to display actual direcory sizes (after some sort of scan maybe) in MC
choseh
  • 381
  • 1
  • 3
  • 3
35
votes
6 answers

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 `-- dir2 |-- a | |-- file5.txt | `--…
bajafresh4life
  • 613
  • 2
  • 6
  • 8
32
votes
9 answers

Best way to compare (diff) a full directory structure?

What's the best way to compare directory structures? I have a backup utility which uses rsync. I want to tell the exact differences (in terms of file sizes and last-changed dates) between the source and the backup. Something like: Local file …
Adam Matan
  • 13,194
  • 19
  • 55
  • 75
28
votes
4 answers

How to delete all hidden files and directories using Bash?

The obvious solution produces an exit code of 1: bash$ rm -rf .* rm: cannot remove directory `.' rm: cannot remove directory `..' bash$ echo $? 1 One possible solution will skip the "." and ".." directories but will only delete files whose…
Yonatan Broza
  • 475
  • 2
  • 6
  • 11
27
votes
9 answers

How to get IIS7 to release a locked file?

During our production builds, a very large (10 megabyte) static content file in the root directory will sometimes be locked by IIS and cannot be deleted by the clean task. This is presumably because it is being actively served to one or more clients…
Jarrod Dixon
  • 685
  • 2
  • 13
  • 23
27
votes
1 answer

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\Temporary ASP.NET Files'." I could grant the user…
PanJanek
  • 373
  • 1
  • 3
  • 5
24
votes
10 answers

Copy large file from one Linux server to another

I'm attempting to copy a 75 gigabyte tgz (mysql lvm snapshot) from a Linux server in our LA data center to another Linux server in our NY data center over a 10MB link. I am getting about 20-30Kb/s with rsync or scp which fluctates between 200-300…
Nathan Milford
  • 792
  • 2
  • 10
  • 21
24
votes
4 answers

Pushing Large Files to 500+ Computers

I work with a team to manage 500-600 rented Windows 7 computers for an annual conference. We have a large amount of data that needs to be synced to these computers, up to 1 TiB. The computers are divided into rooms and connected through unmanaged…
WMIF
  • 340
  • 2
  • 6
24
votes
7 answers

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 files are located in subfolders with a structure like…
Strae
  • 457
  • 1
  • 8
  • 22
24
votes
6 answers

How do I prove two files are the same legally?

We had someone steal some files before quitting and it has eventually come down to a lawsuit. I've now been provided with a cd of files and I have to "prove" that they are our files by matching them to our files from our own file server. I don't…
reconbot
  • 2,455
  • 3
  • 25
  • 30
23
votes
6 answers

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: cp -R .* directory but it recognizes . and .. and…
Zifre
  • 449
  • 1
  • 6
  • 11
22
votes
8 answers

Doing an rm -rf on a massive directory tree takes hours

We're using rsnapshot for backups. It keeps lots of snapshots of the backuped up file, but it does delete old ones. This is good. However it's taking about 7 hours to do a rm -rf on a massive directory tree. The filesystem is XFS. I'm not sure how…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
22
votes
4 answers

Rsync show progress for individual file

I'm using rsync to upload/download a pretty large file (20Gb). I'm aware of --progress option, but what it does in my case is just showing me the result at the end. My problem is that during some unstable connection - I don't know whether it's still…
Salmon
  • 321
  • 1
  • 2
  • 6
22
votes
1 answer

Optimizing rsync for transferring huge files quickly

This is what I need: Rsync daemon running on source server. Destination server does a rsync pull as below: rsync -ptv rsync://source_ip:document/source_path/*.abc destination_path/ Huge binary files (3 GB to 5 GB) are copied from source machine to…
Varun
  • 405
  • 2
  • 4
  • 7
1
2
3
45 46