Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [directory]

A file system structure in which to store computer files.

4
votes
0answers
72 views

no such file or directory trying to list or remove file in btrfs

I have a file system mounted btrfs. I have one directory in particular, that I can't remove, because it's listed as non-empty. In that directory, there's one file, which I can see the name of, but ...
3
votes
0answers
35 views

When coding for Unix/Linux is it convention to use a trailing slash on path names, or to omit it?

When programming for Unix/Linux, is it best practice to use a trailing slashbor to omit it? For example: Trailing slash baseDir="/path/to/dir/" #code# outPath=${baseDir}addition/to/path/ No ...
3
votes
0answers
2k views

Using rsync with the verbose option and filtering the information displayed

I am using rsync with the -a -r and -v options to copy files and directories from one server to another. This all works fine. But when I make a change, for example, to a single file on the source ...
3
votes
0answers
1k views

xdg user dirs: not relocating although set?

I relocated my home directories using XDG user dirs as mentioned here: how to make gnome use my home folder as Desktop folder? However, this does not work for me so far. I have set the Downloads ...
2
votes
0answers
33 views

Other has permissions with umask 007 on VM with mounted folder

One thing that's odd to me right now is I am playing around with permissions. The way umask works to my knowledge is it basically tells what permissions u g o don't have using octal representation (...
2
votes
0answers
59 views

How to retrieve the current working directory inside an ssh client process from outside the process?

I am trying to find which directory an ssh client process is inside of on the remote host. This information is generally displayed in the top of a gnome-terminal during an ssh connection. EDIT1: I ...
2
votes
0answers
1k views

Unable to remove folder, even with `--force`, sudo not needed

Trying to remove a folder: $ rm -r folder rm: cannot remove 'folder/subfolder/cifscaf6': No such file or directory Doesn't work. Let's try with -f: $ rm -rf folder rm: cannot remove 'folder/...
2
votes
0answers
633 views

Permissions of subdirectories on Samba

On a CentOS7 system I installed samba to create a share for windows clients using the following steps: mkdir /samba/myShare Then I definded /samba/myShare as my shared folder via the smb.conf file. ...
2
votes
0answers
48 views

set ACL by NFS V4 IBM

I have the following directories and files: /project/ src/ test.txt temp.xls data/ data.xls The owner is always mytu and the Group is mytug. Now there is a user (e.g. user1) woh is ...
2
votes
0answers
333 views

create “virtual directory” with mounted device

I need some help with my file system. I have an debian server running, which have an Nextcloud instance installed. The server is running by an external provider as a virtual server. On this server, I ...
2
votes
0answers
59 views

“Union” based file manager

I would like to be able to perform actions on files in different locations within a common window/container. Let's say I have the following directory structure: └── DCIM    ├── browser-photos    │ ...
2
votes
0answers
47 views

Is there a way to give different permissions to different processes that are called from the same user?

I want to be able to have a r,w,x type permission given to specific processes and not to users. Any document I find shows that processes get the same permissions as the user calling it, but I want ...
2
votes
0answers
66 views

Reason for security software to not scan directories with more than 10,000 resources in them?

We have a security software on Linux which scans for exploits in files that exist in directories on the server (such as if websites had hack scripts uploaded to them). It defaults to a limit of 10,...
2
votes
0answers
197 views

One way diff between 2 directories

I am looking to perform a diff between 2 directories, both of which contain may files and subdirectories. I am hoping to perform a one-way diff between a source and target directory that will return ...
2
votes
0answers
112 views

How to restrict directory name creation to pattern?

I have FreeNas CIFS share. Mount command result: /dev/ufs/VSPHERE on /mnt/VSPHERE (ufs, NFS exported, local, soft-updates, nfsv4acls) I want to restrict users from creating directories that do not ...
2
votes
0answers
236 views

Directory size as reported by stat on NTFS

We all have seen gazillions of directory size reports from ls or stat. We know they don't mean real size of the content, but they do have meaning, but since the meaning is not very useful for normal ...
1
vote
0answers
23 views

Folders and files permissions for SDKMAN tool on Ubuntu

I am Java developer trying to set up my local CI server using Linux Mint. One of the crucial tools I would like to use is SDKMAN - the tool that allowes easy installation and management of different ...
1
vote
0answers
31 views

How to restrict autocomplete for the files found from PATH?

What I would like to be able to do is to have a list of words that are allowed to be autocompleted when typing the first word in the command line. Say, I have PATH=/dir, and the directory /dir has ...
1
vote
0answers
65 views

Sort directories before files and underscore first with ls

When using 'ls' i want to sort directories first and then all files AND sort directories/files with underscore first. Here is an example: _folder2 folder2 _file2 file I can sort directories first ...
1
vote
0answers
33 views

Make bash understand I want to complete a directory name after “cd”

How to get bash to auto-complete cd commands only with directory names and ignore filenames (just as CMD on Windows) Example: I'm in /some/folder/ I have -rwxr-xr-x filesharp -rwxr-xr-x ...
1
vote
0answers
30 views

fstab bound folders show as disks in GUI

I'm trying to mount different folders on sda7 in the folders in the /home folder. like documents, pictures, and music. I always did that like this: /media/betty/Tuinhuisje/Betty/Documents /home/...
1
vote
0answers
18 views

in ldap make the default bind the current logged in user

I do not want to specify a default bind_dn in the sssd.conf file for ldap (either openldap or active directory). Is it possible to configure the system in a way, that the first logged in user becomes ...
1
vote
0answers
32 views

Why am I finding duplicates of directories (folders)?

On my Manjaro Linux installation, I sometimes find partial duplicates of folders. In each case, the original folder has as many duplicates as it has characters in it's title minus 1. Each duplicate ...
1
vote
0answers
25 views

Listing only shallowest directories containing no files, all the way down

Supposing this file system structure: ROOT DIR1A FILE DIR2A DIR2B DIR3A DIR1B DIR2C DIR2D DIR3B DIR1C DIR2E ...
1
vote
0answers
479 views

chmod g+w+s on the directory without changing umask (Linux)?

I'd like to make new files, created in a directory, writable by others in the same Posix group without using ACLs. Not sure this is possible. The way I've accomplished this in the past was to change ...
1
vote
0answers
97 views

Directory size causing cpu load

I am monitoring several high volume directory using Zabbix. I used du command. I need to monitor in every 60sec. But problem is that Zabbix firing du command in every 60sec. it does not check whether ...
1
vote
0answers
95 views

Error 403, while trying to access directory using nginx on the webrowser

I am trying to list the contents of the directory /usr/share/nginx/TestJet/ using nginx. This is my nginx configuration : server { listen 80; root /usr/share/nginx/ server_name ...
1
vote
0answers
47 views

How to perform automatic parameter assignment according to the pattern of filename?

Suppose there are two type of csv files with the following filename format: Ass_B1_v1_<ShortName>_<ddmmyyyy>.CSV CATUpd_v1_<ShortName>_<ddmmyyyy>.CSV Or the format can be ...
1
vote
0answers
294 views

Encrypted (luks) + LVM Ubuntu installation where /home is encrypted as well (ecryptfs): How to make a new partition for /home?

I've installed Ubuntu 16.04, encrypted and with LVM. I also chose the option to encrypt /home (which encrypts the directory with eCryptfs). The default settings make an unencrypted /boot and an ...
1
vote
0answers
57 views

Can cp -r replace the cp -a in this case?

If I understand correctly the option cp -a someDir is essentially to archive a dir i.e. to copy its contents/structure and preserve access time & access rights. And it differs with cp -r someDir ...
1
vote
0answers
195 views

Linux machine mvn command creates ? directory

In my Linux VM, I have "?" directory created everytime I run mvn clean install command. for ex: cd ~/project/ where pom.xml file is present. When I run mvn command it creates "?" under project folder ...
1
vote
0answers
66 views

How to use rsync to restore folder time meta-data

A large amount of data was transferred from one NAS to a new NAS via windows explorer because of speed considerations. An attempt to use rsync was half-successful and restored the dates of files, ...
1
vote
0answers
123 views

Symlinks created but not “there” SSH

I am creating Symlinks for Magento purposes but for some reason something is going wrong. I created the symlinks using PuTTy SSH. So I did this: cd /home/user/domains/newwebsite/public_html/ ln -s /...
1
vote
0answers
81 views

get the toplevel folder name used by readpst -r?

I've come across the following minor problem trying to automate my use of readpst: readpst -w /some/dir/ -r mailtst.pst I can't predict the name of the top-level dir without some prior knowledge ...
1
vote
0answers
159 views

How to set folder permission with + at the end?

I'm trying to mount a network shared device in a linux box. I get permission issue but it was mounted properly in another linux server. The only difference on the server it works has a + permission at ...
1
vote
0answers
147 views

How do I set up user quota for /var/www?

I want to add quota per user in my Apache2 webroot. My /var/www directory is not a partition. I've found tutorials on how to set up quota for partitions, but how do I set up /etc/fstab without moving ...
1
vote
0answers
225 views

Denying access to multiple directories in vsftpd.conf

I'm trying to use the deny_file directive to prevent users from accessing several directories inside a local root, using vsftpd. For example, I would like to forbid users from entering inside the ...
1
vote
0answers
165 views

Bash tab completion not working within symlinked directory

I'm working with Bash 4.2.46 on RHEL7 with the bash-completion packages installed, but I seem to have found an odd corner case where tab completion doesn't seem to work as expected. I have a set of ...
1
vote
0answers
883 views

Allowing SFTP user to specific root directory only

I want to allow a SFTP limited user to access and change scripts in specific root directory called /root/scripts with SSH access disabled. I am having a hard time finding any solutions. The main ...
1
vote
0answers
100 views

Centos 7 FTP Hidden Directory Issue

After setting up Centos 7 with a web server standard install and LAMP stack. I installed vsftpd. Everything works fine and configured it to accept passive to enable gui ftp programs. However, when ...
1
vote
0answers
737 views

rm: Directory resources is not empty

I'm getting this kind of error when i'm deleting file on my AIX machine. Getting same error for rmdir. venky-19:[/hm/dev/application/backup/ear/] # rm -rf resources rm: Directory resources ...
0
votes
0answers
31 views

Add trailing slash in csh

How do I get csh to add a trailing slash at the end of tab autocompletion? eg: \stuff \otherstuff now if I type cd s and press tab, I get: \stuff and not \stuff\
0
votes
0answers
23 views

A way to see your location history within the command line?

Similar to git's reflog, I'm looking for a way to see the directories I have moved through. I have lost something and I'm not sure exactly what happened, and something like the reflog is exactly what ...
0
votes
0answers
36 views

How to map / mount a directory to another

I have two directories: /volume1/photos/ /volume1/shared_photos/ In shared_photos I have several sub-directories with pictures. What I want to do now is to "mount" or all the files from ../...
0
votes
0answers
27 views

What's causing folder to change ownership?

I have something funky going on with a few folders I'm hosting on a parallel filesystem. Every so often, the group ownership on the folders will revert to root:root Instead of an appropriate service ...
0
votes
0answers
137 views

VSFTPD refuses to list directory when PASV is enabled

I'm configuring VSFTPD on Ubuntu 18.04 and have followed all the guidelines. It's working OK for plain FTP (insecure), however as soon as I enable SSL/TLS and Passive mode, it connects, but I am ...
0
votes
0answers
17 views

Copy specific named directories, where content changed the last 24 hours

I can recursively find and copy all my test-directories (with content) of the current directory: find . -name test ! -path "./my_dest/*" -exec cp -r --parents {} /path/to/my_dest \; But now I want ...
0
votes
0answers
43 views

cannot permanently delete Xcode.app in trash, not even if with “sudo rm -rf” because directory is not empty?

I run on osx 10.14, and I was trying to delete and reinstall xcode. I have also tried the following in safe mode but have the exact same problems. I moved xcode.app to trash, right clicked and chose ...
0
votes
0answers
50 views

E: Opening configuration file ertificates - ifstream::ifstream (2: No such file or directory)

If I try to launch apt-get -y install libfontconfig libxtst6 screen xvfb libxcursor1 ca-certificates bzip2 psmisc libglib2.0-0 less cron-apt python iproute2 dbus libnss3 libegl1-mesa x11-xkb-utils ...
0
votes
0answers
23 views

How to rename ISPConfig directories set by chattr command

I would to import a restore of a web directories to /var/www/clients/client4/web18/web managed by ISPConfig. I read ISPConfig put an attributes on this kind of directories. /var/www/clients/...