Which command allows you to both view and create files in a Unix-like system?

Basic of linux unix MCQs for PPSC, FPSC, NTS, and Pakistan government job tests. Select an option below, then read the explanation.

PPSCFPSCNTSPakistan govt jobs
Subject
Basic of linux unixsoftware-engineering-mcqs › basic-of-linux-unix
Published
9 Apr 2019
Last updated
28 May 2026

Browse all Basic of linux unix MCQs

Choose the correct answer

Explanation

Option A: lyrix is not a standard file command. Option B: ed is a line editor but less commonly used. Option C: vi is a powerful text editor. Option D: cat can display file contents and create files by redirecting output. Option E: nano is a text editor, not primarily used for displaying files.

PakQuizHub — free MCQs and past papers for Pakistan government job tests. Content is for educational practice only.