this post was submitted on 25 Nov 2023
50 points (90.3% liked)
Linux
48118 readers
653 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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
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
view the rest of the comments
Yeah - the home directory in Linux pre-dates the windows Users directory by a long time. You'll see the multi-user nature of your OS exposed much more in Linux than you will in Windows.
Every user will have a /home/username directory on Linux (often referenced by "~" or by the environment variable "$HOME"). By default this is the only directory that user will have any permissions to create things (with some exceptions like /tmp which is used for temporary file creation - but nothing long-term). So all of your configuration, user-created files, etc. will be created there.
Configurations are often stored in 'dot-files' or in directories that begin with a period. These are "hidden" by default with most file-browsing tools (it's just a tradition - there's nothing otherwise special about files or directories that begin with a period). So you'll have a
.bashrc
which is the script that runs when you start a bash shell for example. Or.local
which is where you will find a lot of application configurations these days.So if you copy /home/username somewhere you will copy all of your configurations.
Some applications will install there as well. Steam, for example, will install your programs under $HOME/.steam.
Things you install "system-wide" will be installed to /usr/bin or /bin. This will typically be things that you use a package manager to install. So the steam application may be /usr/bin/steam but then all of its configurations, installed apps, etc. go in your home dir.
If you're curious where a command lives you can use
which cmd
ortype cmd
from the command-line and it will show you (something I often wish Windows had).NOTE: There are exceptions to everything I've said above. But those are the "general" guidelines. In short - if you installed it without needing root permissions it's likely somewhere in $HOME.
Thanks, that's a lot of really helpful info.
What do you mean by this though?
A command can 'live' in different places? And this might be a dumb question...but what is a command in this context?