12 Questions
Which command is used to list all the folders and files located in the current folder?
ls -
What is the root directory in Linux?
/
What does the 'ls /home' command do?
Lists all files and directories in the 'home' directory
What does the 'ls /home/centos' command do?
Lists all files and directories in the 'centos' folder
True or false: The ls command is used to list all the folders and files located in the current folder.
True
True or false: The root directory in Linux is a primary and top-level directory.
True
True or false: The ls /home command lists all the files and directories in the 'home' directory located in the root directory.
True
True or false: The ls /home/centos command lists everything in the 'centos' folder located in the 'home' directory in the root directory.
True
What is the purpose of the 'ls' command in Linux?
The 'ls' command is used to list all the folders and files located in the current folder.
What does the 'ls /' command do?
The 'ls /' command lists all the folders in the root directory.
What does the 'ls /home' command do?
The 'ls /home' command finds the directory called 'home' in the root directory and lists all the files and directories in there.
What does the 'ls /home/centos' command do?
The 'ls /home/centos' command lists everything in the 'centos' folder, which is located in the 'home' directory in the root directory.
Test your knowledge of Linux file system and directory listing commands with this quiz. Practice using the ls command to list folders and files in the current directory, as well as specific directories like the root and /home. Challenge yourself to understand the structure and hierarchy of the Linux file system.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free