Back to the 2026 paper

Module 2: Basics of Robot Operating System (ROS)

20262m

Which Linux command is commonly used to display the contents of a directory?

(i) cd
(ii) ls
(iii) pwd
(iv) mkdir

Worked SolutionAI Assisted

Answer: (ii) ls

ls lists the files and folders in the current directory. cd changes directory, pwd prints the working directory and mkdir creates a directory.

Similar questions

AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.