Linux Ch9 Programs Processes

Home > Preview

The flashcards below were created by user slc53 on FreezingBlue Flashcards.

  1. rpm
    • –“rpm”  (Redhat Package Manager)
    • –“yum”  (Yellowdog Updater Modified)
  2. Process hierarchy
    • init
    • systemd
  3. Linux Package characteristics
    • Each package is a single file
    • Packages are not installer programs, must use another program to install
    • Packages contains dependencies
    • Packages contain version information (know which is most recent)
    • Packages contain architecture information for CPU type32 bit, 64 bit, PowerPC
    • Binary packages built from source packages
  4. Typical software installation using a package manager:
    • 1.Issue install command
    • 2.Package dependencies located
    • 3.Final approval given for installation
    • 4.Packages (& dependencies) downloaded
    • 5.Packages (& dependencies) installed
  5. Two common package systems:
    • –rpm   Redhat Package Management
    • –dpkg  Debian
  6. Managing RPM Systems
    Distributions include
    • Basic command line command: rpm
    • –rpm files have an extension of .rpm

    • Red Hat, Fedora, CentOS:   yum
    • SUSE Enterprise:  zypper
    • Open SUSE:  zypper
    • All of the above have GUI front-ends as well
    • Example usage:
    • yum install ssh
    • yum remove ssh
    • yum upgrade
  7. Managing Debian Systems
    • APT:
    • Advanced Package Tool
    • Top of basic Debian package system
    • “dpkg” low level command to interface to package system
    • “dpkg” equivalent to “rpm”
    • Uses network repositories
    • File names end in .deb
    • Names include codes for software version, architecture
    • Example: 
    • samba-common_3.0.28a-1ubuntu4.18_i386.deb
  8. how to identify processes
    • ps
    • Image Upload
  9. Linux Kernel
    • is core of Linux installation
    • Manages memory
    • Provides software with a way to access hard disks
    • Control CPU times
    • Swapping
    • Plus other tasks
    • Loaded early in the boot process
    • Runs one program:  init or systemd
  10. “top” command
    • Used to identify a memory or CPU hogging process
    • Interactive version of ps
    • Updates display every few seconds
    • Sorts by top CPU usage
  11. Measuring Memory Usage
    • “free” command
    • Used to study the overall memory usage
    • Displays total memory, used, free Swap space total, used, free
    • Swap is used when low on RAM (virtual memory)
    •    Excessive swapping may require additional RAM
    • Number of options for this command (use man pages)
  12. Using Log Files
    • With systemd - journalctl
    • Log files (/var/log)
    • “tail” command Used to display the last ten lines of file (most recent)
    • Some programs create their own log files
    • Configuration logging:  /etc/rsyslog.conf
  13. Kernel Ring Buffer
    • Store in memory
    • Used by the Kernel
    • Update as computer runs
    • Use the command:  dmesg
    • Can be used to diagnose hardware and driver problems
    • Pipe the results to “grep” to search for specific errors
    • Fedora/Centos: Writes boot up Kernel Ring Buffer messages to a file called “dmesg” found in “/var/log”

Card Set Information

Linux Ch9 Programs Processes
2017-03-22 14:21:54
Linux Ch9 Programs Processes

Linux Ch9 Programs Processes
Show Answers:

Home > Flashcards > Print Preview