How to view user directories in Linux?

In Linux, you can use the following command to view the user directory:

  1. change directory
cd ~
  1. Show current directory.
pwd
  1. list
ls

This way, you can view the files and directories in the user’s home directory.

bannerAds