linux network principles and basic settings

Use the ifconfig command to maintain the network

  Master ifconfig command functions: Displays the IP address for more information or to set the system is starting all network card network card.

Use ifup and ifdow commands to start and stop the card

  Ifup command control function: specified on the card system startup.

  Ifdown command master functions: stop system specified on the card.

Use rpm to install and remove software

  rpm filename is divided into five parts, in which:

  Part 1 is the name, is the name of the rpm package;
  Part 2 is a version, the version number indicates that the rpm package;
  Part 3 release, this version represents the rpm package release frequency (revised numbers);
  first part 4 is architectures, indicates that the rpm package applies to which platform;
  the last part is rpm, the file name extension expressed rpm package.

  Options grasp rpm software installation and removal work are often used:

  -i: Installation (Install) software.

  -U: Upgrade (Upgrade) of the old version of the software.

  -e: Remove / Delete (Erase) software.

  -v: display detailed processing information.

   -h: displays the installation progress. Uninstall can not be used

View PRM software package

  rpm -qa: All packages currently installed on the operating system, where q is the query (query) the first letter, a is all (all) the first letter.

  rpm -qf File Name: display the file which is installed with the package, f is a file (file) of the first letter.

  rpm -qi Package name: Displays information on this package, i is information (information) of the first letter.

  rpm -ql Package name: Lists all the files contained in this package, where l is the first letter of the list.

CD mirror mount and mount

  Disc mount mount / dev / sr0 mount point or mount / dev / cdrom mount point

  Mount image file mount -o loop -t iso9660 mount point where the image file, -o loop: used to partition the hard disk as a file system is mounted on

Master yum configuration

  yum configuration there are two ways, one is directly yum.conf configuration files in the / etc directory, another increase in the /etc/yum.repos.d .repo file directory.

 

Guess you like

Origin www.cnblogs.com/zrh-960906/p/12141780.html