[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Which subdirectory for a usedr-specific executable?



On 3 Oct 2024 07:51 -0500, from rowlett@access.net (Richard Owlett):
> Is there standard/recommended location for an executable to be used by only
> a one user?
> In my case it should be under /home/richard/ .
> But where?

The XDG Base Directory Specification recommends ~/.local/bin for
"user-specific executable files".

https://specifications.freedesktop.org/basedir-spec/latest/index.html#variables

systemd also recommends that same directory for "executables that
shall appear in the user's $PATH search path".

https://www.freedesktop.org/software/systemd/man/latest/file-hierarchy.html#Home%20Directory

https://www.freedesktop.org/software/systemd/man/latest/file-hierarchy.html#~/.local/bin/

I would say that meets your requirements as stated.

-- 
Michael Kjörling                     🔗 https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”


Reply to: