Reputation: 4332
I have a Debian Linux system setup. I have written various shell script files to do various tasks, some python scripts. These scripts output data files for storage, and other scripts act on the data files to produce more data files.
At the moment, all of these files are held in one folder under roots home directory.
Question is, where should they really go ?
Should script files go into /usr/bin ???
Where do data files go, home directory ???
What are the general rules.
Upvotes: 0
Views: 975
Reputation: 14447
@askovpen is close, but Debian has its own Filesystem Hierarchy Standard. On Debian, local packages go in the /usr/local
subdirectories, which are already in the path. The document has info on where the various data files go.
Upvotes: 1
Reputation: 54454
I'd like to be able to give a helpful answer, but all I can say is "probably not" and "it depends".
"/usr/bin" on Debian should usually be the domain of the package system. Don't put stuff there by hand, unless you really have to.
Your stuff should probably not live in "/root" (which I figure is what you mean by "roots home directory"), but instead of the home of some other user account. Maybe /home/admin, assuming your user account is named admin. But manly because you should not ever log in as root, except for system recovery.
You need to be more specific about what you are doing and why. If you are just messing around in a sandbox system to learn unix scripting, then the answer is probably "it does not matter".
Upvotes: 1