The directory tag has no wiki summary.
5
votes
11answers
38k 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 ...
4
votes
3answers
2k views
0
votes
1answer
286 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 $ ...
2
votes
4answers
5k 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?
0
votes
2answers
289 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 ?
11
votes
2answers
13k 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
654 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
...
5
votes
5answers
7k 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 ...
11
votes
6answers
2k 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
6k 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
518 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?
1
vote
1answer
258 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 ...
2
votes
2answers
405 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
366 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 ...
6
votes
7answers
797 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
79 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 ...
12
votes
10answers
7k 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
928 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
153 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
195 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
4k 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 ...
6
votes
5answers
3k 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 ...
1
vote
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 ...
0
votes
1answer
597 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
140 views
how to add contact to DL
any one can help me to add a contact to Distributin list in Active directory.
2
votes
6answers
18k 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
848 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
238 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 ...
3
votes
7answers
9k 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
407 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 ...
9
votes
5answers
274 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 ...
12
votes
2answers
9k views
Add directory structure to SVN, without files
Hey,
is there a way to add a directory structure to an svn repository without adding the files contained in the folders?
Regards,
x3ro
7
votes
9answers
5k 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. ...
13
votes
2answers
6k 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
142 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
4answers
246 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 ...
13
votes
5answers
22k views
How do I find (or exclude) all directories and sub-directories matching a certain pattern (in Linux)?
I'm trying to use the Linux find command to find all directories and sub-directories that do not have .svn (Subversion hidden folders) in their path. I can only get it to exclude the actual .svn ...
5
votes
3answers
4k views
Un-tar a specific directory inside of a tar
I have the Wordpress tar, latest.tar.gz. Within it is the following structure
/wordpress/dirtories/files
When I do the following command I would prefer if I could have it unpack starting at ...
5
votes
8answers
2k views
Linux Recursive Delete Keeping The First Dir
First question here, I'm usually on StackOverflow.
I need to delete all the contents of a directory, but not the directory itself as I don't have permission to delete that actual directory. This ...
2
votes
1answer
169 views
linux: directory created with Access: (0000/d---------)
On a Linux (ubuntu) machine, an automated script running as a normal user is creating a subdirectory under its home directory. For some reason, the directory is created with Access: (0000/d---------). ...
6
votes
3answers
2k views
Fast way of knowing real directory size on linux/bsd
What is the fastest way of computing real directory size? I somehow catch myself needing that a lot.
Simply doing:
# du -hs /dir
Is too slow. Is there any service I could run which would ...
16
votes
6answers
4k views
Meaning of directories on Unix and Unix like systems
I've been using Linux for a couple of years now but I still haven't figured out what the origin or meaning of some the directory names are on Unix and Unix like systems. E.g. what does etc stand for ...
5
votes
2answers
12k views
How do you use SCP to copy a deep directory?
I need to copy a deep directory on one windows machine over 'itself' on another windows machine. I can't seem to get the command to work correctly. The current problem is that it appears that scp is ...
4
votes
2answers
1k views
How to create union of two directories?
In case of unix/linux, is there a way to create union of two directories without copying or linking manually everything to a single directory?
2
votes
9answers
1k views
Storing files in a directory… are there limits?
I am using CentOS 5 with Plesk 9 (64-bit), I am running a site where users will be uploading pictures. With a 64 bit os, are there any limits to how many files I can store? All I care about is ...
0
votes
1answer
576 views
how to add a virtual directory on a remote machine IIS 6
We have a build script to add a Virtual Directory to an existing website running on the same server.
it works fine,
is it possible to add a virtual directory to a remote machine? which the user has ...
2
votes
4answers
1k views
What is a good convention for website directory structure?
Do to some changes in personel at my company I have inherited the responsability over administering our web server. Unfortunately there does not seem to have been a standard convention used for ...
8
votes
2answers
115 views
Is there a good summary somewhere of what should go in each of the main folders in a linux install?
eg bin, sbin, proc, lib, boot, usr, etc...
Is there a standard list somewhere, does it depend on the distro?
This is essentially to answer the common question I have "I'm installing X or putting Y ...
