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
3answers
3k views

On linux, what does it mean when a directory has size 0 instead of 4096?

Here's a strange thing I haven't seen before -- a directory whose size is reported by ls as 0 instead of 4096, and I can't create any files within it. # ls -ld lib home drwxr-xr-x. 2 root root 0 ...
2
votes
2answers
2k views

PuTTY pscp directory listing - can you specify a different file date/time format?

I'm using pscp.exe from PuTTY with the -ls option to get a directory listing via STDOUT to a perl script. The output I get is this: Listing directory /path/to/my/directory drwxr-sr-x 2 234 ...
1
vote
2answers
3k views

Windows 2008 folder has lost all permissions, can't be deleted, edited or permissions changed

I was testing a batch file that used the following dos command rmdir test2 /s /q, this command failed part way through and now I seem to have folders that have no permissions. For example, in the ...
2
votes
7answers
2k 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 ...
3
votes
1answer
2k views

Apache configuration problem with <Directory> and <Location>

I'm stuck with a pretty nasty problem. I have a staging system here where only our customers and our company should have access to. This is done using the following configuration: <Directory ...
2
votes
1answer
255 views

Can't resize Folder properties window

I've opened the properties window of a folder to view it's security groups, but the security group names are too long to be fully readable in the security tab. There is no way to resize the window. ...
0
votes
3answers
2k views

Moving mysql datadir not working? Problems with symlink in conf.d?

I wanted to have my mysql config in svn to be versionised so i did thefollowing: ubuntu@ip-10-226-50-211:~/mysql-config$ ls -la /etc/mysql/conf.d/ total 12 drwxr-xr-x 2 root root 4096 2011-01-27 ...
1
vote
3answers
937 views

Deleting all folders older than a specified date, except some of them

i had to do a script job in bash to delete all directory in a path which are older than a specified date except some of them. i know the name of the directories which shouldn't be deleted... Can you ...
0
votes
4answers
3k views

Active Directory Folder Effective Permissions of all users

I know that is easy to get the effective permissions of one group or user over a folder, but I want to know if it is possible to get the effective permissions for all users on my shared folder. There ...
0
votes
1answer
134 views

How to get file directory trough .htaccess by using `RewriteRule ^(.*)$ ?id=$1 [L,QSA]`?

How to get file directory trough .htaccess by using RewriteRule ^(.*)$ ?id=$1 [L,QSA]? If .htaccess is located in http://localhost/some/dir/.htaccess and I'm opening ...
0
votes
3answers
469 views

mod-rewrite: what's wrong with this simple rewrite to redirect to a subdirectory?

the root directory http: // www .mydomain .com (SF won't let me post hyperlinks - rep is too low) has a catchall index.php page in it, and an .htaccess file. Within this root directoy I have a ...
5
votes
2answers
14k views

How to upload a directory recursively to an FTP server by just using ftp or lftp?

I am writing a Linux shell script to copy a local directory to a remote server (removing any existing files). Local server: ftp and lftp commands are available, no ncftp or any graphical tools. ...
14
votes
2answers
3k views

Difference and correct usage for /tmp and /var/tmp

I haven't put much thought into this until now, but it seems odd that there is a /var/tmp and /tmp directories for most of the linux distro's I routinely use ( Ubuntu, Centos, Redhat ). Is there any ...
1
vote
2answers
753 views

Status of replication support in ApacheDS?

The features page indicates they're expecting to support multi-master replication "soon". Does it have any basic master-slave replication yet or does it currently not support any form of replication? ...
3
votes
4answers
371 views

optimal folder structure for storing 100k files on a USB drive

I need to store 100k files (around 40GB) in a USB drive. Each file has a unique int id (e.g 45000). Option one is to put all files in a single folder: root/ root/1.pdf root/2.pdf root/3.pdf ... ...
1
vote
2answers
672 views

how to restore a mysql dump FOLDER

After having a vps crash, I asked my hosting to give me the dumped file of my drupal database. It is a folder filled with of *.frm *.MYD files of the database tables. I used to restore mydb.sql files ...
3
votes
3answers
125 views

Linux directory conventions for custom service

I'm writing a custom application that will be run as a service/daemon. According to convention, the binaries for it should be in /opt/appname. However, where do I put files such as: Config files ...
3
votes
1answer
409 views

Windows Server - share files without access for administrator

We have a MS Windows Server 2008 R8 based server that is administrated by our IT department. We would like to achieve two things simultaneously: A folder on the server, containing several thousand ...
0
votes
1answer
165 views

How to set the DirectoryIndex to <foldername>.html in Apache?

I'm running Apache and I'm getting really tired of editing hundreds of files which are all named index.html. What I'd like is something like this: /root/foo DirectoryIndex: foo.html /root/bar ...
0
votes
1answer
328 views

Folder shared over internet by multiple users

We would like to setup a folder on a server where we would keep our documents. This folder would be mapped to windows like a network drive where users can copy/paste documents. Thing is, this folder ...
1
vote
2answers
979 views

What are the maximum number of files/directories allowed per directory in common Linux FS?

It is known that ext2/ext3 FS have a rather low limit of about 32k files/directories per directory. It looks like ReiserFS is limited in practice by the r5 hash function which allows about 1 200 000 ...
1
vote
1answer
104 views

du -sh keeps timing out!

i need to get the entire size of /storage, but using du -sh times out after about an hour! is there another way to get the entire directory size?
2
votes
1answer
1k views

Windows 7 system32 different contents depending on how its viewed

Using Windows 7 x64 Enterprise. When I view C:\windows\System32 through explorer I can see telnet.exe, if I open cmd from the start menu I can use telnet. If I open C:\windows\system32\cmd.exe via ...
23
votes
2answers
18k views

logrotating files in a directories and its subdirectories

Is it possible to get logrotate to consider logfiles in a directory and all its subdirectories? (i.e. without explicitly listing the subdirectories.)
0
votes
2answers
3k views

How to make a subdomain record point to a subfolder of my website “godaddy domain manager”?

I have a dedicated server on a webhosting company "not godaddy", and I manage my domains through godaddy. I want to add a new subdomain and want this domain to point to a certain folder in my website. ...
1
vote
1answer
54 views

How can I show more than 19 characters in file names when browsing directories in Apache?

I'm trying to browse a directory (for server logs, in this case) and I can't seem to find any way to tell Apache to show more then the first 19 characters of the filenames in the directory, followed ...
-1
votes
1answer
281 views

how i can Find the files inside the folder and save the file names in variables?

how i can write bash file to Find files (number and name of files are variable) inside the folder and save the file names in variables ?
0
votes
1answer
576 views

Nginx html folder

The files in the folder "/usr/share/nginx/html" belongs to the user "nginx" (or root ?), the primary user "2x2p1p" can't modify these files, then the best thing to do is: 1 - Change the user and the ...
0
votes
1answer
238 views

Shared folder between two Web Servers

I'm running two webservers in a single host. One of them is a Tomcat running in a reverse proxy configuration. The front webserver is a nginx that proxies request to the Tomcat. So far, is working ...
1
vote
2answers
740 views

OpenVZ file system

OpenVZ file system (simfs) has a limit of files per folder. We reached that limit and we are in trouble... Which is the best approach to this problem? Thank's in advance!
1
vote
1answer
102 views

how do i get terminal in osx to use the python version installed in /opt/local/bin rather than the one in /usr/bin

at the moment my $PATH looks like... /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin but then whereis python2.6 returns /usr/bin/python i need to use ...
9
votes
2answers
18k views

Difference between <Location> and <Directory> Apache directives

I have Zend Server installed and noticed something like the following was added to my httpd.conf file: <Location /ZendServer> Order Allow,Deny Allow from 127.0.0.1 </Location> Alias ...
0
votes
2answers
208 views

Automatic folder backup from XP to Windows Server 2003

My HR/Finance manager stores important files & records in her Win XP desktop PC and she rarely copies all her files into our file server that runs on Windows Server 2003 (the last time she did it ...
2
votes
1answer
1k views

Redirecting subsite on same domain to other IIS using HTTPS

I've seen many similar questions (and answers) on this subject, but none seem to be on exactly the same situation I am facing. Which is weird since I don't think it is that special, so forgive me if I ...
2
votes
1answer
250 views

Jail user to only read/write into their user directory

I'm running a Ubuntu server and wanted to know if there was a way to only allow a user (connecting via FTP and SSH) read and write access to their own /home/user/ directory and not let them read or ...
1
vote
1answer
207 views

Emails disappear when moving from Inbox to anywhere else

Whenever a client of mine has a message open, they click on Move To Folder and the list of recent folders comes up. That person selects a folder but the message does not appear in there. What I have ...
1
vote
1answer
2k views

How to mount a shared folder in Windows Server 2008?

How do you you mount a shared folder in Windows Server 2008. I took these steps to create it: Right click in Domain Controller window -> New -> Shared Folder. The UNC name (path) was ...
0
votes
1answer
574 views

Apache 2 .htaccess matching all sub directories of current directory

I want to disable the php engine in all directories below the current one. I have tried using <Directory> and <DirectoryMatch> but cannot find the correct regex syntax for matching just ...
0
votes
2answers
520 views

See which directory takes space without considering other mountpoints

I often find myself having to clean up some directories because they are too full. Let's take /var as an example, as it is a common one, for obvious reasons. In order to see which sub-directories ...
0
votes
1answer
817 views

How do I synchronize folder structures between outlook and the mail server?

What I am trying to do is set up my mail to synchronize over multiple locations and keep the same folder structure (synchronizing files moved between folders, and new folders...). Here is a diagram ...
1
vote
2answers
1k 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?
0
votes
2answers
302 views

Why does my Win Server 2003 R2 have a bunch of empty folders in the root of the D: drive, each with a different random string of numbers and letters?

On this server, I have a D: drive for data. What app could be creating empty folders such as: 9308c1f8cd5c852ef53a425e 75a2dde71d4ff73400cdb384fbbc c8ad258c663ff0632c They're created every few ...
3
votes
1answer
106 views

SQL Server Orthography

I notice that most of the Microsoft SQL Server installations have a 'Binn' folder, e.g. \Program Files\Microsoft SQL Server\80\Tools\Binn This has always bugged me. Is this merely a misspelled ...
62
votes
22answers
22k 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 ...
0
votes
1answer
385 views

Quota settings on Folder Level

I have requirement to enforce quota settings at folder level. And this enforcement is purely based on folders and not on groups. So I may have to monitor a folder /dev1/folder1 and its subfolder ...
0
votes
1answer
680 views

How to redirect a subdomain with subfolders to a domain using the same subfolders and the subdomain itself as parameter?

So I would likte to redirect this url: http://subdomain.domain.com/subfolder/subsubfolder/ to: http://www.domain.com/subfolder/subsubfolder/?parameter=subdomain And also using other, more, less or ...
0
votes
1answer
199 views

What directories to/not backup

I'm setting up rsnapshot to backup a production LAMP server. These are the directories that currently are going to be backed up. /home /etc /usr/local /root /var What directories can I exclude ...
26
votes
6answers
26k 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
2answers
172 views

Common /home for a couple of Linux distributions

I want to learn one more Linux distribution. I'm serious and "one more" means the second one. I've been using a Linux distribution for almost a decade, I like it very much, but I want to learn ...
0
votes
3answers
162 views

get php files from Directory Listing

in my website there are PHP files that i include in other php files... they perform different tasks like connecting to my DB and various other functions... now i know the given path of my files.. so i ...