Locations - Reverse Flashcards
~/.bash_history
the bash history
/usr/lib/rpm/rpmrc
typically you don’t edit this file
rpm main configuration file
/etc/rpmrc
create it if it doesn’t exist
The main reason to create such a file is to implement architecture optimizations—for instance; to optimize your code for your CPU model by passing appropriate compiler options when you build a source RPM into a binary RPM. This is done with the optflags line:
optflags: athlon -O2 -g -march=i686
rpm global configuration file for editing
∼ /.rpmrc
create it if it doesn’t exist
The main reason to create such a file is to implement architecture optimizations—for instance; to optimize your code for your CPU model by passing appropriate compiler options when you build a source RPM into a binary RPM. This is done with the optflags line:
optflags: athlon -O2 -g -march=i686
rpm per user configuration file for editing
/etc/yum.conf
holds basic options; such as the directory to which Yum downloads RPMs and where Yum logs its activities. Chances are that you won’t need to modify this file
yum configuration file
/etc/yum.repos.d/
You probably shouldn’t directly edit these files; instead; if you want to add a repository; you should manually download the RPM that includes the repository configuration and install it using rpm . The next time you use Yum; it will access your new repository along with the old ones
yum additional configuration files
/etc/apt/sources.list
okay to modify
apt repository configuration
/etc/dpkg/dpkg.cfg or ∼/.dpkg.cfg
The main configuration file for dpkg
/etc/apt/apt.conf
BIND formatting
controls apt and dselect options
/var/lib/dpkg
the debian installed file database
/etc/ld.so.conf
Generally speaking; there’s seldom a need to change the library path system wide
library path
/lib and /usr/lib
These directories are always on the library path; even if they aren’t listed in ld.so.conf .
trusted library directories
/etc/ld.so.cache
shared library cache
/proc/interrupts
virtual filesystem
only shows an entry after a driver that uses the interrupt is loaded
interrupts
/dev/ttyS0
Windows name COM1, IRQ 4
/dev/ttyS1
Windows name COM2; IRQ 3
/dev/ttyS2
Windows name COM3; IRQ 4
/dev/ttyS3
Windows name COM4; IRQ 3
/dev/lp0
Windows name LPT1; IRQ 7
/dev/lp1
Windows name LPT2; IRQ 5
/dev/fd0
Windows name A:; IRQ 6
/dev/fd1
Windows name B:; IRQ 6
/proc/ioports
what I/O addresses the computer is using
/proc/dma
what DMA channels your system uses
/sys
sysfs virtual filesystem, contains information about devices so that user-space utilities can access the information
/dev
a place where dynamic device files as drivers are loaded and unloaded; necessitated by hotplug devices
/lib/modules
kernel module files; kernel drivers for hardware
/proc/modules
currently loaded kernel modules
/etc/modprobe.conf
or
/etc/modprobe.d/
modprobe configuration
/proc/bus/usb
connected usb devices