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

learn more… | top users | synonyms (3)

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
466 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
13k 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
739 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
368 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
654 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
124 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
408 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
324 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
940 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
103 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 ...
22
votes
2answers
17k 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
273 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
572 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
237 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
725 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
101 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 ...
7
votes
2answers
17k 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
207 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
244 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
569 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
507 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
780 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
299 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 ...
59
votes
22answers
21k 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
381 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
674 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
197 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 ...
24
votes
6answers
24k 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
170 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
161 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 ...
0
votes
2answers
566 views

Cygwin User/home folder non existant

I'm a novice at cygwin/linux administration so please be patient with my ignorance: I'm trying to change my .bashrc profile and setup (.gitconfig ) I can't seem to find my home folder. My hypothesis ...
1
vote
2answers
6k views

Apache: redirect subfolder to another IP in the LAN

I have webserver1 behind a router currently serving all http traffic to mydomain.com. I just added webserver2, and want to redirect mydomain.com/server2 traffic to that box. To the user, the redirect ...
0
votes
2answers
281 views

.htaccess directory nightmare

I'm on a shell, and my web folder is located at /home/w/waterfox/public_html. In there, I have a directory called irclogs, which I'm trying to password-protect. It is chmodded to 755. Here is the ...
0
votes
2answers
3k views

How do I change folder timestamps recursively?

I was wondering if anyone knows how to change the timestamps of folders recursively based on the latest timestamp found of the files in that folder. So for example: ...
0
votes
1answer
514 views

where is the php folder located in macosx?

I'm needing to modify my php config on my mac but for the life of me I can't find the files! Can anyone help me?
0
votes
3answers
1k views

FTP -> VSFTPD -> allow uploading folders

I have a Fedora FTP server that uses VSFTPD. I wanted to know how I could allow the users to upload directories and make directories. Thanks in advance.
2
votes
3answers
18k views

Apache2: How do I restrict access to a directory, but allow access to one file within it?

I've inherited a poorly designed web app, which has a certain file that needs to be publicly accessible, but that file is inside a directory which should not. In other words, I need a way to block ...
1
vote
1answer
568 views

nginx howto correct the path from a back-end server redirect response under a virtual directory

The following was my deployed servers: client ------ nginx proxy(example.com) ------ back-end server(192.168.1.20) The nginx proxy's external URL was configured under a virtual directory ...
1
vote
1answer
1k views

Used recursive chown on the root directory

Im gonna need some help restoring my ssh settings as i screwed everything up by calling this command: chown -R user / At the moment im not able to access the site through ssh/ftp since the ...