Your Home Directory

  1. Using the Linux Command Line
  2. The Linux Directory Tree
  3. Linux Shells and Basic Commands
  4. Changing Passwords
  5. Your Home Directory
  6. User Information
  7. Linux User Default Files
  8. Linux User Profiles and Paths
  9. sudo and su –
  10. Listing Files and Going Deep Into Filesystems
  11. Linux: Creating and Deleting Directories and Files

When you start a shell session, it opens in your home directory. This is true in all OSs, and even the paths are similar.

In Windows:

C:\Users\username\

In Mac:

/Users/username/

In Linux:

/home/username/

or

/users/username/

Why home?

It keeps your stuff segregated from other peoples’ stuff: see the Documents, Downloads etc. directories.

It is highly protected against other users, because of both its own permissions and because of the permissions of the directory above it. That’s what makes /home an ideal place to create a subdirectory and share it.

It gives you a separate programming (scripting) space for your own work. create a bin/ folder in your home and add it to your PATH variable for an easy way to test your scripts.

It lets you set your own preferences for everything you use: web browsers, text editors, terminals/shells, etc. Note all the files and folders with names that begin with a dot. That dot marks them as hidden files.

It gives you a place to share your web pages. Usually an ISP, for instance, will give you an html/ or www/ or similar-name directory forĀ  your personal site.