Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [directory]

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

0
votes
0answers
12 views

How do I point my EC2 instance to a new folder? [closed]

I've got a staging site that was built by another developer. The folder name where the site is housed contains a spelling mistake which is confusing our contractors and looks unprofessional. Can ...
0
votes
2answers
92 views

How a subfolder of domain having different IP

We have multiple ecommerce platforms. Say, Magento and Shopware. Magento and Shopware are hosted in different servers. We want to migrate all Magento stores to Shopware. The domain name of Magento ...
1
vote
1answer
38 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
3answers
68 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
0
votes
0answers
21 views

IIS Website freezes when serving images from a virtual directory

I have a virtual directory in my iis website which points to a directory on the network (on another machine). This directory has over 100k images Every so often the website freezes. When it does, I ...
2
votes
2answers
245 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 ...
0
votes
0answers
14 views

PDF Printer not saving files on redirected folder

so morning headache.... we recently added a server to our office, but is not on-site, is off-site, and when trying to "PRINT AS PDF" files, it just won't save it on redirected folders, is ONLY ...
2
votes
3answers
43 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 ~/...
0
votes
0answers
16 views

Script: Monitor Directory and if new file(s) is/are found send changes per email

I am looking for script for linux, which checks directory and if new file/s is/are added, and sends email in format: There are new files in: Main Dir Subdir A - Filename.txt Subdir B - Subdir B1 - ...
0
votes
1answer
89 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
2answers
277 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
1answer
79 views

Nginx doesn't pick the right php-stack in location

TL;dr I created a location block (/de/forums/) outside of the nginx root folder but the php gets sent to the php compiler inside root so there is a directory mismatch. It wont take the defined php ...
0
votes
1answer
40 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
1answer
16 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
1answer
21 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
0answers
81 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
1answer
47 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 ...
-2
votes
2answers
78 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
1answer
19 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
2answers
121 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 ...
1
vote
1answer
449 views

nginx + fpm + subdirectory

I have an nginx config that looks like this: location ^~ /movies { alias /var/dp.cx/movies/current/public; fastcgi_index index.php; try_files $uri /movies/index.php; location ~* \....
2
votes
1answer
163 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 ...
0
votes
0answers
29 views

Why my index.html is always cached if requested without a trailing slash

In my var/www/, I have a index.html and in config file, I added the following directives: <Directory "/var/www/"> DirectoryIndex index.html Options Indexes FollowSymLinks </...
1
vote
1answer
39 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
1answer
28 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
1answer
120 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 %{...
0
votes
0answers
386 views

Unable to change ldap client password(RHEL 7)

Trying to change ldap client password but give following error.help me if we can change anything from 389 console if possible. -bash-4.2$ passwd Changing password for user devid. Current Password: ...
-1
votes
1answer
57 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
1answer
46 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/...
0
votes
2answers
48 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 ...
0
votes
1answer
26 views

Linux, search for extended attribute value

When a directory contains some files with non-empty extended attributes, all the attribute values can be shown as follows: $ getfattr -d * # file: file1 user.comment="comment1" # file: file2 user....
-2
votes
1answer
79 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 ...
4
votes
1answer
335 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 ...
2
votes
2answers
464 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 ...
3
votes
1answer
95 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
1answer
139 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
1answer
478 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 ...
0
votes
0answers
329 views

Nginx: PHP file works in server root, but shows 404 within alternatve location (alias)

Update! (at the end) Here's my server directory: /pub/ | `---html/ | | | `---_h5ai/ | | | | | `---public/ | | | | | `---index.php | | | `---<Some Other ...
-1
votes
2answers
253 views

How to configure Nginx to load wordpress site in subfolder? (for api calls)

My project directory structure is as follows: /var/www/mysite/ backend/ frontend/ where frontend/ contains simple html and js files, and backend/ is a wordpress site. I expose wordpress data ...
3
votes
1answer
205 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-...
-2
votes
4answers
79 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
0answers
157 views

Active Directory UPN Suffix / Logon Name

I have a question regarding UPN Suffixes / User Logon Names in Active Directory. Quick Rundown: We have a Domain and Exchange Server on-premise, the domain is called CONTOSO.local One user has 3 ...
0
votes
1answer
66 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 ...
2
votes
0answers
201 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 ...
0
votes
0answers
343 views

Redirect Multiple Domains to Subfolders

I have two domains and both of them are pointing at the same webspace. Now I have two subfolders, each for every domain. I've researched a lot and created a .htaccess file in the root directory. ...
2
votes
1answer
383 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 ...
1
vote
0answers
53 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....
0
votes
0answers
54 views

Make subdomain files only accessible via subdomain

On a shared hosting I have a public_html directory where the site is located. There are multiple subdomains created and they are located in the public_html like public_html/subdomain1, public_html/...
0
votes
0answers
73 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
0answers
641 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/...