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

learn more… | top users | synonyms (3)

0
votes
2answers
23 views

CentOS server - where should I store my scripts? [on hold]

I have CentOS server with WHM and few cPanel accounts. I connect to it using ssh. All cPanel accounts are stored in /home directory. centos-release-7-2.1511.el7.centos.2.10.x86_64 I also have ...
72
votes
23answers
27k views

rm on a directory with millions of files

Background: physical server, about two years old, 7200-RPM SATA drives connected to a 3Ware RAID card, ext3 FS mounted noatime and data=ordered, not under crazy load, kernel 2.6.18-92.1.22.el5, uptime ...
3
votes
2answers
6k 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
0answers
16 views

mounted network disk with cifs doesn't allow to move created folders

I can create, delete and rename folder (as long, as it is stays on the same level) on an cifs connected network disk, but I cannot move them. When I try to move one dir inside of another dir, it gives ...
1
vote
1answer
1k views

How to change default duplicity archive directory?

How can I change the duplicity default archive directory (~/.cache/)? The following option seems to be ignored. Option --archive-dir=/volume4/duplicity/cache/ --name backup duplicity 0.6.21 (...
-1
votes
1answer
24 views

Windows Server on domain, log on with domain user or local server account?

I have two servers set up, one is as active directory, and the other I am still configuring. On the server that is connected to the domain controller, should I be logging in as the local Administrator ...
1
vote
2answers
43 views

nginx sub directory wildcard rewrite

I have set up a server block on my nginx server, e.g. with domain testsite.com. I want to be able to install separate WordPress installations into direct child folders of the root folders, e.g. /var/...
1
vote
0answers
10 views

Laravel project in subfolder of public_html gives trouble with .htaccess redirect [duplicate]

I've set up my VPS server and am trying to set up a Laravel project. I have a /public_html/ folder with an index.html that's shown when visiting the website URL. I have a laravel project in: /...
0
votes
0answers
14 views

Multi user passwordless directory specific ssh login

I am running Ubuntu 14.04 LTS. I want to allow multi user passwordless ssh login. But I want to give directory specific ssh access. For example: My home directory(server home) has two folders user1 ...
1
vote
1answer
144 views

Confused on BigFix relevance - x64 files

I am using BigFix in an Enterprise Environment and noticed a recent round of Microsoft patches for 2016 have failed on a small group of assets. I was able to work around this by creating Custom Copy ...
0
votes
2answers
697 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 ...
0
votes
0answers
32 views

Logins to domain host fail with security database error

I have two DCs on site, and an ADFS box in AWS (for using SSO). It was working mostly alright for a long time. Then yesterday I created a new DC inside of AWS for disaster recovery. After that, ...
0
votes
1answer
27 views

Apache Aliased Directory doesn't work for child directories of alias

I'm trying to run two different applications under user. Application 1: /home/user/public_html/app/public/ Application 2: /home/user/public_html/forum/ VirtualHost has the Server set to ...
0
votes
1answer
76 views

group permissions on directory being ignored for user

It seems that there is a Linux user (on an Ubuntu 12.04.4 server) who is unable to access a shared directory, even though that user belongs to the group which owns the directory. Here is an example ...
43
votes
6answers
15k 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
7answers
12k views

Can I make windows treat Shortcuts to Folders the same it would a Folder?

I'm moving some folders to an external storage drive and replacing them with a Shortcut, however the shortcut is listed in with the Files, not the Folders. It also doesn't show up in the folder Tree ...
0
votes
0answers
53 views

setfacl access files and directories by other group under RHEL 7

I exhausted all option on the setfacl to allow other group to access (cp, mv, touch ) a file and subdir of my directory. Background: I have a RHEL 7.2 and created 4 different users, as a (default by ...
0
votes
1answer
19 views

Can I hide time and date and size in Nginx webserver directory listings?

By default Nginx webserver shows the date , time and the size of all uploaded files when you browse each directory . It's something like " 21-Apr-2016 07:38 719858135 " . Is there a way to ...
0
votes
3answers
2k views

How to allow only specific directories to use htaccess?

Currently in apache2.conf I have AllowOverride all set for /var/www which simply allows htaccess for all the sites on the server (which is Ubuntu, 9.04). However, I'd rather only allow overrides in ...
0
votes
0answers
44 views

Configure Azure AD Connect

I'm trying to set up an domain in Azure AD Connect on a Workgroup computer. The challenge that we have is, we have a dedicated domain controller for the purpose of Azure AD Connect and the other ...
0
votes
0answers
7 views

Dovecot: update change directory structure, two structures exists now

When I updated my dovecot two days ago, changes were made in configuration. Mails were stored in /var/mail/vhosts/domain/user and now they are in /var/mail/vhosts/domain/user/Maildir So I have two ...
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 ...
2
votes
2answers
1k views

How to Grant Apache Access to Directory

I am currently getting a locally hosted website up and running, but have encountered problems in accessing it from the host computer and other computers, as well. I have already created exceptions in ...
0
votes
0answers
11 views

Create two users with different privileges for the same folder

I've the following scenario: I need to create two users that will access in FTP the same folder with different privileges by using vsftpd. What do you recommend me? Is it a good idea to create ...
15
votes
12answers
115k 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 ...
-3
votes
3answers
57 views

What should the owner of `.` and `..` directories be? [closed]

A few questions about the . and .. directories: ls -la drwxr-xr-x 3 root root 4096 Mar 21 12:47 . drwxr-xr-x 60 root root 4096 Mar 15 14:36 .. Are . and .. actually directories or are they like ...
0
votes
3answers
2k 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
3answers
128 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
655 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....
0
votes
1answer
107 views

cronjob error “/bin/sh: /path/to/file: No such file or directory” [duplicate]

i've installed a python software that allows to run javascript on the server i've put the binary file (jsrunner) in this address /usr/local/bin/jsrunner so in the ssh when i try it it works fine ...
1
vote
1answer
29 views

Nginx point subdirectory to root

How can I point www.domain.com/ru/ to open the content of www.domain.com/ ? Not a redirect. I have tried alias and root but can't figure how to make it work. Thank you.
0
votes
2answers
45 views

Serving images from two different directories with Nginx

This should be basic... I'm brand new, and no amount of googling and searching stack exchange is helping. I have a website that I want to be able to serve images from, from different directories. I ...
3
votes
2answers
18k views

How to restrict deletion of a folder on NTFS share, but still allow modify access within folder

I am setting up a set of scan folders from a scanning copier device, and would like to know the best way to protect the folders (for each department) from moving or deletion, but yet still allow ...
38
votes
7answers
11k 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 correct?...
0
votes
0answers
42 views

How to configure rsyslog to forward all log files from specific directory?

I have already configured and working setup of centralized log server with web interface. But i need to forward all log files from specific directory in remote host "/Volumes/path/to/dir" to my server....
0
votes
1answer
32 views

Linux CLI Make a Tar.Gz with Tar.Gz First-level Directories

Currently, I use this command to make tar.gz archives: sudo tar -zcpvf archive.tar.gz directory1 directory2 directory3 Is there a way to compress multiple archives like above, but instead of ...
0
votes
1answer
43 views

Prevent deletion of folder but let access to everything inside of it

I know there is the +i flag for files and directories, but i have a deeper Problem. Is there a way to prevent a folder from being deleted by an User which should be able to create / access / remove ...
0
votes
4answers
89 views

Scan windows file system for directories containing certain words

Is there a command that I can run on a windows Server 2008 r2 that will only show directories that contain a certain word. For Example I want to find all directories that contain "logs" That means ...
1
vote
0answers
55 views

“Deny from all” not working

I have made following configuration on httpd.conf. But, any IP still can access PHPMyAdmin URLs/aliases. What have I missed? Is this related with "Alias" directive? Alias /phpmyadmin /usr/share/...
4
votes
7answers
5k views

Free tool/script for directory size calculation [closed]

Does anyone know of a free command-line tool or script that calculates the size of a directory including all subdirectories? It needs to be compatible with Windows 7, work with hard links and ...
14
votes
3answers
55k views

Cannot delete folder with rm -rf. Error: device or resource busy

I'm trying to delete /var/www/html but I'm getting this error: rm: cannot remove `html': Device or resource busy
0
votes
2answers
106 views

Mount folder automatically in home directory for every old&new user

I want to allow access to /var/www/dev/ to every user in my system (+50) via their home directory For one particular user I can do: mkdir /home/user_name/www_dev mount --bind /var/www/dev/ /...
2
votes
1answer
3k views

Cannot read/write FTP directory vsftpd on centos 6.0 (empty folder)

I have Centos 6.0 and installed vsftp with YUM, I added a user with Webmin panel, set its home dir to "/var/www/html" and its shell to "/bin/sh", user id is 500, user group is same as name: "...
44
votes
2answers
20k 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 ...
1
vote
4answers
2k views

Real time Sync between two folders on different servers

What is the best way to sync two folders completely in real time over two servers (Ubuntu) in same network? Do you think syncing folders is a better idea than having a shared folder? If a shared ...
11
votes
8answers
32k 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 ...
0
votes
0answers
31 views

Nginx with software installed in subdirectories

I'd like to create a directory/website structure like this: / /index.php /tac /tac/1app1/index.php /tac/1app2/ /tac/1app3/ So there is one CMS in the root. In subdirectories there should be other ...
39
votes
7answers
40k 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
1answer
1k views

Folder rights doesn't work on group, but does on user

I've got this share where I want to restrict access to two folders so that only members of a group can get access to them. I've done this countless of times, but this time there's something odd going ...
10
votes
5answers
358 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 '...