If you want to go to one directory from another directory, what is the command?
1Times asked
May 2026Last seen
May 2026First seen
💡 Model Answer
The command to change directories in Unix-like systems is cd (change directory). It can take a relative path, such as cd ../folder, or an absolute path, like cd /home/user/documents. If you need to go to your home directory, simply type cd or cd ~. To move up one level, use cd ..; to list the contents of the current directory, use ls. The cd command updates the current working directory for the shell session, allowing subsequent commands to operate relative to that location.
This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.
🎤 Get questions like this answered in real-time
Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers — invisible to screen sharing.
Get Assisting AI — Starts at ₹500