Your Home
- The term "home" in LINUX refers to what is called your home directory.
- This is where your are when you log in, and is the top of the directory structure where you can store your files.
- There are a number of different directory structure organizations for where everyone's home directory is. Sometimes they are under /usr sometimes they are under /home and sometimes /Users
- Where is it on your system?
- The quickest way to get home is to run the cd command with no arguments.
- You can also access your home directory with the built-in environment variable HOME
- So, to see what the value of your HOME is, run the command
echo $HOME
- To cd there, you could run
cd $HOME
(but there's a better way - what is it???)
- You can also use the tilda character to mean that login id's home directory.
- For instance, my home is at ~cathyb (if my login id is cathyb).
- Is this an absolute or relative path? How can you tell?
- To list the files in my home directory, what would you type?
- Where else have you all seen the use of the tilda character???