Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    File locations

    Scheduled Pinned Locked Moved Development
    3 Posts 2 Posters 8.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lorenzr
      last edited by

      It has been a long time since I last developed for a Unix shell.  (Current a DB application developer) (really tired of lame hardware firewalls).
      My questions are for packages what would be the standard places for files on the file system.
      My guesses are

      • /usr/ for temporary files since this is a ram disk partition.

      • /usr/pkgname/log for logfiles

      • /usr/pkgname/tmp for temp files

      • /var/ for permanent fiiles.

      • /var/pkgname/ for shell scripts, additional php, inc, other runtime junk to be kept between reboots.

      • /etc/ should be kept out of for packages??

      1 Reply Last reply
      Reply Quote 0
      • S
        sullrich
        last edited by

        /usr/local/bin|sbin          <–- third party applications
        /usr/local/etc/              <--- third party conf files
        /etc                            <--- system conf files
        /usr/local/pkg/              <--- pfSense CoreGUI files

        Our package system basically bootstraps FreeBSD binary packages with a XML layer giving us the additional capabilities of pfSense such as the webConfigurator.

        Have a look at http://wiki.pfsense.com/wikka.php?wakka=CoreGUI for more information.

        1 Reply Last reply
        Reply Quote 0
        • L
          lorenzr
          last edited by

          Yes got the GUI and FreeBSD binaries concepts.  I was just looking at the other packages and noting the different locations. 
          Thanks what I wanted.  I was asking about for a place to dump files downloaded from an URL then converted for use.

          1 Reply Last reply
          Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
          Privacy Policy · Cookie Policy