Common OS files

February 9, 2024 ยท View on GitHub

LocationDescription
/etc/issuecontains a message or system identification to be printed before the login prompt.
/etc/profilecontrols system-wide default variables, such as Export variables, File creation mask (umask), Terminal types, Mail messages to indicate when new mail has arrived
/proc/versionspecifies the version of the Linux kernel
/proc/[0-9]/fd/[0-9]contains file descriptors for all processes (first number is the PID, second is the filedescriptor)
/proc/self/environcontains the environment variables for the current process
/proc/cmdlinecontains the kernel boot parameters
/etc/groupcontains all the groups that are available on the system
/etc/hostscontains the IP address to hostname mappings
/etc/passwdhas all registered user that has access to a system
/etc/shadowcontains information about the system's users' passwords
/etc/motdcontains the message of the day, which is displayed to all users after logging in
/etc/mysql/my.cnfcontains the MySQL database configuration file
/root/.bash_historycontains the history commands for root user
/var/log/dmessagecontains global system messages, including the messages that are logged during system startup
/var/mail/rootall emails for root user
/root/.ssh/id_rsaPrivate SSH keys for a root or any known valid user on the server
/var/log/apache2/access.logthe accessed requests for Apache webserver
C:\boot.inicontains the boot options for computers with BIOS firmware