06 Configuration Files - Cisco Networking Academy

advertisement
# Common important bash Configuration Files
# ITSC 1358 Unix/Linux Administration
- Prof. Michael P. Harris
-(dot)- (be sure to check matching non-dot files)
~/.bashrc
- personal aliases and functions login script
~/.bash_profile
- personal environment-variables and login script
~/.profile
- personal environment-variables and login script
~/.bash_history
- user command-line history of commands executed during the prior login
~/.bash_logout
- personal bash-script to run at logout
~/.inputrc
- local key-bindings (keyboard configuration) for the command-line editor
~/.viminfo or ~/.exrc
- individual startup vi/vim editor configuration and history file
-b/etc/bashrc
- global aliases and functions login script (old name: /etc/rc)
-c/etc/crontab
- commands and run times, for the cron task scheduler daemon
/etc/cupsd.conf
- configuration file, CUPS print server daemon
-d/etc/DIR_COLORS
- config file, used by the dircolors command to set: LS_COLORS
/etc/DISPLAY
- startup or current login console
/etc/dhcpd.conf
- configuration file, for the DHCP server daemon
/etc/dhcp-options
- Dynamic Host Configuration Protocol options
-f/etc/fstab
- filesystems mounted automatically at startup (filesystem table)
-g/etc/group
- user-accounts group membership database
-h/etc/HOSTNAME
- network hostname assigned to this computer (uname –n)
/etc/host.conf
- configure how network hostnames are resolved
/etc/hosts
- local static DNS hostname resolution file
/etc/hosts.allow
- hostnames allowed to use Internet services
/etc/hosts.deny
- hostnames NOT allowed to use Internet services
/etc/httpd.conf
- configuration file for the Apache web-server daemon
-i* /etc/init.d/
- parent directory, for the init command shellscripts
/etc/inetd.conf
- configuration file, for the Internet services daemon inetd
/etc/initscript
- configuration script to execute inittab commands
/etc/inittab
- configuration file, processes to start at bootup
/etc/inputrc
- keyboard-mapping configuration for bash and most other shells
-l/etc/lilo.conf
- configuration file, boot command-line parameters
/etc/localtime
- symbolic-link to the time zone information file
/var/locatedb
- index-file for the locate command (created by: updatedb)
-m/etc/machine-id
- unique machine-id set during installation (see command: hostid)
/etc/man_db.config
- directories to add to the MANDATORY_MANPATH variable
/etc/modules.conf
- configuration file, for the modprobe command
/etc/motd
- message-of-the-day file, displayed at login
/etc/mtab
- mounted removable filesystems (see: /etc/fstab)
/usr/share/file/magic
- magic-number fingerprint database file, for the file command
/usr/share/file/magic.mime - mime-types for the magic-number fingerprint file
/usr/share/misc/man.conf - configuration file, MANPATH and MANBIN variables
Page 1 of 2
-n/etc/networks
/etc/nologin
-p* /etc/profile.d/
/etc/passwd
/etc/printcap
/etc/profile
/etc/protocols
-r* /etc/rc.d/
/etc/resolv.conf
-s* /etc/skel/
/etc/services
/etc/shadow
/etc/shells
/etc/sudoers
/etc/sysctl.conf
-t* /usr/share/terminfo/
/etc/termcap
/etc/ttytype
-v/usr/share/vim/vimrc
-w/usr/share/man/whatis
- locally accessible network names and addresses
- list of non-root users to prevent from logging in
- parent directory, scripts to run at login
- users-accounts information file (see: /etc/shadow)
- printer capabilities database (escape sequences)
- global environment-variables and user login script
- Internet IETF protocols definition file for inetd
- parent directory, bootup scripts (-or- /etc/rc/)
- configuration file, DNS-servers IP-addresses
- parent directory, new-user configuration files
- map port-numbers to named Internet services
- encrypted file that holds user-account passwords
- trusted command-shells installed on this system
- list of users allowed to run the sudo command
- configuration file, kernel runtime parameters
- parent directory, individual terminal capabilities files
- terminal capabilities database (escape sequences)
- terminal-device to default terminal-type mapping
- global vi/vim configuration file (see: ~/.vimrc)
- man-page index for the whatis & apropos commands (makewhatis)
* /proc/
/proc/cpuinfo
/proc/devices
/proc/filesystems
/proc/ioports
/proc/interrupts
/proc/kcore
/proc/kmsg
/proc/loadavg
/proc/meminfo
/proc/modules
/proc/mounts
/proc/net
/proc/self
/proc/stat
/proc/uptime
/proc/version
- real-time process information, pseudo-filesystem
- processor information, type, make and performance (uname –m)
- devices configured into the running kernel
- filesystems configured into the running kernel
- I/O port-addresses assigned and currently in use
- interrupts currently in use and how often used
- an image of the physical memory of the system
- messages output by the kernel routed to syslog
- real-time cpu work load averages of the system
- memory usage information, both physical and swap (free)
- kernel-modules that are currently loaded
- information on currently mounted filesystems (df)
- status-information about network protocols (ifconfig)
- symbolic-link to the programs looking at /proc
- real-time system statistics; page faults, etc.
- amount of time the system has been up and running (uptime)
- running kernel version
* /var/
/var/locatedb
/var/log/lastlog
/var/log/messages
/var/log/secure
/var/log/wtmp
/var/named/root.hints
/var/run/utmp
- real-time environment information files
- file-index for the locate command (created by: updatedb)
- information about the last user-login
- the main system message log file
- real-time system tracking of user logins
- information about logged-in users for finger
- information-file for the domain-name server
- information about logged-in users for the who and w commands
Page 2 of 2
Download