All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
2 answers
58 views

Delete folders asynchronously

I have a large file system in which I have to delete certain directories from time to time. Currently I have a script which amongst other things, deletes a folder and subsequently generates an email ...
loris's user avatar
  • 232
0 votes
1 answer
6k views

Where to find the website folder in ubuntu server?

So someone gave me the task to find where is the website code exist on ubuntu server when I look at the the index.html file path it is /var/www/example.com/html but when I go to /var/www directory I ...
adnan ijaz's user avatar
0 votes
1 answer
840 views

User-Permission on Folder without affecting owner:group

How can I allow a specific user on my Ubuntu desktop to view/open all folders and files in a specific location without affecting or changing the owner:group of that location? Until now I need to ...
Omexlu's user avatar
  • 43
0 votes
1 answer
2k views

Explanation :File permissions override folder permissions, unless the Full Control permission has been granted to the folder

According to the article: http://ntfs.com/ntfs-permissions-precedence.htm The hierarchy of precedence for the permissions can be summarized as follows, with the higher precedence permissions listed ...
quangkid's user avatar
  • 103
0 votes
1 answer
375 views

How can I rsync a directory that might be busy with updating files?

I would like to transfer a directory of files to a remote destination. Easy. However, at any given time, one or many of these files may be in-use and being updated by users. This doesn't bother rsync ...
user227963's user avatar
0 votes
2 answers
689 views

.htaccess password protect a file in a certain directory

I have files with the same name in different directories on the serves (example: stats.php), and I want to password protect some of them (.htaccess file in the root directory). I tried "FilesMatch" ...
Mike's user avatar
  • 143
-4 votes
1 answer
93 views

Rename and replace parts with different filenames [closed]

I know there are different questions about this topic but I have found nothing that fits my question: I want to replace a part of a name in a folder but there are different files with different names....
user497594's user avatar
0 votes
1 answer
2k views

NGINX Not showing directory contents

I have some trouble with NGINX on my server. I previously used Apache. When I try to request folder contents on my server (like, 192.168.0.128/files), I get a 403 Forbidden error. Anyone know how to ...
lazycouch doge's user avatar
0 votes
1 answer
40 views

compare 2 directories with different files names and locations of the files

I'm currently having 2 (top level) directories with a lot of sub directories and files. There are a lot of duplicate files between those directories but there is one problem with it, the names of the ...
grezly's user avatar
  • 1
0 votes
1 answer
44 views

Remove files from directory path B which are not found in path A on Linux

I have two paths on same system for example: \mnt\a\data \mnt\b\data There are some directories and/or files in b\data which are not present in a\data. How can I remove those extra directories and/...
Lukasz's user avatar
  • 482
0 votes
1 answer
853 views

ls *.csv --ignore="*pattern*" returns files which contain "pattern"

Why does ls --ignore not ignoring the pattern? Looking at the below example: mkdir books cd books touch books_abby.csv touch books_karen.csv touch books_david.csv touch books_tom.csv This creates ...
Greg's user avatar
  • 1,657
0 votes
2 answers
402 views

Linux, search for extended attribute value

When a directory contains some files with non-empty extended attributes, all the attribute values can be shown as follows: $ getfattr -d * # file: file1 user.comment="comment1" # file: file2 user....
BowPark's user avatar
  • 103
1 vote
1 answer
693 views

nginx try_files not finding files in large directory (86k files)

To start out, the nginx config: server { listen 443 ssl; server_name example.com; ssl_certificate /example/fullchain.pem; ssl_certificate_key /example/privkey.pem; ...
PitaJ's user avatar
  • 113
0 votes
0 answers
51 views

How to "stage" file movements before performing them on Windows?

I have a disk with terabytes of data. I would like to reorganize the disk. The problem on Windows is that if I move one of the directories to the new place, I have to wait hours for that relocation ...
rhombidodecahedron's user avatar
0 votes
2 answers
3k 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 ...
farfie's user avatar
  • 3
0 votes
1 answer
2k 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" ...
user281511's user avatar
0 votes
1 answer
63 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: ...
Vignesh T.V.'s user avatar
0 votes
1 answer
184 views

Bash shell copy files on the hidden directory [closed]

Need help with Unix script. how do you use /bin/cp to copy files from /somepath/somedir/somewhere/.temp_folder to /somepath/somedir/somewhere/ my line /bin/cp -r somepath/somedir/somewhere/.[!.]* ...
evilspowa's user avatar
1 vote
1 answer
136 views

DropBox style folder storage

I would like to set up a storage for people to access. So like I have a network set up with 1 domain controller and a back up server as well and I have user accounts set up in AD and basically I want ...
Computeristic's user avatar
5 votes
1 answer
14k views

How can i manipulate the find command to "find" the directories the "found" file is in?

So i'm trying to use the find command to find all files in my system with mtime -x. It does this but it does not "find" the directories of the file. find . -mtime -2 -exec rsync -av {} /destination/ ...
user768352's user avatar
16 votes
3 answers
50k views

Is there a hard limit to the number of files a directory can have? [duplicate]

Wondering if there is a limit to the number of files that can be stored inside a directory, in CentOS 6. There is one particular directory which could potentially have millions of subdirectories. ...
Juan Carlos Coto's user avatar
2 votes
4 answers
21k views

Copy files from one server to another with same permissions

Im migrating to new server and i need to move few websites but i need to have same read/write permissions to new serves as they were on old server. I don't need to keep group and owner id's same but ...
lonerunner's user avatar
0 votes
1 answer
85 views

SBS 2008 Redirection visibility issues - want to move off SBS 2008

I inherited an SBS2008 server which had a corrupt or otherwise lost userid which was used to setup redirects, etc. I was able to break in by enabling the Administrator ID and resetting the password. ...
Geoff's user avatar
  • 1
0 votes
1 answer
105 views

rsync synchronizing files only without creating folders on destination

Is it possible with rsync to not create directories on destination? MY SOURCE: a/ a/x.txt b/ b/y.txt b/c/g.txt MY WANTED DESTINATION: d/x.txt d/y.txt d/g.txt Is there any way to do this with ...
InsaneAR's user avatar
-1 votes
2 answers
993 views

How download all files, directories and subdirectoires with wget [closed]

I have some links such as: http:/foo.com/1/1/1/1.jpg http:/foo.com/1/2/2/2.jpg http:/foo.com/1/3/3/3.jpg ... How I can I download all files and directories with wget?
akoori's user avatar
  • 17
5 votes
1 answer
1k views

How to distribute files and folders to handle large number of files

I want to manage a huge number of files on my server (say millions). It is needed to save files in two or three levels of folders to keep the number of files in each folder low. On the other hand, it ...
Googlebot's user avatar
  • 1,067
5 votes
3 answers
158 views

directories with two one dot (.) entries

I'm trying to clean up my lost and found, and I've managed to remove most things, but I'm left with "almost" empty directories, like: lost+found/#14042862: total 1324 dr---wx--- 2 76040 43010 ...
Jayen's user avatar
  • 1,867
6 votes
2 answers
24k 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.
Mohammad AL-Rawabdeh's user avatar
3 votes
4 answers
2k views

File and Folder Organization for IT Staff

We are working on a project that will require the creation of new file servers and a migration of countless years of legacy data. Part of that legacy data is this random collection of IT staff files ...
John's user avatar
  • 2,276
2 votes
7 answers
3k 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 ...
Carlos Garcia's user avatar
1 vote
2 answers
2k 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?
MacMac's user avatar
  • 2,091
14 votes
6 answers
36k views

Best method to track folder size growth over time?

I have a file server that has a pretty large folder tree. There's a shared folder, under that are 5 departmental folders. Nested inside of those are thousands of subfolders and files. I would like ...
Aszurom's user avatar
  • 463
6 votes
4 answers
8k views

Automatic Notification of New or Changed Files in a Folder or Share [closed]

I'm looking for some Open Source [free] or relatively inexpensive solution for monitoring specific folders on a file system and 'Windows' network with several shares. When a file is added or changed, ...
Dave Drager's user avatar
  • 8,375