Question 180
From /home/ana/projects a user wants to change directory to /home/ana. One student proposes Run cd .. to move to the parent directory and another proposes Run ls -a. Which technical comparison is the soundest?
Explanation
Correct Answer
Correct distinction: Run cd .. to move to the parent directory targets parent directory navigation; The .. component denotes the parent directory relative to the current location. The compared alternative instead serves show hidden files.
Incorrect Answers
Incorrect mapping: Run ls -a is used for show hidden files. It does not displace Run cd .. to move to the parent directory for the described requirement.
The mechanisms are different: The .. component denotes the parent directory relative to the current location. By contrast, The -a option includes entries whose names start with a dot. They are not universally interchangeable.
The third option addresses long listing metadata: The long format displays permission bits, ownership and other file metadata. The original action remains relevant because The .. component denotes the parent directory relative to the current location.