We're going to use a few commands such as find
, locate
, cat
, and
ls
. The last one is used for displaying the content of a directory, whereas the
find
and
locate
commands are used for finding files in our filesystem. The
cat
command is used for getting the content of a file as output. Don't forget to make sure that your shell is running.
First, we'll execute
ls
directly from our home directory; we only need to enterls
in our command-line interface.The output for the previous command will be something like the following:
Desktop Documents Downloads Music Pictures Public Templates Videos
Now, we'll continue looking for all those files with a
.conf
extension (*.conf
) inside the/etc/ufw
directory by using the following command:arturo@han-solo ~ $ find /etc/ufw -name '*.conf'
As an output of the
find
command, you'll find all files with a.conf
extension inside your home directory:/etc/ufw/sysctl.conf /etc/ufw/ufw.conf...