The RedHat website provides a "hardware compatibility list" that has been tested and certified for Linux installation and Common commands. After obtaining the specific model of the system hardware device, you are advised to visit http://bugzilla.redhat.com/hwcert/. RedHatEnterpriseLinux supports the following installation methods. Disc installation: directly install the disc by using the disc installation method. This method is the simplest and most commonly used method. It is recommended for beginners.
Linux installation and Common commands
The Red Hat website provides a "hardware compatibility list" that has been tested and certified. After obtaining the specific model of the system hardware device, you are advised to visit http://bugzilla.redhat.com/hwcert/to renew the user configuration.
Red Hat Enterprise Linux supports the following installation methods.
CD installation: Directly use the CD installation method. This method is the simplest and most commonly used method. It is recommended for beginners.
Hard Disk Installation: Copy the ISO installation CD image file to the hard disk for installation.
Network Installation: You can place the system installation file on a Web, FTP, or NFS server and install it over the network.
Hard Disk partitioning is the top priority of an operating system plan. The future scalability and security of the system are closely related to this step.
Hard Disk Interface
- IDE interface:
Linux uses/dev/hdx to name the hard disk connected to the IDE interface. The value of x corresponds to the hard disk installation location. The values of x can be a, B, c, and d.
Hard Disk name
IDE1 main Disk/dev/hda
IDE1 port slave Disk/dev/hdb
IDE2 main Disk/dev/hdc
IDE2 port slave Disk/dev/hdd
- SCSI interface:
The IDS of devices connected to the SCSI interface are different. The IDS of SCSI devices are 0 to 0 ~ 15. The ID of the SCSI interface card is 7. Linux uses the/dev/sdx method to name the hard disk connected to the SCSI interface card. The value of x can be a, B, c, d, etc, that is, the SCSI hard disk with ID 0 is/dev/sda, And the SCSI hard disk with ID 1 is/dev/sdb, and so on. Linux supports up to 15 SCSI hard disks.
All files in linux are stored under "/", just like my computer. in Linux, all devices exist as files, partition files are all placed under "/dev"
In Linux, H indicates IDE. All IDE devices start with H, and SCSI devices start with S. USB devices belong to SCSI devices.
A hard disk can have up to four (primary + extended) partitions, of which only one can be extended partition.
Because 1 ~ The number 4 has been retained, so the code of the 1st logical partitions starts from the number 5 and is added to the disk number in this order. If no/dev/sda3,/dev/sda4 partition is divided, the two codes are empty and Reserved codes. Logical partitions have no relationship with the primary partition, but only with the MBR space.
Because extended partitions cannot be written. Therefore, the available partitions start with 5th partitions. The 5th partitions on my computer are
Sda1 primary partition ------ the first available Partition
Sda2 primary partition ------ second available Partition
Sda3 primary partition ------ the third available Partition
Sda4 extended partition
Sda5 logical partition ------ fourth available Partition
Sda6 logical partition ------ fifth available Partition
If you want to know how to make proper planning, you need to know which file is written under LINUX /.
FirstBINIt stores executable commands of common users. It is recommended to put it together with/, not separately.
SecondDEVIt is the storage location of system device files, such as the partition we just used. We recommend that you put it together with/, not separately.
ThirdHOMEIt is the home directory of a common user. Many file servers will use the home directory of the user to store data. Therefore, we recommend that you partition data separately. In addition, if your system is broken, it is useless, you need to reinstall the system. You separately split the home partition, which can be mounted to the system after the system is installed. No important data loss issues
Lost + foundPartition file fragments. This directory is not required for all partitions.
MiscAutomatically mount the directory required by the service. It is recommended to put it together /.
NetDirectory, which is an empty directory. Generally, it is not used.
ProcThe contents in the directory are the items in the current memory. It does not occupy hard disk space and does not need to be partitioned separately
SbinDirectory, which is the executable file storage directory of the Super Administrator
TmpTemporary File directory, which does not need to be separated
VarIs the directory used by many server files. We recommend that you partition it separately.
BootIt is strongly recommended to separate GRUB (Boot Loader) and kernel files into the first primary partition, so that the system cannot be started and troubleshooting is easier.
EtcDirectory where most configuration files are stored. Although important but not big, it must be put together with/, because the configuration file needs to be read during startup, which cannot be separately divided.
LibLibrary files of the system and executable programs. And/together
Media and mntIt is also used to mount the optical drive and other devices.
RootSuper user's home directory, which generally has nothing to do /.
SelinuxEnhanced security LINUX, and directory for storing the installation files of some usr users. Also put together/
For outbound and Security row and scalability considerations, we will split up four partitions:/boot,/,/home,/var
The var and home directories depend on the nature of your server. Allocate all the remaining space to them.
When installing Linux, you need to create Linux partitions on the hard disk. In most cases, you need to create at least three partitions for Linux.
/Boot Partition:/Boot partition is used to boot the system. It contains the kernel of the operating system and the files to be used during system startup. The partition size is generally 100 MB.
Swap Partition: Swap partitions act as virtual memory, which is usually about twice the physical memory size (when the physical memory is greater than MB, the swap partition is MB ). For example, if the physical memory is 128 MB, the size of the swap partition should be 256 MB.
/(Root) Partition: Linux stores most of the system files and user files in the/(Root) partition, so the partition must be large enough, generally greater than 5 GB.
How can I log on to the LINUX operating system? Local login is called the console, and network login is called a terminal. The graphic interface is a console, and we can also switch to the virtual console through CTRL + ALT + F (1-6), CTRL + ALT + F7 is to switch back to the graphic interface, enter the user name and password when logging in. Everyone on Earth knows that virtual terminals are all CLI, CLI = character Interface
After a user logs in, the directory is in the home directory,
[Root @ stationXX etc] #
[Current user name @ host name Current Directory]
The prompt varies with the user.
The home directory is the default directory where the user logs on to the system.
Who told me what the host name is?
StationXX. Note that LINUX is case-sensitive. Therefore, when running commands and writing scripts and writing configuration files, be sure to note the case sensitivity.
# What is the difference between $ and $?
# This sign is only available for root users.
Even if other users get super permissions through sudo or $, # is a symbolic identity.