9 Questions
Which command is used to list all the folders and files located in the current folder in Linux?
ls
What does the slash (/) symbol represent in Linux?
The root directory
What does the 'ls /home' command do in Linux?
Lists all files and directories in the home folder
What does the 'ls /home/centos' command do in Linux?
Lists all files and directories in the centos folder
Which symbol is used to assign a command to a variable in Linux?
=
What will be printed if the following command is executed: echo $hello?
today's date
What does the 'grep' command do in Linux?
Find a specific line in a text and print it
What will be the value of the variable 'now' if the following command is executed: now=$(grep Bash hello)?
The specific line containing the word 'Bash' in the file 'hello'
What does the 'sed' command do in Linux?
Substitute a word in a file
Test your knowledge of Linux file management with this quiz! Learn about the ls command and how to list folders and files in different directories. Challenge yourself to identify the root directory and navigate through the file system hierarchy.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free