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
- What is the primary role of an operating system?
- In a file path, what does a directory (folder) represent?
- What is a 'process' in an operating system?
- What does the term 'virtual memory' describe?
- In Windows, which tool is commonly used to view and end running processes and check resource usage?
- What is a file system responsible for?
Last reviewed: · editorial process
Sen Lin, PrepPass Founder · Verified against Google IT Support Professional Certificate · How we review