Which of the following operating system offers only a command-line user interface?

(A) Mac OS
(B) DOS
(C) Windows
(D) Linux

The answer is: (B) DOS
Operating system that offers only a command-line user interface is DOS (Disk Operating System).