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

learn more… | top users | synonyms (2)

5
votes
11answers
66k views

Windows command prompt: how to get the count of all files in current directory?

What command would you use in cmd.exe to find the number of files in the current directory? Is there a powershell option here? Update: I was hoping to avoid dir, as I know there are 10,000+ files in ...
5
votes
3answers
3k views

Duplicate Directory with SSH

How can i duplicate a directory on my server via ssh?
3
votes
5answers
7k views

Get user profile size in vbscript

I am trying to get the size of a user's local profile using VBScript. I know the directory of the profile (typically "C:\Users\blah"). The following code does not work for most profiles (Permission ...
1
vote
0answers
34 views

How do I set a folder range based on the first letter for a selection list in Backup Exec?

Using BackUp Exec 12.5, I want to create a selection list that includes a range of sub-folders from a folder. So all sub-folders that start with A-F would be included, for example. I'll have ...
0
votes
1answer
328 views

Determine group of unreadable unix/linux directory

dcoles1@shovel:/ $ cd /DriveXT dcoles1@shovel:/DriveXT $ ls . unreadable dcoles1@shovel:/DriveXT $ cd /DriveXT/MML/ dcoles1@shovel:/DriveXT/MML $ ls . unreadable dcoles1@shovel:/DriveXT/MML $ ...
28
votes
3answers
84k views

Mount Remote CIFS/SMB Share as a Folder not a Drive Letter

Is there any way to mount a remote CIFS/SMB/SAMBA share as a folder/directory and not as a drive letter. For example, I want this map: \\Server\ShareName -> C:\Folder\ShareName Instead of the usual ...
12
votes
4answers
28k views

How can I set full premissions to a user in a specified dir?

How can I set full permissions to a user in a specified dir in linux?
3
votes
5answers
9k 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 ...
0
votes
2answers
380 views

Hard Link for Directories in linux

Hai, How can i create hard link for my directories ? When i use to make link from /var to /home it shows error on "Invalid cross-device link", How can i over come it ?
18
votes
3answers
23k views

What is the maximum number of files a file system can contain?

Given the current structure of a directory entry on a ext4 file system on Ubuntu, what is the maximum number of files a file system can contain? What is the general method of calculating the maximum ...
1
vote
2answers
735 views

Plesk directory structure problems

I have an entire website with the following directory structure: /example.com /html (public) /css /js index.php /lib session.php other_lib_files.php ...
1
vote
2answers
722 views

force security permission through the directory tree?

Currently, there is large directory tree with differnt security permissions. We need to add another Security permission for all of the folders, and files without changing all the inherited ...
2
votes
2answers
2k views

How to protect a folder in Apache but allow PHP scripts to access it?

I've been thinking a lot about this and can't find a way to do it, maybe it's not possible or maybe I just can't think of way. That's why I'm posting this here right... Basically, I need to protected ...
6
votes
5answers
12k views

Check to see if a directory exists remotely (shell script)

Is there a way to see if a directory exists on a remote server? Perhaps there's a better way, but I'm writing an application deployment script, and I want to create a directory on a remote server if ...
20
votes
6answers
6k views

Should websites live in /var/ or /usr/ according to recommended usage?

According to a guide on the Linux directory structure, /usr/ is for application files, and /var/ is for files that change (I assume this means "files that belong to the applications"). Is this ...
0
votes
5answers
9k views

path separator in php

I'm a Windows user and here is my sample code: <?php echo "Current directory is: " . realpath("."); ?> Output: Current directory is: C:\wamp\www\test Actually, I want to return the path in ...
2
votes
2answers
845 views

Web front-end for directory servers (LDAP) similar to phpMySQLAdmin?

Is there some web front-end to administer LDAP servers, in a similar way as you can use phpMySQLAdmin to administer DBs?
0
votes
3answers
92 views

Moving Data Between Folders on Server

Lets say I have a server and 2 folders for 2 seperate domains Domain A Domain B I have files in Domain A that I want to move to Domain B. I could either download them from Domain B to my computer ...
1
vote
1answer
361 views

Get an IIS 6 ISAPI dll to ignore virtual directories

I have an IIS 6 website with an ISAPI dll to run an application. The application and ISAPI filter works well. I also have a couple of virtual directories set up to handle things like images without ...
3
votes
3answers
2k views

Who joined a computer to a domain

Is there an easy way to determine what user account was used to join a computer to a domain?
2
votes
1answer
375 views

Limit SAMBA directory listing

Maybe this isn't possible, but I thought I'd ask anyway. I have a samba share that uses ACLs. The default group can see everything inside the share and has read/write permissions. I want to create ...
2
votes
1answer
1k views

Moving Group Policy Folder Redirection root path

I have all my users on my domain enabled for Folder Redirection and they all point to the same root path (Basic Redirection). Here are the settings. I want to move only a subset of those users out to ...
7
votes
7answers
1k views

Different files of two directories

There are two directories I'd like to compare. I tried diff but it includes the changes inside the files. All I want is something like this file a is just in /A file b is missing in /A file c ...
0
votes
1answer
91 views

Apache vhosts configuration for non-persistent folders

OK, the title may be a bit confuse. I have a TrueCrypt container that gets mounted as a new drive X: on my Windows machine. Now I want my local testing Apache to deliver files from there via ...
18
votes
10answers
15k 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
vote
2answers
1k views

Fast directory delete on AIX

I have an extremely large directory (containing millions of files summing up to 150 GB) which I want to delete. Is there a faster method than using rm -rf which takes ages to complete on this ...
4
votes
3answers
156 views

System to use to maintain a corporate directory

I work for a small-but-growing startup that needs a corporate directory to keep photos and contact info for the company. Eventually we'd like to maybe use this system for login credentials and the ...
2
votes
2answers
219 views

Linux directory permission problem

Why can't I access a directory that I should have access to by group? My user belongs to the group www-data, and the directory has permissions granted for this group. But I cannot access it. ...
1
vote
1answer
5k views

How do you change the “scan this dir for additional ini files” path?

I managed to get the custom INI to load, but its still loading other .ini files from the default location. I created an fcgi wrapper that passed the ini value as a parameter. That worked. Now just ...
1
vote
3answers
984 views

Preventing access to files if a user types the full url on the address bar

i have a website, some folders on the websites contains images and files like .pdf , .doc and .docx . the user can easly just type the address in the url to get the file or display the photo ...
7
votes
5answers
5k views

Can't access windows share when in security group assigned to share

I'm a bit stumpped on this one. I created a security group in AD called "special data users" and add myself to it. I then created a share on a server and give that AD security group full access to ...
0
votes
7answers
9k views

script for win/dos to create folders from list of names in a file

Scripting question. Dang, it should be easier than this. I have a file with a list of names. I'd like to turn those names into folders. Whenever I try the FOR loop, all I get is the name of ...
2
votes
3answers
2k views

Unix Linux directory compare

I have a known good directory structure that I'd like to compare owner/group and permissions against another server and flag any files/folders that need to be changed. Since I wont have access to both ...
1
vote
1answer
1k views

How do I enable W3C extended logging on Apache (LAMP or XAMPP)?

How can I enable W3C extended log format on LAMP and where will the default log directory be located (and named what)? (or XAMPP)
0
votes
2answers
141 views

how to add contact to DL

any one can help me to add a contact to Distributin list in Active directory.
1
vote
3answers
1k views

How to add Command Prompt Here to a folder context menu in Windows 2003?

I am doing quite a bit of work at the command line and recently started having to do it on a Windows 2003 box. I can't figure out how to add a Command Prompt Here to a folder context menu. And ...
2
votes
6answers
27k views

Unable to remove Read-Only attribute from folder in Windows XP

I have this directory which I cannot remove the read only attribute from. The computer is running XP SP2 (or SP3, not sure) and the directory sits in a NTFS file system. Looking into the web I found ...
0
votes
4answers
959 views

Any decent open source link/directory managers out there?

I maintain a site with a crusty old version of "Links" by Gossamer Threads. It's written in perl, gets 99.99% of its submissions from bots, and is just plain out-dated. Now, I realize that Gossamer ...
1
vote
2answers
247 views

cd to a directory when its path is entered as a command (instead of “foo is a directory” error)

I hate when bash gives me "duh!" kind of error: foo$ ./bar -bash: ./bar: is a directory I used to love AmigaOS shell in which "execution" of a directory simply meant setting it as the current ...
7
votes
7answers
19k 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 ...
3
votes
2answers
1k views

Force apache to server different directories on different ports?

For example, say I have my htdocs in: ~/public_html and those documents are being served on port 80. Is there any way to make apache server documents in: ~/public_html/something on a different ...
10
votes
5answers
316 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 ...
20
votes
2answers
18k views

Add directory structure to SVN, without files

Is there a way to add a directory structure to an SVN repository without adding the files contained in the folders?
8
votes
9answers
10k views

How to solve linux subdirectories number limit?

I have a website which will store user profile images. Each image is stored in a directory (Linux) specific to the user. Currently I have a customer base of 30+, which means I will have 30+ folders. ...
1
vote
4answers
2k views

Get Folder Size on Linux

I have a lot of home folders under /home/ and I would like to get the total size of each users folder in an easy to read list. ie /home/user1 100MB /home/user2 24MB /home/user3 54MB etc. ...
4
votes
2answers
5k views

How to count all subfolders in an directory?

How can I count how many folders (including subfolders) I have under an specific folder?
23
votes
2answers
12k 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 ...
0
votes
1answer
149 views

How do you set a directory's default file?

Can I configure one specific directory on my webserver to use an atypical default file such as "default.php" instead of "index.php"? Do I have to create a ".htaccess" file in that dir?
7
votes
5answers
7k views

Windows: How to delete files with a too long name?

I have a problem with delete, I would like to delete some folder which contains a number of files, and I am getting an error like: Cannot delete Folder: The file name you specified is not valid ...
0
votes
4answers
250 views

Windows Server Folder Replication

I have two servers using MS NLB for IIS and this is working great. I have a D:\Websites\ directory on both servers that contain the html, css, aspx, and images etc. I would like to have the ...