Go back to the home directory using cd and list all hidden files. (Use the ls -la command)

1 min read
Go Back to the Home Directory
Use the following command to return to your home directory:
bashCopyEditcd ~
or simply:
bashCopyEditcd
Step 2: List All Hidden Files
Run:
bashCopyEditls -la
Explanation:
ls -l
→ Lists files in long format (permissions, owner, size, timestamp).ls -a
→ Shows all files, including hidden ones (files starting with.
).ls -la
→ Combines both options, displaying detailed information for all files.
Expected Output (Example)
sqlCopyEditdrwxr-xr-x 1 user user 4096 Mar 29 12:34 .
drwxr-xr-x 1 user user 4096 Mar 29 12:34 ..
-rw------- 1 user user 1234 Mar 29 12:34 .bash_history
-rw-r--r-- 1 user user 220 Mar 29 12:34 .bashrc
-rw-r--r-- 1 user user 807 Mar 29 12:34 .profile
.
→ Represents the current directory...
→ Represents the parent directory.Files like
.bashrc
,.profile
are hidden configuration files.
0
Subscribe to my newsletter
Read articles from Ravi Vishwakarma directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
