Ubuntu – the difference between local and .local in ubuntu

filesystempaths

Echoing path in ubuntu returns following colon separated paths,

/home/stack/bin:/home/stack/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

In these paths at some places there is local while at others .local is used what is the difference between both?

Best Answer

in this particular case, local is a visible directory, and .local is a hidden directory. you can see list of all hidden directory and/or files in a certain directory using ls -a or ls .* command.