Operating SystemsQuestion 21 of 100

Which Linux command lists the files in the current directory?

a.cd
b.ls
c.rm
d.mkdir

Explanation

The ls command lists the contents of a directory. Options like -l show detailed information and -a reveal hidden files. In contrast, cd changes directories, rm removes files, and mkdir creates directories.

Practice all 100 questions free — no signup required.

Related questions on this topic

Last reviewed: · editorial process

Sen Lin, PrepPass Founder · Verified against Google IT Support Professional Certificate · How we review
Report