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

learn more… | top users | synonyms (1)

1
vote
3answers
43 views

Standard environment variables for distribution-specific paths

It seems to me that there's a lot of confusion (or at least there is on my part) about how different file systems are structured among different distributions of Linux/Unix. It would stand to reason ...
0
votes
3answers
127 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 ...
5
votes
2answers
59 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 ...
2
votes
2answers
506 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 ...
3
votes
1answer
174 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
23 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/...
1
vote
1answer
36 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....
0
votes
1answer
110 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 ...
4
votes
0answers
402 views

Custom desktop launcher search path in Ubuntu

I know I can write a .desktop file in /usr/share/applications or ~/.local/share/applications, but can I add new folders to the search path similar to the $PATH environment variable? For example, I ...
2
votes
0answers
88 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. ...
1
vote
0answers
49 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
34 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 ...
1
vote
0answers
46 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
140 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
0answers
40 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
61 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
133 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-...
1
vote
0answers
463 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 ...
0
votes
0answers
35 views

Where should the node_modules folder go? (Mint)

I'm just about to install Karma, Jasmine and NodeJS to start testing for AngularJS. I'm having a tough time figuring out where to put the node_modules folder. My question is split into two parts, does ...
0
votes
0answers
63 views

how do I execute a command on multiple files located in different directories at once and directing the output to a new directory

I am trying to write a script that will execute a command on files in many directories while returning the output to another directory in an organised way. I did a dry run and got some good results ...
0
votes
0answers
21 views

UDEV: Where do I store scripts that are used to process events using PROGRAM or RUN?

I want to RUN+='/usr/bin/nautilus' when a USB stick is plugged in. I do it on ACTION=="start", unfortunately I cannot do this directly from udev because it kills the process. This can only be used ...
0
votes
0answers
1k 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 ...