A collection of Linux system management skills

Source: Internet
Author: User
Tags ide hard drive


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 energy 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 documents as common txt files
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, use the following statement to obtain the common help text of the tcsh command: man tcsh | col-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 I/O read/write support of the hard disk 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 will not be able to 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? 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. sysinit

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.