Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

linux directory location best practices for software development

I am new to linux (ubuntu) and am tasked to develop web pages using vscode. What would be the ideal location for me to keep my project directories? I don't want to be illogical or pollute a file system convention I don't know about.

like image 584
FairSite2C Avatar asked Jun 07 '26 14:06

FairSite2C


2 Answers

Personal projects all belong in the /home/ directory. When you're ready to test you'll symlink to the directroy you host from. When you're done with the project you'll have to decide where the best "permanent" location is. See the File System Hierarchy Standard for details.

like image 199
Alex Avatar answered Jun 10 '26 03:06

Alex


According the Filesystem Hierarchy Standard I recommend create a directory inside

/var/lib/

with the name of the application, just like this:

/var/lib/my-app

like image 41
Daniel De León Avatar answered Jun 10 '26 05:06

Daniel De León



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!