Questions
In our second chapter, we covered the Linux filesystem and the basic commands that will serve as the foundation for the entire book. Here are some questions for you to test your knowledge and for further practice:
- What is the command that creates a compressed archive with all the files inside the
/etcdirectory that use the.confextension?
Hint: Use the tar command just as shown in this chapter.
- What is the command that lists the first five files inside
/etcand sorts them by dimension in descending order?
Hint: Use find combined with sort and head.
- What command creates a hierarchical directory structure?
Hint: Use mkdir just as shown in this chapter.
- What is the command that searches for files with three different extensions inside the root?
Hint: Use the find command.
- Find out which commands inside Linux have the Set owner User ID (SUID) set up.
Hint: Use the find command with the -perm parameter...