Article Title: a collection of management skills for Linux operating systems. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
As a desktop operating system, Linux's man-machine interface is not flattering. However, as a network operating system, its ease of use (for NOS) and high performance are difficult to find its right. Of course, this is not to say that its operation is very simple, but that if you can master some skills, whether it is system settings or network management, you can become easy and free.
Disable Automatic Power saving of display in Terminal Mode
After Linux is installed on most PCs, the monitor can be automatically disabled in terminal mode. However, if we want to display some information on the monitor, such as network traffic and packet analysis, this feature becomes very annoying. Changing CMOS and system attributes cannot be solved. The solution is to use setterm to set terminal commands, such as setterm -- blank, to disable the feature of automatic energy saving.
Save man help document as a common txt file
Man's position is crucial in Linux, and it is much better than the Help in Windows. However, the information it displays is not plain text. If you direct the text to a text file, you will find that the highlighted text in man is changed to two, there are countless tabs, which makes printing and editing inconvenient. However, you can use the following statement to obtain the common help text of the tcsh command: man tcshcol-B> tcsh.txt, and there will no longer be any annoying repeated characters.
IDE Hard Drive Optimization
Linux may pay more attention to data security rather than performance, which is completely necessary for NOS, but it should be fine to enable some useful optimizations on the IDE hard disk. Take a look at this command: hdparm, which is used to display and set the parameters of the hard disk (including the optical drive. We can first use hdparm-I/dev/hda to view the parameter settings of the hda disk, and then modify it as needed, for example: hdparm-c 1 can change the hard disk I/O read/write support from 16 bits to 32 bits. hdparm-m 16 is the MultiCount of the hard disk. Before executing this command, you 'd better use the-I parameter to determine the maximum number of MultiCount supported by your hard disk. These two items are the main optimization items, and others cannot be determined or confused. Hdparm-t/dev/had can be used to test hard disk performance before and after optimization.
Allow root users to log on remotely
In Linux, the default security setting is that root cannot log on from a remote workstation, which makes remote management of Linux servers a lot of trouble, /etc/securtty is the key file for controlling this mechanism. In the root section of this configuration file, add pts/0 and pts/1 to the terminal name that you want the root user to log on.
Recover the Linux boot program LILO of the covered MBR (primary Boot Sector)
If LILO is installed in MBR, then install Linux first and then install Windows, LILO will be overwritten. In this case, we cannot boot Linux from the hard disk. What should we do? We can start the Windows command line model, and upload the beiloadlin.exe and vmlinuz files to the Windows partition on the linuxoptical disk, and then execute loadlin vmlinuz root =/dev/had? Rw. This command is used to start Linux from a specified partition and set root partition (1) to read/write mode. In this way, you can modify most of Linux settings or restore LILO. It should be noted that the Linux started in this case is incomplete, such as MSDOS, VFAT file system support, network, and so on, but it does not matter, as long as it can be started like this, we can use mkbootdisk to create a Linux boot disk. You can use this boot disk to start Linux. After Linux is started, you only need to set the first boot =/dev/hda in the/etc/lilo. conf file? Change to boot =/dev/hda, and then execute lilo to restore Linux from MBR. Configuration file list file location and name function/etc/rc. d/rc. the public service configuration when the sysinit system is started/etc/rc. d/rc. local system startup local service configuration/etc/bashrc,/etc/profilebash shell public configuration/home/username /. bashrc user private bash shell configuration/etc/securetty terminal security settings/etc/hosts host name and IP address corresponding file/etc/resolv. confdns server configuration/etc/squid. conf or/etc/squid. confsquid proxy server software configuration/etc/smb. conf or/etc/samba/smb. conf smb-based network neighbor configuration/etc/dhcpd. list of file systems supported by the/etc/filesystems system configuration file of the dhcp server under conflinux/etc/fstab information of activated partitions in the current system/etc/host. conf specifies the configuration file/etc/lilo for the system to search dns records. configuration file of the conf Startup Program lilo
Most of the Linux system's control is based on configuration files. Understanding these configuration files is more conducive to Linux.
The Linux Startup menu is good. Unfortunately, it cannot display Chinese characters, and you cannot choose whether to start NT or Win 98. Therefore, I think it is better to use the NT series to start the menu. In fact, it is easy to do. After installing all Windows operating systems, install Linux again, and install LILO to the partition where Linux is located instead of MBR during installation. Then, use the boot disk to start Linux, mount the Windows partition to/mnt/dos. Then run dd if =/dev/hda? Bs = 512 count = 1 of =/mnt/dos/bootsect. lin, so a bootsect is available in the Windows partition. lin file, which records the Linux partition boot information, and then in the Windows nt startup configuration file boot. add C: BOOTSECT to ini. LIN = "Red Hat Linux 7.0", when we start the computer again, we find that the "Red Hat Linux 7.0" option is added in the Windows NT boot menu, and we can choose it to start our Linux. Note that NT still only recognizes files in the 8.3 format at startup, so do not change bootsect. lin to a long file name.
[1] [2] Next page