How Do I List the Home Directory in Linux?
Contents

The ls command is used to list files or directories in Linux and other Unix-based operating systems. Just like you navigate in your File explorer or Finder with a GUI, the ls command allows you to list all files or directories in the current directory by default, and further interact with them via the command line.

How do I find my home directory in Linux?

To navigate to your home directory, use “cd” or “cd ~” To navigate up one directory level, use “cd ..” To navigate to the previous directory (or back), use “cd -”

How do I list the contents of a home directory?

1.1 Listing files and directories

Your home directory has the same name as your user-name, for example, ee91ab, and it is where your personal files and subdirectories are saved. The ls command ( lowercase L and lowercase S ) lists the contents of your current working directory.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest