operating systems and you becoming a power user week 1 answers
Basic Commands
1. Using a Linux machine, you have the following directory tree: [directory tree plugin]. If your current path is /home/cindy/Pictures/Canada, and you want to change to the Alaska directory, which of the following commands can you use? Check all that apply.
- ls ../Pictures/Alaska
- cd /Pictures/Alaska
- cd ../Alaska
- cd /home/cindy/Pictures/Alaska
2. In Bash, which of the following commands can be used to view a list of all files in the /home directory? Check all that apply.
- ls -la /home
- ls -l -a /home
- list -a /home
- ls -la ~
3. In Bash, which of the following commands can be used to remove a directory named "Miscellaneous Directory” ?
- rm -r Miscellaneous\ Directory
- rm Miscellaneous\ Directory
- rm -r Miscellaneous Directory
- rm Miscellaneous Directory
4. Which of the following are command line interfaces (CLI) on Windows OS? Select all that apply.
- Command Prompt
- Parameter
- PowerShell
- Bash
5. Which command is used in both Linux and Windows CLI to create a new directory?
- cd
- mkdir
- rm
- ls