151Chapter 4Learning Basic AdministrationHere is an example of (Cheapest web hosting)
Tuesday, September 18th, 2007151Chapter 4Learning Basic AdministrationHere is an example of the modprobecommand being used to load the parport mod- ule, which provides the core functions to share parallel ports with multiple devices: # modprobe parportAfter parport is loaded, you can load the parport_pc module to define the PC-styleports available through the interface. The parport_pc module lets you optionallydefine the addresses and IRQ numbers associated with each device sharing the par- allel port. For example: # modprobe parport_pc io=0×3bc irq=autoIn this example, a device is identified as having an address of 0×3bc, and the IRQ forthe device is autodetected. The modprobecommand loads modules temporarily they disappear at the nextreboot. To permanently add the module to your system, add the modprobecommandline to one of the startup scripts that are run at boot time. An alternative to using modprobeis the insmodcommand. The advantage of usingmodprobe, however, is that insmodloads only the module you request, whereasmodprobetries to load other modules that the one you requested is dependent on. Removing ModulesUse the rmmodcommand to remove a module from a running kernel. For example, to remove the module parport_pc from the current kernel, type the following: #rmmod parport_pcIf it is not currently busy, the parport_pc module is removed from the running kernel. If it is busy, try killing any process that might be using the device. Then run rmmodagain. Managing File Systems and Disk SpaceFile systems in Linux are organized in a hierarchy, beginning from root (/) and continuing downward in a structure of directories and subdirectories. As an admin- istrator of a Linux system, it s your duty to make sure that all the disk drives thatrepresent your file system are available to the users of the computer. It is also yourjob to make sure there is enough disk space in the right places in the file system forusers to store what they need. Note10_