- Accessing the Command Line
- Managing Files From the Command Line
- Creating, Viewing, and Editing Text Files
- Managing Local Users and Groups
- Monitoring and Managing Linux Processes
- Analyzing and Storing Logs
- Managing Networking
- Installing and Updating Software Packages
- Accessing Linux File Systems
- Analyzing Servers and Getting Support
- Scheduling Future Tasks
- Controlling Access to Files with ACLs
1. Which answer displays output to a terminal and ignores all errors?
- A. &>file
- B. 2> &>file
- C. 2>/dev/null
- D. 1>/dev/null
2. Which answer sends output to a file and sends errors to a different file?
- A. >file 2>file2
- B. >file 1>file2
- C. >file &2>file2
- D. | tee file
3. Which answer sends both output and errors to a file, creating it or overwriting its contents?
- A. | tee file
- B. 2 &>file
- C. 1 &>file
- D. &>file
4. Which answer sends output and errors to the same file ensuring existing file content is preserved?
- A. >file 2>file2
- B. &>file
- C. >>file 2>&1
- D. >>file 1>&1
5. Which answer discards all messages normally sent to the terminal?
- A. >file 2>file2
- B. &>/dev/null
- C. &>file
- D. >>file 1>&1
6. Which answer sends output to both the screen and a file at the same time?
- A. &>/dev/null
- B. >file 2>file2
- C. | tee file
- D. | < file
7. Which answer saves output to a file and discards error messages?
- A. &>file
- B. | tee file 2> /dev/null
- C. file 1> /dev/null
- D. file 2> /dev/null