Some common files and directories found in the /etc directory include:
- /etc/passwd - Contains user account information.
- /etc/shadow - Stores encrypted user passwords and related information.
- /etc/group - Defines user groups and their members.
- /etc/fstab - Contains information about disk partitions and filesystems.
- /etc/hosts - Maps hostnames to IP addresses for local resolution.
- /etc/resolv.conf - Configures DNS servers for name resolution.
- /etc/network/interfaces (or /etc/sysconfig/network-scripts/) - Contains network interface configuration.
- /etc/hostname - Specifies the system's hostname.
- /etc/sudoers - Configures user permissions for the
sudocommand. - /etc/cron.*/ - Directories for scheduled tasks (cron jobs).
These files play a crucial role in system configuration and management.
