Questions tagged [directory-structure]

The layout of the directory hierarchy — questions like “where does this file belong?” or “what is this directory for?”.

38 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
2answers
165 views

Installing programs on a removable drive

I am planning to install some software on removable media (which will presumably always be present in the computer, though it's possible that there could be occasions where it is absent). After doing ...
4
votes
1answer
98 views

GNU autotooling, where to install shell functions?

I have a tiny project that configures and installs some shell scripts using GNU autotools. Now, the scripts will have to source a common file containing some shell functions. Where should this file ...
3
votes
1answer
74 views

Swap directories in tree, from /dir1/dir2/dir3/dir4 to /dir1/dir2/dir4/dir3

I've got list of directories like: stats/gauges/stock/market/PLN/EUR/* stats/gauges/stock/market/USD/EUR/* stats/gauges/stock/market/PLN/CZK/* and hundreds like these. I need to change to order of ...
3
votes
1answer
715 views

Linux, SVN and Dropbox — Which directory should store my svn repository?

I'm trying to set up a linux server for a small team of programmers / artists to use as a svn repository. This repository will be restricted to lan usage but will be backed up online using dropbox. ...
2
votes
1answer
44 views

How to organize /opt?

I'd like to place a handmade script in its conventional place and folder structure. It's currently located in /opt/chkobm/chkobm, but it seems like a bad practice since it requires $PATH to include ...
2
votes
0answers
31 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 ...
2
votes
0answers
99 views

What is single user equivalent for /opt?

I'm creating the installer for my application. The app comes with specific versions of some popular libraries and binaries (Tcl/Tk and Python), so I can't install it to standard locations. If the app ...
2
votes
1answer
95 views

Read the files in sub-directories and move to single location with timestamp

I have a requirement to move all the files from multiple subdirectories into a single directory with adding timestamp to it. I am having the below directory structure, Interface/Temp/GoodsRecipt/...
2
votes
0answers
147 views

What is the equivalent of /usr/share/misc on Solaris?

The Linux Filesystem Hierarchy Standard has the following to say: This directory contains miscellaneous architecture-independent files which don't require a separate subdirectory under /usr/share. ...
2
votes
0answers
600 views

Directory/file naming conventions when storing media collection on Linux

I am building a NAS/HTPC that will operate under Debian (Wheezy, probably). I am trying to design the directory schema for what will be stored on the server so that everything is nice and uniform for ...
2
votes
2answers
556 views

What is an appropriate naming structure for storing application packages?

I need to determine an appropriate directory naming structure for a package management system. The original directory structure was not POSIX-compliant in any way and certainly not UNIX-style (you'll ...
1
vote
0answers
78 views

Show files modified after a particular date ('find') in hierarchical format ('tree')

I'm trying to view files modified before or after a certain date using the hierarchical output of the Unix tree command. For example, I know that one can use tree to sort files chronologically and ...
1
vote
1answer
39 views

Copy directory structure and sample of files from remote system

I would like to recreate the directory structure from a remote system to a local system and copy a sample of the files in each directory (e.g. copy only 5 files from each directory). There may be many ...
1
vote
0answers
366 views

${HOME}/Desktop directory somehow got moved in Linux Mint

I started up my laptop PC today and the Desktop directory inside my home folder has somehow been moved into a place other than ${HOME}/Desktop and another Desktop directory exists inside my home ...
1
vote
1answer
675 views

$HOME/.cache - on a small SSD or on an HDD?

I have a system with a small SSD (about 90 GB available for my single Linux partition mounted as /) and a much larger HDD. Now, my home directory has been balooning in space, filling up all of the ...
1
vote
0answers
28 views

Which subfolders of $HOME should I put on a scratch disk, and which on a backed-up one?

On my computer at work I have Fedora 24 installed (not my choice). My home folder is NFS-mounted and backed up routinely. I also have a pretty large local disk which is not backed up. Now, I've been ...
1
vote
1answer
65 views

What's the correct location to install a bunch of scripts & support files for a program?

I have a project that comprises a bunch of different files (listed below). I'm creating an install script for it, and want to make sure they all go in the right place from a unix hierarchy perspective....
1
vote
0answers
375 views

How to mount to subdirectory of autofs

I have follong problem - I'd like to use autfs in one place to mount to subdirectory of autofs. I.e. I'd like to have something like: foo -fs=... bar/baz -fs=... The problem is that (according to ...
1
vote
0answers
80 views

How should I distribute files/packages/software across multiple drives?

I am primarily a Windows user, but I am starting to use Linux more as I realize all the features it has. In Windows, I install my software that I use regularly on my 120GB SSD, along with the OS, ...
1
vote
0answers
225 views

How to duplicate my installation partition onto a btrfs partition?

I initially installed Linux Mint 17.1 on a ext4 partition, with the /home on a different partition. The intention is to be able to multi-boot and share the /home data. I'm planning to copy it to a ...
1
vote
1answer
250 views

Proper resource locations for software under /usr/local (var data like log)

I'm trying to put together a small piece of software, and I wanted to know the appropriate place to put various items if I'm setting to use /usr/local. For example, under /usr/local I will have: bin ...
1
vote
0answers
108 views

How shareable is /var/cache?

I know that some subdirectories of /var/cache are pretty much shareable, for example /var/cache/pacman (in case of ArchLinux), and possibly others (/var/cache/man?), but at least /var/cache/ldconfig ...
1
vote
0answers
166 views

Where is the best place to put a local repo?

I've made a custom repo to install ruby 2.0 on Ubuntu 12.04 Currently, I have the repo in '/vagrant/files' for testing. root@gitlab:~# tree /vagrant/files/ /vagrant/files/ |-- default |-- ruby2-...
0
votes
1answer
43 views

Print only files, directories containing files and empty directories

I am trying to index some LTO tapes (and some hard disks as well) and would like a simple output, stored in a text file. Something like the example below: ... /home/norg/Desktop/empty\ dir/ /home/norg/...
0
votes
1answer
38 views

Listing the content of the SFTP working directory

I am trying to create SFTP Account and I have the following configuration in /etc/ssh/sshd_config Match group sftpgroup ChrootDirectory /sftp/ X11Forwarding no AllowTcpForwarding no ForceCommand ...
0
votes
1answer
48 views

remove user access from /tmp directory

Is it possible to remove access of /tmp directory for a particular user, i.e user should not be able to even read /tmp directory ? I know tmp directory has 1777 permission and let every user to ...
0
votes
0answers
18 views

Checking dirs for duplicate trees

After recovering a dir with many entries from my backup, I noticed that I got loads of duplicate files, which I could de-duplicate with fdupes or jdupes e. g., but I recognized that many of my subdirs ...
0
votes
0answers
15 views

Feature for showing last visited file system locations

I'm transitioning from MacOS to Linux. In MacOS, there a program called Default Folder X, which embeds itself into Finder (the system file browser) by adding the feature which allows one to navigate ...
0
votes
0answers
83 views

AWS Linux image - where to put application directory?

I need to install my application files in the linux server. Where should I put the files? and what are the permission that I should set? Can I put them at /var/app? (AWS Beanstalk put the app at /var/...
0
votes
1answer
204 views

lftp changes directory size without changing files in directory

i used this code to backup a directory to an ftp mirror -R /media/root/7CBAA4537758FCA/SAVE/DeesBootCD_SlipStreamed2/ /luksftpmnt/put-into-images-folder/DeesBootCD_SlipStreamed2 and it worked well ...
0
votes
1answer
677 views

help for user permissions and file directory access mac OS Sierra

Im trying to sort my usrers and usser permission in terminal to install Ruby gems and other libraries, but getting nowhere because of the permissions denied errors. Steps I tried: Had a call with ...
0
votes
1answer
341 views

Change Kernel recipe used by qemux86 machine

I've decide to change the Kernel which is used by Yocto (as a learning exercise) but i don't know where the Kernel which is used by Yocto is stored. I understand that it is stored in a recipe but i ...
0
votes
3answers
204 views

Which Linux distribution places all applications in /opt?

I read on DistroWatch quite a while back that there's a Linux distribution that installs all application files in /opt directory. However, I do not remember the name of this distribution. Anyone ...
0
votes
1answer
172 views

Software installation trouble with Homebrew

I have previously custom installed Python and Homebrew on my OS X 10.9.5 system. I am now trying to install CMake and I am running into various errors such as: cd: /usr/local/src: No such file or ...
0
votes
0answers
2k views

/media, /mnt, /run and automounting

As of Fedora15, a new directory under root was introduced. A couple of quotes: i.e. /var is "persistant runtime data" and /run is "volatile runtime data", and /etc is "persistant system config ...
0
votes
2answers
30 views

combining results of two find commands linux

I have a set of configuration backups that are organized like backup/site1/10-11-2019 backup/site1/11-11-2019 backup/site1/12-11-2019 backup/site2/10-11-2019 backup/site2/11-11-2019 backup/site2/12-...
-1
votes
1answer
18 views

What is the correct way to install precompiled packages with various directories?

I'm trying to to figure out what is the correct way to install packages that contain pre-build binaries as well as configuration files. For example, I want to install cmake by its officially provided ...
-1
votes
1answer
41 views

How to create directory and files inside the directory

I want to know how to place files using touch command inside an directory whether it is multiple or single file.help is appreciated