O'Reilly logo

CompTIA Linux+ Certification Guide by Philip Inshanally

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Finding files and directories

Often, we are searching for files and directories from the GUI. We can also perform searches in the shell. First, we can use the find command; let's look for files that have a .conf extension. The search function would be as follows:

[philip@localhost ~]$ find /etc -iname "*.cfg"find: ‘/etc/grub.d': Permission deniedfind: ‘/etc/cups/ssl': Permission denied/etc/libblockdev/conf.d/00-default.cfgfind: ‘/etc/audit': Permission deniedfind: ‘/etc/dhcp': Permission deniedfind: ‘/etc/sssd': Permission denied/etc/grub2.cfgfind: ‘/etc/audisp': Permission deniedfind: ‘/etc/polkit-1/rules.d': Permission deniedfind: ‘/etc/polkit-1/localauthority': Permission deniedfind: ‘/etc/openvpn/server': Permission deniedfind: ‘/etc/openvpn/client': ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required