I have read many Questions and Answers here. In some of them there are directories that I cannot find on my computer, for example:
/home/username/.local/
~/.local/share/Steam
What is ~
, what is folder start with .
, and how I can access these folders?
~
is a special shell replacement. It's replaced with your home directory (typically/home/$USER
but not neccessarily). It's a shortcut we use because it's nice and short and it's impossible to know everybody's$HOME
.Files and directories prepended with a dot are hidden. In Windows it's a boolean setting on files, in Unix it's based on the filename. You can still access them though:
nautilus <full path>
cd
directly to the path.~
is for accessing your home directory , if you typecd ~
you will reach your home directory.For example you want to go to Music directory from any directory just type:
cd ~/Music
If a directory name starts with dot
.
it means that is hidden however you can access it from cd .foldername, also there are other uses of dot like:1)
cd .
u remain in the same folder where you are before entering this command2)
cd ..
go to previous folder from the current folder NOTE : Folder and Directory are used interchangeably