• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/21

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

21 Cards in this Set

  • Front
  • Back

What kind of directory is /proc?

It's a virtual directory.

What is contained in the /proc directory?

Contains information about processes and system information. Common subdirectories are; /cpuinfo, /devices, /dma, /interrupt, /iomem, /meodules, /version, /scsi, /bus/devices, /ide.

What is contained in the /sys directory?

This directory stores and allows modification of devices attached to the system.


/sys/bus - has isa, scsi, others which contain devices and drivers to.


/sys/module - kernel module subdirectory.


/sys/class - lists all device classes


/sys/devices - outline hierarchy of devices

What does the lsusb command do?

Displays information about usb devices. -v shows exhaustive information.


-s bus_name shows info for a specific bus.

What does the hwinfo command do?

provides information about all hardware, provide flags, otherwise long report.


use hwinfo -device to view device info.


Find device with hwinfo -h.

What does the lspci command do

It probes the pci bus. Use -k to find what drives particular device. -t displays a tree diagram that shows connections between all busses.

Common hardware item names:

* Bluetooth
* Camera
* Cdrom
* Cpu
* Disk
* Dsl
* Monitor
* Mouse
* Keyboard
* Usb

What does the lsmod command do?

Grabs info from /proc/modules directory and displays it.

What does the modinfo command do?

Acquires detailed information about a module. Use lsmod to first get the module name.


syntax: modinfo module_name

What is an example of a hotplug device?

USB Drive., firewire devices

What is an example of a coldplug device?

CPU, RAM, HDD

What does the hald (hardware abstraction layer) do?

It provides programs with info about available hardware.

What does the d-bus do?

It notifies processes of newly available hotplug devices.

What is the file with directory used to customize the udev folder?

/etc/udev

What does udev do?

It creates files in /dev/ for the name of new hotplug device.

Explain the linux boot process:

1) BIOS, bios will find bootable media and look for an mbr, the mbr initiates the bootloader


2) Bootloader: Allows the cpu to access to disk and load an os into memory. The bootloader creates a temp virtual file system in RAM called the initrd img. It then transfers temp root to the file system


3) Initializes basic hw using BIOS settings in the CMOS. Linuxrc is loaded by the kernel. When linuxrc is done the initrd filesystem is dismounted. Rhw kernel probes for new hardware and loads the driver modules.


The real file system is mounted.


4) Init process is now loaded. Uses settings from /etc/inittab.


List the common runlevels and what they do:

Runlevel 0: Halts the system, shut down.


Runlevel 1: single user mode.


Runlevel 5: multi user mode.


Runlevel 6: Reboot.

What two common directories are init scripts stored?

/etc/rc.d/ and /etc/init.d/

What utilities is used to configure init scripts?

insserv. Use -r to remove start service.


chkconfig

What utility is used to change runlevel on the fly?

telinit

What command is used to shutdown the system?

shutdown. -h will notify before shutdown. -f skips fsck.