Exercise: Working with Directories

  • Enter the command cd / and then ls and then hit Enter key
    • Take screenshot and explain what output we got?
  • Enter the command now cd /home and then hit Enter key
    • Do ls, provide screenshot and explain what is /home directory used for?
  • Enter cd .. and hit Enter key [ Note: here we have space after cd then use double dot]
    • Check what happen and give screenshot?
  • Now enter cd /var/www/html and then type cd and hit Enter key
    • Explain what happen and give screenshot?
  • Now type cd /root and then hit Enter key
    • Do ls, check any output we have on screen if yes then take screenshot?
Open chat
Hello 👋.
Tell me, how can I help you?