Linux CLI - Navigating the File System
You want to write a script that lists all files in your home directory, then moves into the Documents folder inside home, and finally prints the current directory path. Which sequence of commands is correct?
ls ~ lists files in the home directory.cd ~/Documents moves into the Documents folder inside home.pwd shows the current directory, which should now be Documents.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions