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
1answer
2k views

/bin/sh: /bin/cp: Argument list too long

I have problem with this command: 'cp' -fr /www/*-aws/* /www/mainhost/aws/awstatstotals/tmp/ Error is Argument list too long - I know many /www/-aws/ folders. I know that I can use FIND command, ...
1
vote
2answers
4k views

delete all folders with tmp in name using batch file

Have tried to google this, but I always seem to get results relating to .tmp files, which isnt really any use. I have only a basic understanding of batch files, but I think I need something like ...
1
vote
1answer
339 views

Replacing directories that are subversion-monitored

We're trying to update an installed software which we have under control by subversion. The update instructions for the software require replacing several directories that have .svn directories in ...
1
vote
3answers
1k 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 ...
1
vote
1answer
12k 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 ...
1
vote
1answer
216 views

Apache Redirecting All Sub directory Sub Folders Back to Root Directory [closed]

I have a website stored in a root folder. example.com correctly brings me to the website stored in /var/www/mainsite. I want to put multiple websites in sub folders. so example.com/website1, ..2, ..3 ...
1
vote
1answer
150 views

How do I symlink one directory to a chrooted (jailed) directory?

'm trying to create a folder (directory) for a jailed user on my server that will allow him to access another folder outside of his jail. I'm trying to do this with symlink but all it does is create a ...
1
vote
1answer
163 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 ...
1
vote
1answer
48 views

How to setup usernames for websites

I have a news server. It may be possible that there will be multiple virtual hosts on it. There are two approaches that I see around. One is to login as root and create files under /www/etc, Like; ...
1
vote
1answer
92 views

Best way to introduce a new 2008R2 Domain Controller into a Domain to replace an existing 2003 DC

This should be an easy one for some of you guys with DC and AD experience. I am introducing a new DC running 2008R2 to replace a DC I have running 2003. I have run through all the set up and I have ...
1
vote
1answer
999 views

mod_rewrite redirects for site root and subdirectory from HTTP to SSL

Ok, so I have two sites within the same webroot — the main site (in the root) and an unrelated bunch of files in a subdirectory. We would like both of these sites to force rendering under SSL. At the ...
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, ...
1
vote
1answer
73 views

Starting Apache as a NON-Root User on Localhost

I want to start an Apache 2 server on localhost:8080 on an as-needed basis without superuser permissions, with the root directory for web content being /home/user/example/web/directory. I don't want ...
1
vote
2answers
1k views

How to lock down a folder for an administrator?

In a windows 2008 R2 server with multiple administrator accounts, is it possible to create private folders (one per admin) in one drive that the other administrators cannot unlock (gain access to)? I ...
1
vote
2answers
139 views

Directory in Linux(ext3) with only 2 files occupies 32000 blocks(16Mbytes)

IIRC my Operating Systems classes, the size of a directory in Linux is given by the number of files it contains([wikipedia link])1 So, why a directory with only 2 files occupies 32000 blocks? # stat ...
1
vote
2answers
605 views

Move content of one folder to another

I Have a directory say abc in var/www/ on my server Now i want to move all the content of abc/ directory to var/www/ What will the linux command for this. New bie in linux
1
vote
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
2answers
796 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
6answers
1k views

Delete files from directory: memory exhausted

This question is a logical continuation of http://serverfault.com/questions/45245/how-can-i-delete-all-files-from-a-directory-when-it-reports-argument-list-too-lo I have drwxr-xr-x 2 doreshkin ...
1
vote
2answers
2k 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 ...
1
vote
3answers
3k views

Point domain name to subdirectory with .htaccess

I have a server under one main domain, and I want to point another domain to /example/index.php to make another site. Is there anyway i can do this with .htaccess? cheers
1
vote
3answers
81 views

How can I ensure only salt-managed files remain in directory and keep the diff clean?

Assume a directory like this: - etc/nginx/sites-available/ - hostA - hostB - hostC Where hostA and hostB are created by salt. hostC was created earlier by salt as well, but since than ...
1
vote
2answers
2k 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 ...
1
vote
2answers
85 views

Windows network folder directory list inconsistent when viewed from two different client machines

I am on a corporate network using Windows. There is a network share provided by a NetApp appliance. When I log on to two different machines and view the network drive, I see inconsistent directory ...
1
vote
2answers
671 views

Dovecot: Email clients and duplicated folders

So in my server I'm usually going against a problem, different emails clients call some special folders like Sent and Trash different names like Sent Items and Deleted Items. My question is, can I in ...
1
vote
1answer
81 views

DropBox style folder storage

I would like to set up a storage for people to access. So like I have a network set up with 1 domain controller and a back up server as well and I have user accounts set up in AD and basically I want ...
1
vote
1answer
1k views

Can I safely remove _vti folders added by my host or cpanel? [closed]

I notice user accounts on my cpanel server came with some _vti folders installed by default. _vti_bin _vti_cnf _vti_log vti_pvt _vti_txt _private As I understand these are some kind of Front Page ...
1
vote
1answer
199 views

how can I set all folders to show file version at an OS level?

I'm managing a lot of dll's and one thing I have to do constantly when copying them around is to turn on the file version attribute display in the folder where my dll's are. I'd like to set this ...
1
vote
3answers
2k views

Sync files and folders in windows with commands

I am a Linux user. I am looking for a command line tool for Widows(2008 R2) for files & folders synchronization. I am looking for a tool like rsync in Linux. I have to synchronize between two ...
1
vote
2answers
343 views

postfix sort mails using a cronjob

My mailserver consists of dovecot and postfix. I am receiving alot of mails from different mailing lists. These mails should directly go into my inbox when they come in, because it is easier to ...
1
vote
2answers
188 views

Run command to untar file in timestamped folder?

I have a .tar file that is transferred to our server every night by one of our client management systems. The file is a compressed .sql file which I need to uncompress and dump into our database. The ...
1
vote
1answer
1k views

Recover NTFS deleted folder

My client accidently deleted a folder under a Server 2008 shared folder which permanently deleted it. Does Windows offer some sort of restore for deleted files/folders? Or is there a good reliable ...
1
vote
1answer
231 views

Relative path incorrect in the view layer when hosting a rails3 app in a subdirectory using passenger and apache

I want to host multiple Rails apps on a multiple server using sub-directories. And have encountered some relative path problems. I have made a symbolic link to the app's public directory and placed ...
1
vote
2answers
3k views

Combine several locations with regex in nginx

I dynamic number of Joomla installations in subfolders of the domain. For example: http://site/joomla_1/ http://site/joomla_2/ http://site/joomla_3/ ... Currently I have the ...
1
vote
2answers
33k views

Copy a folder and all contents using group policy preferences?

I have used Group Policy Preferences to copy files to client computers many times. I can't figure out if it is possible to copy a single folder (including contents) to a client computer. Am I just ...
1
vote
3answers
412 views

/var and /home folders clogged up on cPanel (Linux)

Recently the /var and /home folders have been clogging up on my server and I received a 'critical error' email saying that the /home folder was 100% full. I managed to fix it using the LVExtend ...
1
vote
1answer
366 views

Wordpress htaccess redirect destroys my non-www to www redirect

In my root domain I have an .htaccess to redirect non-www to the www, and to redirect to a subdirectory (containing a temporary website). This is done using the following code: Options ...
1
vote
1answer
1k views

Rename folder using wildcard windows

I've got a piece of software that includes its own backup utility, but it generates folder names with the current date and time appended. I'd like to write batch script that will remove the date/time ...
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 ...
1
vote
2answers
772 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 ...
1
vote
2answers
1k 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
115 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?
1
vote
1answer
57 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
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 ...
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?
1
vote
2answers
799 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
7k 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 ...
1
vote
1answer
944 views

sed can't find a file that obviously exists

I run the following command which comments out all lines that contain the text "dlclose" grep -lIR "dlclose" . | grep -v ".svn" | xargs sed -i "s/.*dlclose.*/\/\/&/g" However, sed claims that ...
1
vote
2answers
2k views

389 directory server error “Operation requires a secure connection”

I have installed a directory server but I can't change the password of user. I have used this command: [root@xxxx]# ldappasswd -x -D "cn=directory manager" -W "uid=xxxxx,ou=xxxx,dc=xxx,dc=xx" ...
1
vote
1answer
430 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 ...