this post was submitted on 28 Sep 2023
677 points (98.7% liked)

Linux

47353 readers
1045 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 64 points 11 months ago (1 children)

One of my greatest pet peeves is random folders appearing in my home folder. Thanks for this

[–] [email protected] 72 points 11 months ago* (last edited 11 months ago) (4 children)

Let's count them. (not including legacy or standard locations like .local, .config, or .cache, .ssh, and shell configuration files

  • .aws
  • .azure
  • .bun
  • .byobu
  • .cargo
  • .dbus
  • .docker
  • .dokku
  • .keychain
  • .kube
  • .minikube
  • .motd_shown
  • .node_repl_history
  • .npm
  • .nuxt
  • .nuxtrc
  • .nvm
  • .oh-my-zsh
  • .pack
  • .psql_history
  • .pyenv
  • .python_history
  • .redhat
  • .ruff_cache
  • .rustup
  • .selected_editor
  • .sqlite_history
  • .sudo_as_admin_successful
  • .tmux.conf
  • .tox
  • .ts_node_repl_history
  • .vim
  • .viminfo
  • .vimrc
  • .vscode-server
  • .wget-hsts
  • .yarn

And a couple more, non-hidden files for Go.

  • go
  • sdk/go1.20
[–] [email protected] 29 points 11 months ago

i can almost ignore the hidden ones, but ~/go? no thats just rude

[–] [email protected] 16 points 11 months ago* (last edited 11 months ago) (2 children)

Why aren't all of these just normal directories under either .local (for data files) or .config (for configuration)???

Actually, I think the XDG directories should be under a single XDG directory either dotted or not (a better name would be OK with me) ~/xdg/Documents, ~/xdg/Music, ~/xdg/Pictures etc.

[–] [email protected] 5 points 11 months ago (1 children)

Documents, Music, etc actually are configurable. Just edit ~/.config/user-dirs.dirs

[–] [email protected] 3 points 11 months ago

I also had to (under KDE)

  • Edit the settings for each of the folders in Dolphin (The file manager)

  • Edit the location of the desktop folder in the settings found by right-clicking the desktop and going into "Configure Desktop and Wallpaper" Location.

  • Edit the show item by choosing Custom Location, and adding the XDG directory for the desktop. This setting may not stick.

[–] [email protected] 5 points 11 months ago

That's the beauty: XDG compliant applications are entirely configurable using standardized environment variables.

[–] [email protected] 14 points 11 months ago (1 children)

afaik, tmux can use ~/.config/tmux/tmux.conf or something, if ~/.tmux is not found

[–] [email protected] 5 points 11 months ago

Neat! Git has the same behavior.

[–] [email protected] 4 points 11 months ago

If these were links to issues that could be reacted to, I'd totally do that.