0

I'm trying to follow this tutorial:

at one step I'm supposed to change the autostart file with this command:

sudo nano ~/.config/lxsession/LXDE-pi/autostart

but when I cd into my /home/pi folder (which is equal to ~/, right?) there is no .config folder:

my /home/pi folder

I managed to get it done in a workaround, but I'm still wondering, how can I find that .config folder? I've seen that in different tutorials too before...

The workaround was by the way: I found a different autostart file at etc/xdg/lxsession/LXDE-pi/autostart, and I put my command in there instead and that worked.

  • Any file with a name starting with a full stop is hidden. Use ls -la to see them. – Dougie May 26 at 20:01
1

Filenames that start with a period (aka. dotfiles) are considered "hidden", and aren't displayed by default by commonplace tools which respect this convention. Historically, configuration stuff is usually dotfiled. However, the intention is not that you not be able to find or access them (that is done with permissions), nor does it imply they aren't human readable, etc. It's simply to distinguish them from non-dotfiles.

Anyway, from man ls:

   -a, --all
          do not ignore entries starting with .

Ie., ls -a ~ should show the directory you are looking for.

| improve this answer | |
  • ok thank you, now I managed to get into that folder with cd -- .config – Grg Kro May 26 at 19:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.