Questions tagged [directory]
A directory, also commonly called a folder, is a filesystem object used for organizing files and other directories.
684
questions
1
vote
1
answer
836
views
Customizing apache directory listing ONLY for subdirectories
I have a Download folder where I set up a directory listing sorted by last modified date, like this :
<Directory /var/www/html/Downloads/>
Options +Indexes
...
1
vote
3
answers
1k
views
Solaris 11 find empty folders (-empty not work)
How to find empty dir and delete in Solaris 11.
I try this:
find . -type d -empty
Output:
find: bad option -empty
find: [-H | -L] path-list predicate-list
2
votes
2
answers
4k
views
Change directory to "This PC" / "Computer" from .BAT batch file
I'm using a batch file to automatically launch a software at login.
This software maps a remote drives to which one letter is assigned (R:) and opens the file explorer to R:.
I would like to append a ...
2
votes
3
answers
215
views
How to replicate and flatten deep nested subdirectories' names into new folder
Example
I have input directory as follows with two branches at the 2nd level (2 and 22)
~/input_directory/1/2/3/4/5/6
~/input_directory/1/22/3/4/5/6
I want to run a command to populate ~/...
2
votes
2
answers
2k
views
Setup custom domain with folder in path for Blogger hosted blog
Google Blogger makes it easy to put a blog at a custom top-level domain or custom subdomain, such as:
www.example.com
blog.example.com
The setup involves creating a CNAME pointing to:
ghs.google....
0
votes
1
answer
6k
views
How do you define the "depth" of a folder structure?
This isn't a question directly related to any piece of software, but rather a question about terminology and definition of directory tree depth.
When I look at how find . -maxdepth 0 works it seems ...
0
votes
2
answers
1k
views
Error configure nginx multiple subfolders with multi wordpress site
I have problem with configure nginx for mutilple subfolder, I had apply many solutions on serverfault, but it didn't work with my site. My sites are using two wordpress. Main site https://optshare.com,...
0
votes
1
answer
2k
views
Allow one member of a security group to access a folder, deny access to the remaining members of the same security group
I wish to know if the following is possible and how to apply it within AD structure running on windows server 2012R2.
I apply folder access using security groups.
Example = Agents folder can only be ...
0
votes
1
answer
42
views
compare 2 directories with different files names and locations of the files
I'm currently having 2 (top level) directories with a lot of sub directories and files.
There are a lot of duplicate files between those directories but there is one problem with it, the names of the ...
0
votes
1
answer
44
views
Remove files from directory path B which are not found in path A on Linux
I have two paths on same system for example:
\mnt\a\data
\mnt\b\data
There are some directories and/or files in b\data which are not present in a\data. How can I remove those extra directories and/...
0
votes
0
answers
146
views
Folder Security Permission corrupted
i m using windows server 2003, in which the AD was corrupted. now i m moved to new server but my files and folders security permission was corrupted. every folder file i have to re- enable the admin ...
-3
votes
1
answer
2k
views
Recursively removing the content of a directory but not a directory itself [duplicate]
I have a directory which contains other directories and files of unknown depth. How can I delete only the content of the directory -- nested directories and files -- but not directory itself?
I've ...
10
votes
10
answers
17k
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
votes
1
answer
6k
views
AWS:EC2:: Why my web folder is called "html"? [closed]
My environment is:
Amazon linux 64 bit
I have a few questions...
I don't know if it's Ubuntu or Red Hat, is there any way to check?
And I need to run PHP and MySQL, thus I installed httpd.
is httpd =...
-1
votes
2
answers
3k
views
Removing the content of a directory recursively [closed]
I want to delete the content of a folder without deleting a folder: all files and all sub folders with sub files. This doesn't delete anything
sudo rm -rf /folder1/*
Why not? How to get it to work?
0
votes
1
answer
892
views
ls *.csv --ignore="*pattern*" returns files which contain "pattern"
Why does ls --ignore not ignoring the pattern?
Looking at the below example:
mkdir books
cd books
touch books_abby.csv
touch books_karen.csv
touch books_david.csv
touch books_tom.csv
This creates ...
0
votes
2
answers
250
views
Bash directory alias/redirect
I'm trying to compile a library and his dependencies (lots of dependencies), but the system that I'm using didn't have the usual directory structure. I'm searching for a method to "redirect" all the ...
36
votes
3
answers
40k
views
compare 2 directories and copy differences in a 3rd directory
Running ubuntu 12.04, I want to compare 2 directories, say folder1/ and folder2/ and copy any files that are different to folder3/. There are also nested files, so matching subdirectories should be ...
2
votes
0
answers
977
views
Getting Access Denied for folder as Administrator
On a Windows Server 2012 R2 machine, logged in as domain administrator trying to access the c:\users\public\desktop folder, getting access denied. This machine is the domain controller.
How can I ...
3
votes
2
answers
5k
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
1
answer
77
views
What's the most common and recommended directory for a web application on FreeBsd? [closed]
I have a website on a FreeBSD server which is reachable from the Internet. I know I can run it from whichever directory I wish. But still, which directory is more right, common and recommended? At the ...
1
vote
1
answer
100
views
XFS Folder Dates
I have a server running Centos 7, kernel 3.10.0-514.16.1.el7.x86_64, Samba 4.5.2, and XFS. We archive documents in a bunch of small .tif files, so XFS works great for us. The folder is mounted in ...
1
vote
1
answer
708
views
Apache Reverse Proxy | Wildcard directory rerouting (.htaccess)
How would it be possible to have a wildcard directory proxy?
I have gotten the basics but the issue is, it gives out the directory which I'm in, my htaccess file:
RewriteEngine on
RewriteCond %{...
-1
votes
1
answer
410
views
Cent OS 7.2 Disk (df -h) 100% full but directory size (du -sch /* ) not [duplicate]
[root@CentOS-72-64-minimal ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md2 204G 202G 0 100% /
devtmpfs 16G 0 16G 0% /dev
tmpfs 16G 0 ...
0
votes
1
answer
130
views
Postgresql and backups: can't access and manage my folder
I just want to pg_dumpall my postgresql db in /home/ftpuser/backups/ folder i just created.
So I created a group (backuppers) with ftpuser and postgres as members.
then i chgrp backuppers to /home/...
29
votes
2
answers
13k
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 distros I routinely use (Ubuntu, Centos, Redhat).
Is there any ...
0
votes
2
answers
194
views
How to upload directory from linux
I'm using Centos 7 Server.
I do have specific directory which am looking to automatically upload everything inside it each time the size of it changed in order to save a copy of it all time.
so i ...
9
votes
4
answers
48k
views
NTFS Permissions for root share that houses Home Directories Windows Server 2008 R2
I am using the AD Profile Tab to Auto create Home Directories at \\server\home, so that the permissions are automatically created.
What should the NTFS permissions be for the actual folder that the ...
-2
votes
1
answer
88
views
Cant see computer in windows local network
I work with local network where are 50 computers. All are conneceted by 10 switches. Inside network is local group - MSHOME where computers have one shared folder. The problem is that some but not all ...
5
votes
1
answer
886
views
Why is L2ARC not giving more speedup for directory traversal?
L2Arc is usually configured to cache random spinning platter reads on an SSD. I've set up this configuration in the hopes of speeding up directory traversal.
This is the setup:
# zpool list -v
NAME ...
29
votes
13
answers
212k
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 ...
2
votes
2
answers
5k
views
Using Robocopy to search and copy directories using pattern matching
I have tried to find an answer to this but most questions related to robocopy and pattern matching are focused on excluding folders whereas my intention is to include folders.
Assuming i have the ...
2
votes
4
answers
6k
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 ...
2
votes
1
answer
262
views
Active Directory IS somehow allowing standard users full access to Active Directory Users and Computers
I just got a new job a few weeks ago, and I noticed that somehow Active Directory is allowing standard users to modify users and groups in Active Directory Users and Computers. Even though the ...
1
vote
1
answer
698
views
nginx try_files not finding files in large directory (86k files)
To start out, the nginx config:
server {
listen 443 ssl;
server_name example.com;
ssl_certificate /example/fullchain.pem;
ssl_certificate_key /example/privkey.pem;
...
1
vote
1
answer
5k
views
Shared folder, deny user from deleting files
I have a shared folder in my network under windows server 2012 r2, I have 1 user that I would like to deny him from deleting any files on the folder.
The problem is that he is part of a group that has ...
2
votes
1
answer
990
views
Get a list of all users whose email address begins with sh followed by any 6 characters
I want to lost down all users whose email addresses begins with sh followed by any other 6 characters.
Sh******@abc.com
How can I achieve that using active directory users and computers or Get-...
-1
votes
4
answers
21k
views
How to set up apache virtualhosts serving different directories?
On my Ubuntu 16.04 system, I want to set up several websites that are served from several directories, that is, same domain, same port, same IP address. However, I don't know how to specify them. All ...
1
vote
1
answer
408
views
Apache outputs all urls of a second domain as a subfolder of the primary domain name
Would anyone be able to possibly give me some guidance?
Basically, I have a 'shared hosting' account with a large internet hosting provider, and my account lets me have multiple separate domains ...
0
votes
1
answer
107
views
Displaying dirsize in batch file windows server 2012 R2
I'm trying to display the dirsize with a batch file but so far no luck. DU, dirsize gives me a not recognized as an internal or external command error.
This is my batch file so far, it displays all ...
3
votes
0
answers
2k
views
AD DNS round robin - How to stop
Below is the architecture of my Active Directory setup running on Windows 2008 R2. All the clients are Windows 7 32/64 bit.
The setup is there are three sites and each site has its own Active ...
6
votes
4
answers
22k
views
Windows7 IIS7: can't turn off read-only flag for InetPub\wwwroot. Can't edit website files!
I finally got PHP running on Windows 7 IIS7 but now for the life of me can't edit files in wwwroot because my editor keeps saying "You don't have permission to save to this location... save in Pete ...
1
vote
4
answers
13k
views
Can't start MYSQL after changing directories
So I started running out of space on my linux hard disk. I added another hard drive and now I want to change the MySQL directories. So instead of saving the data into the old hard drive, it saves it ...
1
vote
0
answers
87
views
Redirecting address record to a subdirectory
Can someone help me out with how to redirect an URL that has an address record?
The situtation is as follows:
I am trying to resolve a WordPress URL (groups.regalcouch.com) to a subdirectory (groups....
5
votes
1
answer
2k
views
How can a file moved to a directory with GID-bit set inherit the group ownership
Problem
I know that a file that is created in a directory with the GID-bit set it will inherit the diretory's group ownership.
This however doesn't work for files that are moved to that directory as ...
0
votes
0
answers
136
views
Allow a user to read some other users' home directories - Windows
I have an user - reception with a home directory ("\nas\home") which I want to share it with another user only i.e.: john
I'm looking for a way around of it as we the way SMB home shares are treated ...
0
votes
0
answers
2k
views
Getting "No such file or directory" But it exists
I'm trying to cd into this directory
/lib/modules/2.6.32-573.18.1.el6.x86_64/build
However, it is saying this directory doesn't exist when it clearly does. When I enter the command ls -l /lib/...
1
vote
1
answer
1k
views
Cannot delete folder because it's open in another process
I cannot delete a folder that's located on a network path because "The file is open in another process". I have managed to recursively delete the folder contents with powershell, but not the root ...
134
votes
9
answers
180k
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
1
answer
175
views
Folder Effective Permissions Not Accurate
I have a folder on a Windows Server Standard 2008 that is shared. There is a user that I need to restrict access to this folder. They connect over VPN. When I look at the Effective Permissions, this ...