cli.fail

Practice makes fewer incidents.

64 tiny incidents. Fewer future facepalms. Explore Git, Docker, Linux, and npm by track and difficulty. Choose an answer or type the fix in a simulated terminal. Each scenario includes the reason behind the fix and a link to the official documentation. Practice rounds never change your daily score or local streak.

  1. 01

    The lockfile drift ↗

    Fix npm ci when intended dependency changes leave package.json and its lockfile out of sync.

    Type the fix ↗
    npm
    Intermediate
  2. 02

    My changes vanished. Allegedly. ↗

    Understand why git diff is empty after staging, and inspect the patch ready for the next commit.

    Type the fix ↗
    Git
    Beginner
  3. 03

    The repository has left the chat. ↗

    Run Git against a repository in another directory without changing the current shell directory.

    Type the fix ↗
    Git
    Beginner
  4. 04

    A little less committed. ↗

    Unstage an accidentally added tracked file while keeping its edits on disk.

    Type the fix ↗
    Git
    Beginner
  5. 05

    Start was more of a suggestion. ↗

    Find the scripts a package actually defines after npm reports a missing start script.

    Type the fix ↗
    npm
    Beginner
  6. 06

    npm would like a word with your flag. ↗

    Pass a port flag through npm to a trusted local Vite development script.

    Type the fix ↗
    npm
    Beginner
  7. 07

    It exited. It has notes. ↗

    Inspect the last 50 log lines of an exited Docker Compose service without restarting it.

    Type the fix ↗
    Docker
    Beginner
  8. 08

    Indentation: the deployment strategy. ↗

    Validate Docker Compose configuration quietly before starting any containers.

    Type the fix ↗
    Docker
    Beginner
  9. 09

    One folder. Two arguments. ↗

    Quote a directory name containing spaces so Bash passes it as a single argument.

    Type the fix ↗
    Linux
    Beginner
  10. 10

    The text thinks it’s a flag. ↗

    Search for text beginning with a dash without treating that text as a grep option.

    Type the fix ↗
    Linux
    Beginner
  11. 11

    The shell already opened your mail. ↗

    Quote a find name pattern so the shell does not expand it before a recursive search.

    Type the fix ↗
    Linux
    Intermediate
  12. 12

    A branch of your own. ↗

    Which command creates and enters feature/search?

    Type the fix ↗
    Git
    Beginner
  13. 13

    Origin story, please. ↗

    How do you display this repository’s remote URLs?

    Type the fix ↗
    Git
    Beginner
  14. 14

    Look before you merge. ↗

    How do you update remote-tracking information without merging?

    Type the fix ↗
    Git
    Intermediate
  15. 15

    The untracked guest. ↗

    How do you stash tracked edits and untracked files together?

    Type the fix ↗
    Git
    Intermediate
  16. 16

    Bring it back. Keep the receipt. ↗

    Which command restores the edits without dropping the stash?

    Type the fix ↗
    Git
    Intermediate
  17. 17

    A commit with receipts. ↗

    How do you inspect the latest commit’s patch and message?

    Type the fix ↗
    Git
    Beginner
  18. 18

    Somewhere in history. ↗

    How do you list commits whose message matches timeout?

    Type the fix ↗
    Git
    Intermediate
  19. 19

    The line has history. ↗

    How do you see the last commit attribution for each line?

    Type the fix ↗
    Git
    Beginner
  20. 20

    The file nobody sees. ↗

    Which command explains why debug.log is ignored?

    Type the fix ↗
    Git
    Intermediate
  21. 21

    Conflict resolved. Now what? ↗

    How do you resume the interrupted rebase?

    Type the fix ↗
    Git
    Intermediate
  22. 22

    Let’s unmerge this meeting. ↗

    How do you abandon the current conflicted merge?

    Type the fix ↗
    Git
    Intermediate
  23. 23

    Undo without time travel. ↗

    Which command creates a new commit reversing HEAD?

    Type the fix ↗
    Git
    Intermediate
  24. 24

    A branch needs directions. ↗

    How do you set the current branch’s upstream?

    Type the fix ↗
    Git
    Intermediate
  25. 25

    Whitespace has entered the chat. ↗

    Which command checks staged changes for whitespace errors?

    Type the fix ↗
    Git
    Intermediate
  26. 26

    New name. Same file. ↗

    How do you rename docs.txt to guide.txt and update the index?

    Type the fix ↗
    Git
    Beginner
  27. 27

    Gone from ps. Still here. ↗

    How do you list running and stopped containers?

    Type the fix ↗
    Docker
    Beginner
  28. 28

    Which side of the colon? ↗

    How do you inspect web’s published mapping for port 80/tcp?

    Type the fix ↗
    Docker
    Beginner
  29. 29

    That name is already taken. ↗

    How do you free the name while preserving the old container?

    Type the fix ↗
    Docker
    Intermediate
  30. 30

    A snapshot, not a screensaver. ↗

    Which command prints a single resource snapshot?

    Type the fix ↗
    Docker
    Beginner
  31. 31

    The container has a shell. ↗

    How do you start an interactive sh session inside api?

    Type the fix ↗
    Docker
    Beginner
  32. 32

    Get the report out. ↗

    How do you copy the report from the container to the host?

    Type the fix ↗
    Docker
    Beginner
  33. 33

    Service names, please. ↗

    Which command lists configured Compose service names?

    Type the fix ↗
    Docker
    Beginner
  34. 34

    The YAML is over there. ↗

    How do you validate the explicit Compose file?

    Type the fix ↗
    Docker
    Intermediate
  35. 35

    When did it happen? ↗

    Which command reads 20 recent lines with timestamps?

    Type the fix ↗
    Docker
    Beginner
  36. 36

    Where did the data go? ↗

    How do you inspect this named volume?

    Type the fix ↗
    Docker
    Beginner
  37. 37

    Who is on this network? ↗

    Which command inspects the backend network?

    Type the fix ↗
    Docker
    Beginner
  38. 38

    Images ate my homework. ↗

    Which Docker command summarizes its disk usage?

    Type the fix ↗
    Docker
    Intermediate
  39. 39

    The final dot matters. ↗

    How do you provide the current directory as the build context?

    Type the fix ↗
    Docker
    Beginner
  40. 40

    Stop. Keep the furniture. ↗

    How do you stop api without removing its container?

    Type the fix ↗
    Docker
    Intermediate
  41. 41

    The dotfile plot twist. ↗

    Which command includes hidden files but omits . and ..?

    Type the fix ↗
    Linux
    Beginner
  42. 42

    Parents are required. ↗

    How do you create the missing parent directories too?

    Type the fix ↗
    Linux
    Beginner
  43. 43

    The error is at the end. ↗

    How do you print the last 20 lines once?

    Type the fix ↗
    Linux
    Beginner
  44. 44

    Start at the beginning. ↗

    How do you preview its first 10 lines?

    Type the fix ↗
    Linux
    Beginner
  45. 45

    How many lines? ↗

    Which command counts newline characters in access.log?

    Type the fix ↗
    Linux
    Beginner
  46. 46

    Ten comes before two? ↗

    How do you request numeric ordering?

    Type the fix ↗
    Linux
    Beginner
  47. 47

    Duplicates, now adjacent. ↗

    How do you deduplicate lines regardless of their original position?

    Type the fix ↗
    Linux
    Intermediate
  48. 48

    Which folder is heavy? ↗

    How do you summarize the directory’s disk usage?

    Type the fix ↗
    Linux
    Beginner
  49. 49

    Space on the filesystem. ↗

    Which command shows capacity and free space for /var’s filesystem?

    Type the fix ↗
    Linux
    Beginner
  50. 50

    Permission denied, selectively. ↗

    How do you add only the owner execute bit?

    Type the fix ↗
    Linux
    Beginner
  51. 51

    That dot matched everything. ↗

    How do you treat the pattern as fixed text?

    Type the fix ↗
    Linux
    Intermediate
  52. 52

    ERROR has several spellings. ↗

    How do you ignore case while searching for error?

    Type the fix ↗
    Linux
    Beginner
  53. 53

    What changed this hour? ↗

    How do you find regular files modified within the last hour?

    Type the fix ↗
    Linux
    Intermediate
  54. 54

    Find the chunky ones. ↗

    Which command finds regular files larger than the 100 MiB threshold?

    Type the fix ↗
    Linux
    Intermediate
  55. 55

    Look inside before unpacking. ↗

    How do you list the archive’s contents?

    Type the fix ↗
    Linux
    Beginner
  56. 56

    Where does this link go? ↗

    How do you print the fully resolved path?

    Type the fix ↗
    Linux
    Intermediate
  57. 57

    One command. One environment. ↗

    How do you set MODE only for the script invocation?

    Type the fix ↗
    Linux
    Intermediate
  58. 58

    Which executable won? ↗

    Which shell command reports how python3 is resolved?

    Type the fix ↗
    Linux
    Beginner
  59. 59

    Why is this package here? ↗

    How do you ask npm why lodash is installed?

    Type the fix ↗
    npm
    Intermediate
  60. 60

    Less dependency tree, please. ↗

    How do you limit the dependency listing to depth zero?

    Type the fix ↗
    npm
    Beginner
  61. 61

    Check before upgrading. ↗

    Which command reports outdated dependencies without updating them?

    Type the fix ↗
    npm
    Beginner
  62. 62

    Inspect the parcel. ↗

    How do you preview the package file list without creating a tarball?

    Type the fix ↗
    npm
    Intermediate
  63. 63

    Where will npm ask? ↗

    How do you print npm’s effective default registry setting?

    Type the fix ↗
    npm
    Beginner
  64. 64

    A tool, not a runtime dependency. ↗

    How do you install TypeScript as a development dependency?

    Type the fix ↗
    npm
    Beginner