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

learn more… | top users | synonyms (3)

1
vote
2answers
1k views

Is it possible to exclude empty directories when creating a tar?

I have a backup command which looks like this: tar cvpzf /backup/incremental-$now.tar.gz --after-date='1 day ago' -C / etc/ home/ root/ --exclude-from=/root/exclusion_list.txt ...
1
vote
0answers
55 views

Redirect subfolder to subfolder and remove subfolder via nginx

I'm trying to redirect a subfolder to another subfolder with nginx. The hard part is removing the target subfolder from displaying, as it's a ruby app and not a true root folder. They are both on the ...
0
votes
1answer
104 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
124 views

centos6 lost '/etc/pki/tls/' folder

I am trying to learn how to install ssl_mod, but with some wrong operation, I lost /etc/pki/tls/ folder. I am trying to yum remove mod_ssl, yum install mod_ssl, but still can not create anything ...
6
votes
1answer
2k views

Is the Apache Directory directive supposed to be relative to the DocumentRoot or not?

Is the Apache Directory directive supposed to be relative to the DocumentRoot or not? I ask in the context of a VirtualHost, but it shouldn't make any difference. In other words, is it supposed to ...
-1
votes
1answer
39 views

Directory theme of apache

I have a server with a web site. My document root is /var/www. My configuration: <VirtualHost *:80> Servername www.eeeeeb.fr ServerAdmin max@eeeeeb.fr DocumentRoot ...
2
votes
1answer
1k views

Powershell to add users to a group

I have written this bit of PS to add users from a text file to and AD group that the user inputs. It works fine except for the if statement. The if statement is supposed to check the group to see if ...
0
votes
1answer
589 views

Apache2 with Passenger and subdirectory with file listing

I have a server configured with redmine using apache2 and redmine. The configuration was relative easy: <VirtualHost localhost> RailsEnv production # create a link in ...
0
votes
1answer
122 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
178 views

How to use a load balancer with apache with php based applications?

I have found that i need to add another server to my setup but my web application is designed with php. Basically, in my application, there is a mkdir command that makes a directory for the user. If i ...
0
votes
1answer
92 views

Software for syncing two folders?

I have a SQL Database that is running 15 minute backups to a folder on the local disk. I also have a maintenance task in SQL Server that's automatically deleting any backups that are over 1 hour old. ...
0
votes
1answer
379 views

Looking to generate a directory exception to .htpasswd SSL-protected site

I have an entire site under .htpasswd with SSL - any http requests are rejected - and am trying to exempt a folder from the rule. Either to do a basic .htpasswd for the directory, or make it open. I'm ...
4
votes
1answer
108 views

SVNParentPath directory authorization

The question is a bit stupid but I can't get it sorted. I have a server with SVN that uses the SVNPath directive in httpd.conf and all works fine with path authorizations. Now I'm installing a second ...
22
votes
3answers
1k views

Why should you run cd . before doing anything?

In this compilation of sysadmin horrors, one of the authors writes, as a rule of thumb: Always do a cd . before doing anything. Why would you want to do that?
0
votes
1answer
100 views

Is there a program/tool/script to monitor or view all recent *large* files created on Windows server?

I have been managing a modest SBS 2003 server for several years. Our network policy is setup to store user profiles and "My Documents" folder on the server. Recently the server disk has been getting ...
0
votes
0answers
305 views

Hi is there any way to point subdomain & sudirectory to another hosting

I have a specific problem, I have a domain -- example domain.com & I have a subdomain -- e.g -- > subdomain.domain.com My domain.com has a dedciated IP & in a subfolder of it I have ...
-4
votes
3answers
577 views

Find in all sub directories [closed]

I have a directory with many sub directories, I want to find a file in this directories so I use this command: find ./ -name test.php but this command search just in the top level directory, how ...
1
vote
3answers
8k views

Allow subdirectory with Apache

I feel like this is a fairly simple fix and have seen similar problems when searching but haven't been able to fix it with those solutions. Basically the problem is I cannot access any subdirectories ...
-1
votes
1answer
69 views

SSH - ftp user multiple folder permissions [closed]

I have a server with SSH access. Hope anyone can help me very quickly with permissions. I have a folder, in that folder there are 10 more folders (f1, f2, f3, f4, f5, f6, f7, f8, f9, f10). I created ...
-5
votes
3answers
52 views

How to open a directory contains “-”? [closed]

How can I open a directory via PUTTY that contains -? For example the name of dir is: some-thing-dir cd /some-thing-dir not working.
6
votes
3answers
4k 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. ...
7
votes
3answers
6k views

compare 2 directories and copy differences in a 3rd directory

Running ubuntu 12.04, I want to compare 2 directories, say folder1/ and folder2/ and copy any files that are different to folder3/. There are also nested files, so matching subdirectories should be ...
0
votes
1answer
42 views

Accessing files using folder name and ~folder name

When I try to access a folder: cd "c:\users\myname\google drive\apache-tomcat-7.0.25" it works fine. However when I try: cd C:\Users\myname\GOOGLE~1\apache-tomcat-7.0.25 it doesn't (folder not ...
0
votes
3answers
719 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 ...
1
vote
1answer
388 views

Apache 2.2 Ldap Authantication error 500 - AuthLDAPURL

I have an Apache server on RHEL 6 that uses our active directory for authentication, We added a new "LocationMatch" AuthLDAPURL ...
1
vote
1answer
392 views

Setup custom domain with folder in path for Blogger hosted blog

Google Blogger makes it easy to put a blog at a custom top-level domain or custom subdomain, such as: www.example.com blog.example.com The setup involves creating a CNAME pointing to: ...
3
votes
2answers
447 views

How to “cd” to non utf8 directory

How can I change directory to directory that name consists of non ASCII default characters? root@senior:/media/data/hudba/# ls . -l total 3096 -rwxr-xr-x 2 user users 3160192 Jul 31 2006 Lucie ...
0
votes
1answer
147 views

serving webapps out of arbitrary subfolders with nginx

I'm serving webapps out of arbitrary subfolders on a domain. i.e. example.com/app-one (with example.com/app-one/page served by app-one) example.com/folder/app-two (with ...
0
votes
1answer
115 views

Sharing folders with other user on Ubuntu 12.04

I have recently set up a server on Ubuntu 12.04 . I have an mail server hosted on the same server. Now, there are a number of users with email id at my domain who can ssh to my server to see the ...
0
votes
1answer
38 views

Linux directory moved

a directory was moved with mv command in a Linux box, what logs should be looked at for such action? in root bash_history i can see the command was used, unfortunatly bash_history was not recording ...
2
votes
0answers
187 views

windows 2008 r2 Change owner on multiple folders

I've a quest to change the owner on about 800 folders. The owner should be equal to the folder name. I've tried something like this: set /p userDir=username ICACLS "D:\test\%userDir%" /setowner ...
0
votes
3answers
1k views

Local login script to delete folder of currently logged in user

How can I create a login script that will delete the contents of the folder below, each time a user logs off of a PC? (We have a shared PC that about a dozen users use, for a particular program. That ...
0
votes
1answer
204 views

500 Error when using Apache Directory Directive

I am trying to restrict access to certain directories to certain IP's.... I have done some research & the below is what I came up with, however it returns a 500 internal server error when I try ...
1
vote
0answers
94 views

htaccess, mod_rewrite, remove part from URL

I want to access domain.com/api/(.*) instead of domain.com/public/api/(.*) Directory structure: domain.com __folder1 __folder2 __public ____api ______.htaccess2 ____afolder1 ____afolder2 ...
0
votes
1answer
220 views

Rewrite certain URL in Nginx such that another app will serve it

I have a config file for mydomain.com which is served with Drupal. Problem is this rewrite rule takes the control over any request: if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?q=$1 ...
0
votes
4answers
917 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 ...
0
votes
1answer
229 views

Apache serve files with NTFS permissions?

I hope I came to the right sub for this question. Basically here is the scenario: You have folder name Testfolder which is hosted on Apache. Test folder has files that only certain users on the ...
0
votes
1answer
67 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. ...
0
votes
1answer
87 views

Issue with Apache folder and file permissions

I hope I came to the right sub for this question. Basically here is the scenario: You have folder name Testfolder which is hosted on Apache. Test folder has files that only certain users on the ...
0
votes
3answers
67 views

Apache folder and file permissions

I hope I came to the right site for this question. Basically here is the scenario You have folder name "Testfolder" which is hosted on Apache. Test folder has files that only certain users on the ...
0
votes
1answer
1k views

Percona server won't restar after datadir change

I installed percona from percona repository on a ubuntu 12.04 server which has a solid state drive. I thought i would rather put the datadir on the Solid state drive and put partition on normal sata ...
-1
votes
1answer
77 views

Get size of folder without iterating over its content? [closed]

Is there any unix file system (or network fs) that can get size of folder without iterating over its content? I need the fastest and cheapest way to get size of folder (maybe some fs cache metadata ...
2
votes
1answer
2k views

Robocopy uses relative path for Source and Destination paths

I'm trying to use RoboCopy in my TFS Build Template to copy some files, but for some reason it inserts "C:\Windows\system32" in front of my Source and Destination paths, even though I am passing in ...
0
votes
1answer
84 views

Put website into a folder, don't show folder on URL, and still have access to other folders

I'm trying to host my website into a folder on the FTP, for example, /site. But on the URL i want to remove this folder, so it will be www.mysite.com.br instead of www.mysite.com.br/site. I've ...
0
votes
1answer
46 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 ...
4
votes
1answer
2k views

IMAP standard folder names - “Junk” or “Spam”

I am configuring spamassassin at the moment and have been wondering what is the standard (or atleast most used and recognized by most clients) folder name for Spam or Junk? I first used Spam, but ...
0
votes
2answers
69 views

apache -Directory directive - allow to serve selected pages

This syntax seems to prevent Apache from serving any pages from /var/www or subdirectories. <Directory "/var/www"> Allow from None Order allow,deny </Directory> I wantthis ...
0
votes
1answer
21 views

Setting up multiple applications on one server within directory paths

I am working with node.js and I am trying to figure out a way to have a rather different server configuration. I would like to have three "apps" run. index app1 app2 Index can run on port 80, and ...
0
votes
2answers
174 views

Linux workstation and Active Directory authentication

I read a few articles regarding "How to Authenticate Linux Clients with Microsoft Active Directory" My question before I do it: what will happen to Notebooks that try to login when the Active ...
1
vote
1answer
123 views

Mod_rewrite pretty url when domain/foo is a directory

Starting with something as simple as: RewriteRule ^(.*)$ index.php?page=$1 What if I also want the following to work: RewriteRule ^/foo$ /index.php?page=foo #/foo IS a directory This seem to ...