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
/etc
directory that use the.conf
extension?Hint: Use the
tar
command just as shown in this chapter. - What is the command that lists the first five files inside
/etc
and sorts them by dimension in descending order?Hint: Use
find
combined withsort
andhead
. - 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 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. - What is the command that lists all the installed packages...