A directory, also commonly called a folder, is a filesystem object used for organizing files and other directories.

learn more… | top users | synonyms (3)

4
votes
7answers
5k views

Free tool/script for directory size calculation [on hold]

Does anyone know of a free command-line tool or script that calculates the size of a directory including all subdirectories? It needs to be compatible with Windows 7, work with hard links and ...
11
votes
3answers
43k views

Cannot delete folder with rm -rf. Error: device or resource busy

I'm trying to delete /var/www/html but I'm getting this error: rm: cannot remove `html': Device or resource busy
0
votes
0answers
16 views

CentOS: in which folder should I install Java JDK? [closed]

I need to install Java JDK on CentOS 6.7, from different instructions I can see that some install it to /opt/, some to /usr/share/ some to /usr/local/, and some to /etc/. Which folder would be the ...
1
vote
6answers
10k views

Can I make windows treat Shortcuts to Folders the same it would a Folder?

I'm moving some folders to an external storage drive and replacing them with a Shortcut, however the shortcut is listed in with the Files, not the Folders. It also doesn't show up in the folder Tree ...
1
vote
1answer
1k views

How to change default duplicity archive directory?

How can I change the duplicity default archive directory (~/.cache/)? The following option seems to be ignored. Option --archive-dir=/volume4/duplicity/cache/ --name backup duplicity 0.6.21 ...
1
vote
2answers
1k views

create second samba4 active directory domain controller for backup

I built up a samba4 active directory domain controller on ubuntu 14.04 and everything is working fine. The Windows clients can log in and do stuff. So far so good. However, in case of emergency, I ...
0
votes
2answers
44 views

Mount folder automatically in home directory for every old&new user

I want to allow access to /var/www/dev/ to every user in my system (+50) via their home directory For one particular user I can do: mkdir /home/user_name/www_dev mount --bind /var/www/dev/ ...
2
votes
1answer
2k views

Cannot read/write FTP directory vsftpd on centos 6.0 (empty folder)

I have Centos 6.0 and installed vsftp with YUM, I added a user with Webmin panel, set its home dir to "/var/www/html" and its shell to "/bin/sh", user id is 500, user group is same as name: ...
39
votes
2answers
17k views

How to keep the full path with rsync?

When backing up with rsync, How do I keep the full directory structure? For example, the remote server is saturn, and I want to backup saturn's /home/udi/files/pictures to a local directory named ...
1
vote
4answers
2k views

Real time Sync between two folders on different servers

What is the best way to sync two folders completely in real time over two servers (Ubuntu) in same network? Do you think syncing folders is a better idea than having a shared folder? If a shared ...
11
votes
8answers
28k views

How do you handle “CMD does not support UNC paths as current directories”?

I am attempting to change directories to a file server such as: cd \\someServer\\someStuff\ However, I get the following error: CMD does not support UNC paths as current directories What ...
0
votes
0answers
29 views

Nginx with software installed in subdirectories

I'd like to create a directory/website structure like this: / /index.php /tac /tac/1app1/index.php /tac/1app2/ /tac/1app3/ So there is one CMS in the root. In subdirectories there should be other ...
34
votes
7answers
32k views

How to copy file preserving directory path in Linux?

I have Eclipse projects and ".project" file in them, the directory structure looks like 'myProject/.project'. I want to copy these '.project' files to another directory, but I want the enclosing ...
1
vote
1answer
1k views

Folder rights doesn't work on group, but does on user

I've got this share where I want to restrict access to two folders so that only members of a group can get access to them. I've done this countless of times, but this time there's something odd going ...
10
votes
5answers
357 views

How do I change to the directory I just moved that file to?

So lets assume I've just done: mv ./myfile /to/some/other/place/ And I now decide I want to follow the file, and go into that directory. Whilst I could head for the mouse, select the text, type ...
1
vote
2answers
3k views

Adminstrator receives PermissionDenied when issuing get-childitem in PowerShell

I am trying to backup a drive from a laptop that is defunct. This drive was pulled from the machine and mounted in an external enclosure and connected to a desktop via USB. Laptop that the drive was ...
-4
votes
3answers
117 views

Understanding administrator rights on a machine [closed]

As a developper I need to create a folder within a customer' server and I need to be sure that they wont be able to access that particular folder's content even if they are administrator or in any ...
1
vote
3answers
8k 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 ...
0
votes
1answer
41 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" ...
0
votes
1answer
28 views

Find the latest modified *.csv file and copy it into a different folder

My goal is to copy the latest file (based on modified date) in Windows to a different folder, and then rename the file to something different. My last line that is commented out was just a test to ...
0
votes
0answers
10 views

Cloaked domain forward with directories

I need to forward somedomain-a.com to somedomain-b.com. I want the forward to be cloaked, so even though someone is at somedoamin-b.com from a forward, it will still say somedomain-a.com in the search ...
0
votes
0answers
43 views

Folder modification date not updating when sub folder is created

I have found a pretty annoying behavior in windows server 2012 and failed to find a solution to fix it. I also tried this on a Windows 7 instance and it simply works :( Some aspects of the issue are ...
0
votes
1answer
20 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: ...
0
votes
2answers
1k views

Changing Data directory in MariaDB

I have a doubt : Is mariadb support datadirectory location change from the default location to the another user defined location ? When Iam trying to change datadir location of mariadb by ...
1
vote
1answer
11k views

How to write a dos batch script to create a folder structure?

I would like to be able to have a dos batch script that I could utilize to create a specific folder structure below what ever directory I may be in at any given time. The specific folder structure ...
0
votes
1answer
3k views

Can I have two (or more) Apache VirtualHosts separated by subdirectories?

I think this is a simple question, but let me explain better. I have the following development environment: Ubuntu Server 12.04 LTS; Apache 2.4; PHP 5.5; Everything is working fine, except the ...
0
votes
4answers
2k views

Can't start MYSQL after changing directories

So I started running out of space on my linux hard disk. I added another hard drive and now I want to change the MySQL directories. So instead of saving the data into the old hard drive, it saves it ...
64
votes
22answers
25k views

rm on a directory with millions of files

Background: physical server, about two years old, 7200-RPM SATA drives connected to a 3Ware RAID card, ext3 FS mounted noatime and data=ordered, not under crazy load, kernel 2.6.18-92.1.22.el5, uptime ...
23
votes
10answers
21k views

Linux - What directories should I exclude when backing up a server?

I'm backing up a linux server and storing it on some other server. I started off with a simple rsync -aPh --del server.example.com:/ /mnt/backup Then someone pointed out that I shouldn't back up ...
-1
votes
1answer
34 views

can I centralize SQL and AD users via LDAP? [closed]

I have to mention that I am talking about 60 - 100 users. We are having SQL database for specific internal use, where contain all the users in the company. Now we are deploying Windows Active ...
1
vote
2answers
37 views

raising forest level from 2000 to 2003, any forseen issues?

We are out to migrate from a Windows 2003 domain server including Exchange 2003 to a Windows 2012R2 server with a 2013 Exchange. Our Windows 2003 domain has about twenty client machines one XP Pro, a ...
1
vote
1answer
19 views

SFTP script gets different destination response when run from different directories

I'm baffled by an SFTP shell script and any help would be greatly appreciated. I wrote an sftp script to connect to and upload ACH information to a banking site. The script uses 'expect' to wait for ...
2
votes
2answers
1k views

“The local device name is already in use” error when connecting to user home directory shared folders

We have a Windows Server 2003 running active directory - the users login with their AD accounts from their PCs. We have setup a file server where each AD user has a shared network folder hosted on the ...
4
votes
3answers
5k views

Good default for XDG_RUNTIME_DIR?

The XDG Base Directory Specification is a very interesting spec for user directories. It also provides good default values, except for XDG_RUNTIME_DIR. Now I am writing a software that needs to ...
0
votes
0answers
24 views

Nested Active Directory Groups causes user unable to authenticate against application

User is placed in a global group called site.gg1 site.gg1 is a member of a global group called region.gg1 region1 has been added to the server local group, which is mapped to the application role. ...
0
votes
0answers
64 views

Documents Redirect not working on machine after moving user into different ou

I've recently been making some changes to an AD OU structure, in attempt to make the structure look cleaner for other admins & allow us to get more granular with Group Policies. By changes I mean ...
-2
votes
2answers
90 views

What is best directory for storing uploaded images from my website in linux [closed]

i am building a webpage where a the user can upload images. i am going to use the file-system to store my images. i was wondering what is the best directory to hold such data? is it "var" directory? ...
1
vote
1answer
1k views

How to rewrite URI from root if file exists in folder?

I have a public folder in my document root. I would like to redirect all the files that are not present in document root, but are present in the public folder. (So if the same file is in two places, ...
0
votes
1answer
157 views

Copy folder structure template to current folder

When our users create a new Project folder, I would like it to automatically copy a template folder structure and the template's permissions. So far the only thing I've come up with is a batch script ...
1
vote
2answers
186 views

find all end subdirectories in a tree

given the following structure: oz123@debian:~/ $ tree . . ├── a │   ├── a1 │   ├── a2 │   └── a3 ├── a1 │   ├── a11 │   ├── a12 │   └── a31 ├── b │   └── b1 │   ├── b11 │   │   └── b21 │   ...
0
votes
1answer
19 views

List all folders, with size but only in regexp path - LINUX

I have this structure Folder/A Folder/A_SomeoneBefore/ Folder/B Folder/B_SomeoneBefore/ .... Folder/T/TA/TAC/TAC_SomeoneAfter Folder/T/TA/TAF/TAF_SomeoneAfter ...
0
votes
1answer
155 views

How can i serve domain subfolder from different Apache 2 server?

Squid 3 reverse proxy is pointin to 80.241.222.151 for domain http:// www.megasity.com Apache 2 server is on 80.241.222.151 with all files in the root folder so all requests are served from here Now ...
1
vote
1answer
32 views

Serving additional directory content under root in Nginx

Using Nginx with Django, I have the following location entry in my server config: location / { include uwsgi_params; uwsgi_pass 127.0.0.1:1234; } Thus, all root URL requests are passed to ...
1
vote
0answers
85 views

Windows Server 2008/2012 DFS won't replicate one folder

I have a problem with Windows 2008 DC replicating to Windows 2012 DC. I've been dealing with this for 6 months. The replicated folder contains 15 folders and 0 files in the root. All of the folders ...
1
vote
0answers
41 views

Server 2008 R2 permissions not working

First of all: i posted this yesterday but put in the wrong email so I can't access it again. I am configuring a 2008 R2 server for learning experience. The problem I'm having is the following: ...
0
votes
1answer
30 views

DirectoryIndex in Subfolder/New project with virtualhosts and SSL, same domain

I have som problems with setting up a new project in apache. I have an old project in sub.domain.com/api/something.php, but am trying to add a new project (symfony) that requires a DirectoryIndex, ...
0
votes
1answer
19 views

Protect a directory if remote host is/is not

How can I protect a directory within .htaccess only if the remote host is not 192.168.1.11 ? Below is how I actually protect directories: AuthUserFile /home/personal/.htpasswd AuthName "Auth Area" ...
0
votes
1answer
24 views

Large file synchronisation

I have a big directory that takes about 600GB with tens of thousands files. I need to synchronize it with my Qnap NAS. I tries BitTorrent Sync, but speed is very slow and it will take about a month ...
0
votes
2answers
30 views

Does LDAP work within just one directory or diferent directories can comunicate each other using LDAP?

I started to learn about directories just a month ago and this question came to my midn. I know that LDAP is an open protocol that defines services within a directory. But I asked myself if there is ...
3
votes
1answer
39 views

In the context of Active Directory, what does “single schema” mean and why is this an advantage?

in my learning of AD DS Ecosystem I came across with this definition [link]: By using the Windows Server® 2008 Active Directory® Lightweight Directory Services (AD LDS) role, formerly known as ...