News for hackers. Stuff that matters.
Re:Dotfile Madness by codedokode on Monday October 24, 2022 @03:26AM (#33313858)
> If a user doesn't know what .ssh/ or .bash_history are, and it can hurt them to accidentally delete or modify them, why show them by default?

Because they are there. To prevent accidental deletion you can show an icon with a skull and crossbones or name a directory "configuration files" so that it is obvious what's in there.

> if they do get them there is no safeguard to stop them destroying the system

If the folder are named or labeled as "operating system" then the user will probably understand that it is better not to mess with it.

> In what reality is someone developing software and building Docker containers who doesn't understand the concept of hidden files?

Hiding hidden files is annoying because you have to add -a to ls command, have to add an option in Bash to include then when matching against a star pattern and to configure Explorer so that it shows them. It would be easier without them.

Re:Dotfile Madness by Iamreadingthehn on Monday October 24, 2022 @03:38AM (#33313915)
> To prevent accidental deletion you can show an icon with a skull and crossbones

This will make users more likely to delete it thinking it's a virus.

> If the folder are named or labeled as "operating system" then the user will probably understand that it is better not to mess with it.

Big assumption that most people know what an operating system is.

Re:Dotfile Madness by hrbf on Monday October 24, 2022 @04:11AM (#33314095)
> Hiding hidden files is annoying because you have to add -a to ls command

Have you ever heard of aliases?

Re:Dotfile Madness by codedokode on Monday October 24, 2022 @05:02AM (#33314363)
You are suggesting a workaround instead of solving the original problem.
Re:Dotfile Madness by hrbf on Monday October 24, 2022 @05:16AM (#33314429)
The workaround is trivial and painless, whereas “solving the original problem” would require fundamental changes to decades-old systems conventions. I was responding to the “annoying” part, which is effectively solved using an alias.