Level 2 Transmutation (Bard, Sorcerer, Wizard). Full SRD 5.2.1 text below, then World Seed comparisons computed from all 339 SRD spells.
Knock
Level 2 Transmutation (Bard, Sorcerer, Wizard)
Casting Time
Action
Range
60 feet
Components
V
Duration
Instantaneous
Choose an object that you can see within range. The object can be a door, a box, a chest, a set of manacles, a padlock, or another object that contains a mundane or magical means that prevents access.
A target that is held shut by a mundane lock or that is stuck or barred becomes unlocked, unstuck, or unbarred. If the object has multiple locks, only one of them is unlocked.
If the target is held shut by Arcane Lock, that spell is suppressed for 10 minutes, during which time the target can be opened and closed.
When you cast the spell, a loud knock, audible up to 300 feet away, emanates from the target.
SRD 5.2.1, page 143
World Seed notes: Knock among level 2 spells
Among the 57 level 2 spells in SRD 5.2.1
Share
Knock
Need Concentration
51%
No
Can be cast as a Ritual
11%
No
Need a Material component
63%
No
Casting time “Action”
74%
Yes
School Transmutation
26%
Yes
Class lists
Knock is on 3 class lists in its description. How many level 2 spells each of those classes has in SRD 5.2.1:
Changes made: SRD 5.2.1 text was extracted from the official PDF and converted into structured data (fields such as size, type, Challenge Rating, XP and spell level were split out; line-break hyphenation was removed; tables were reformatted). Spell description reformatted; level, concentration, ritual, component and class-list comparisons added (computed from SRD data). Original rules text is reproduced as published. Commentary, tactics, encounter suggestions and other material marked “World Seed notes” are original to world.hueseed.com and are not part of the SRD.
World Seed is 5E compatible. More on sources and licences: Licences.