โ† All ACSP Flashcard Decks

Command-Line Interface Flashcards

7 cards from real ACSP practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Command-Line Interface flashcards as text
  1. What is the effect of running `chmod 755 script.sh` on the file `script.sh`?

    Answer: Owner gets read/write/execute; group and others get read/execute

    755 in octal means rwx (7) for owner, r-x (5) for group, and r-x (5) for others.

  2. Which command displays a real-time, continuously updating list of running processes on macOS?

    Answer: top

    `top` provides a live, auto-refreshing view of CPU and memory usage by process.

  3. A technician needs to search all `.txt` files in the current directory for the word 'error' (case-insensitive). Which command is correct?

    Answer: grep -i 'error' *.txt

    `grep -i` performs a case-insensitive search across the specified files.

  4. What does `diskutil list` display in macOS Terminal?

    Answer: All attached disks and their partitions with identifiers

    `diskutil list` enumerates all disks and their partition schemes, sizes, and BSD device identifiers.

  5. A support technician wants to redirect the error output of a command to a file called `errors.txt`. Which syntax is correct?

    Answer: command 2> errors.txt

    File descriptor 2 represents stderr; `2>` redirects standard error to the specified file.

  6. Which command shows the network routing table on macOS?

    Answer: netstat -rn

    `netstat -rn` displays the kernel routing table in numeric form without DNS resolution.

  7. When using `defaults write` in Terminal, what kind of data is being modified?

    Answer: Application preference values stored in property list files

    `defaults write` modifies per-application preference keys stored in .plist files in ~/Library/Preferences.