Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • (1) Not all distros put ~/bin in PATH by default, so even if you put them in ~/bin you might have to follow rozcietrzewiacz's answer anyway, and (2) why wouldn't you just use a symbolic link or alias rather than modifying fstab? Not everyone has root access. Commented Mar 19, 2022 at 14:58
  • @frabjous, and not everyone writes scripts and compiles programs. what do you suggest creating a symbolic link to? to one program or script? but if you have a bunch of scripts and you periodically create new ones, then this may require a lot of effort. Commented Mar 19, 2022 at 15:20
  • @frabjous, anyway, I'm not saying how you SHOULD - I'm just suggesting how you CAN store your scripts. Commented Mar 19, 2022 at 15:28
  • Folders can be targets of links. Your answer involved mounting the folder somewhere else. Why not create a symbolic link to the folder instead? It would work just as well. Commented Mar 19, 2022 at 16:24
  • @frabjous, if you symlink your scripts folder to the ~/bin it will appear there as a subfolder, but PATH will not know about this subfolder and you won't be able to run your script without its path. The purpose of the operation I propose is that the scripts from my ~/scripts folder appear inside the ~/bin folder and then I can run my scripts on terminal by a simple name without a path and without changing of the PATH variable. Commented Mar 23, 2022 at 11:07