The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
196 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
2
votes
1answer
338 views

Storing user profile in a corporate environment. Where, how and why?

I'm a programmer and don't know much about Active Directory, LDAP, etc. What I'm trying to build is some kind of profile web page for each employee where I work. Something similar to this : ...
3
votes
2answers
74 views

Should http and https requests access the same files

Is it ok to have http and https requests point to the same directory such as var/www/? It seems like it would be alright since when you're say authenticating a user you can just make sure to call ...
1
vote
1answer
202 views

Directory inside or outside VirtualHosts?

Is there a difference between putting Directory tags inside or outside VirtualHosts? I found a configuration file that has several VirtualHosts all with the same Directory tag inside, and the same ...
5
votes
3answers
120 views

directories with two one dot (.) entries

I'm trying to clean up my lost and found, and I've managed to remove most things, but I'm left with "almost" empty directories, like: lost+found/#14042862: total 1324 dr---wx--- 2 76040 43010 ...
4
votes
1answer
711 views

Shrink/reset directory size?

Is there a way to shrink a directory entry? My dovecot maildir directories have increased in size from the default 4096 to several megs, and it is messing with disk quotas. The only way that I have ...
1
vote
1answer
389 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 ...
5
votes
4answers
8k views

Windows Service: Can I configure the current working directory?

By default, Windows services start in the sytem32 directory (usually C:\WINDOWS\system32). Is there a way to set up a different working directory? I am thinking of some registry parameter beneath ...
0
votes
1answer
449 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 ...
1
vote
1answer
546 views

“The local device name is already in use” error when connecting to active directory shared folders

We have a Windows Server 2003 running active directory - the users login with their AD accounts from their PCs. We have setup a file server where each AD user has a shared network folder hosted on the ...
1
vote
1answer
291 views

Active Directory Merge - Merging User accounts

I need to merge two active directories, OLD and NEW. However, many users already exist in both OLD and NEW with the same userid. I want to preserve the sid of Bill@new, while merging in the sid ...
1
vote
3answers
2k views

Apache will not display index in web root, subfolders are fine

I have an Apache 2.2.3 server running on CentOS 5.5. In the root of my web directory, there is an index.html file. Going to something like, say, www.exampledomain.egg/index.html works, but going to ...
2
votes
2answers
2k views

How do I get the last part of directory from a command line

How do I store the last part of directory in a variable? For example I have the following path: A\B\C\D, I want to store D in variable like file_name=D.
0
votes
1answer
91 views

How to set a PHP ini config setting for a specific (virtual) URL path in the apache conf?

I want to set a specific upload_max_filesize setting for a specific URL on my webserver. The URL path is not a real path since it is a apache rewritten seo friendly path. This does seems not to ...
0
votes
1answer
35 views

short script to read and create matching directories

I need to do a z:\music\: dir *flac* to get a listing of directories... (they are named Artist - Album [flac]) and from that list of directors, create new matching directories, but replace the ...
4
votes
3answers
2k 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
79 views

delete dirs in a specified period of time

I have a list of +30.000 directory and I have to delete all the directories and their content from 2005 to 2006, via terminal. Thanks for help
0
votes
1answer
137 views

VPS multiple sites help

I have a VPS which has a single website associated with a single IP, This website is in wordpress and it is directly placed or installed into the /html directory, which means inside /www/html/ my ...
2
votes
6answers
22k 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 ...
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 ...
2
votes
2answers
1k 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
3answers
576 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
3answers
607 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.
1
vote
1answer
516 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
335 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 ... ...
3
votes
3answers
110 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 ...
0
votes
2answers
77 views

Redirect /directory to /directory/?

I am using a (dv) server from Media Temple, and I have wordpress installed on the root of my domain. I have a directory called support that holds a standard xhtml webpage, but if the user enters the ...
0
votes
1answer
154 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 ...
1
vote
1answer
89 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
53 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
256 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
1answer
96 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 ...
5
votes
1answer
6k 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 ...
2
votes
1answer
235 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
2answers
926 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
1answer
145 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?
0
votes
1answer
162 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 ...
1
vote
2answers
164 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
150 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
247 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
1answer
241 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?
7
votes
7answers
975 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 ...
1
vote
1answer
951 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 ...
4
votes
4answers
7k views

How to minimize Windows Server 2008 R2 size?

Is there a guide somewhere on how to minimize the Windows Server 2008 R2 installation folder? I am talking specifically about all the features and roles that come with the Windows Server 2008 R2 ...
9
votes
4answers
9k views

Where is a good permanent place to install custom bash scripts?

I'm about to install "leiningen" which is a bash script for the clojure programming language with a lot of usefulness... ...but I'm not sure where it is appropriate to -put- a executable script in ...
1
vote
2answers
1k views

Adminstrator receives PermissionDenied when issuing get-childitem in PowerShell

I am trying to backup a drive from a laptop that is defunct. This drive was pulled from the machine and mounted in an external enclosure and connected to a desktop via USB. Laptop that the drive was ...
6
votes
4answers
216 views

Frequently accessed files and I/O usage

I'm curious, from a performance standpoint, is there an advantage in storing all files in one directory versus having each file in a separate directory? I'm not concerned about organization. Also, ...
0
votes
2answers
1k views

Hosts file entry directed to a directory on localhost

I have a directory setup with a nice error message at http://localhost/blocked/. I'd like to direct entries in my hosts relating to sites I've blocked to that instead of just 127.0.0.1. ...
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
4answers
110 views

How can I see the permissions of a directory with `ls`?

I want to see similar output like: ls -l /etc/php5/php.ini Which would give me: -rw-r--r-- 1 root root 40344 Jun 14 14:33 /etc/php5/php.ini Except the file in question is a directory, and doing ...