Be a good housekeeper Linux system management skills

  

As a desktop operating system, Linux's human-machine interface can't be complimented. However, as a network operating system, its ease of use (for NOS) and high performance may be difficult to match. Of course, this is not to say that its operation is very simple, but that if you can master some skills, both system settings and network management can be easily and freely.

Preventing automatic display of power in terminal mode

After installing Linux on most PCs, it can also automatically turn off the display in terminal mode, but if we want to display it instantly on the display Some information, such as network traffic, packet analysis, etc., becomes very annoying. The modification of CMOS and system properties can not be solved. The solution is to set the terminal command, such as setterm--blank, to turn off the automatic energy saving feature.

Saving man help files as normal txt files

Man's status is crucial in Linux, much better than the helpless help in Windows. But the information it displays is not plain text. If you redirect the text directly to a text file, you will find that the text highlighted in man becomes two, and there are countless tabulations. This makes our printing and editing very inconvenient. However, you can get the normal help text of the tcsh command using the following statement: mantcshcol-b> tcsh.txt, and there will be no more repetitive characters.

IDE hard disk optimization

Linux may pay more attention to data security rather than performance, which is absolutely necessary for NOS, but there are no harm in opening some useful optimizations of IDE hard disk. Let's go. Take a look at this command: hdparm, which is used to display and set the parameters of the hard disk (including the CD-ROM drive). We can first use hdparm-i/dev/hda to view the parameter settings of hda hard disk, and then modify according to the situation, such as: hdparm-c1 can change the I/O read/write support of the hard disk from 16 bits to 32 bits, hdparm -m16 is the MultiCount that turns on the hard disk. It is best to use the -i parameter to determine the maximum number of MultiCounts your hard drive can support before executing this command. The main optimization is these two, and the other ones are not sure and don't mess. You can use hdparm-t/dev/had to test hard drive performance before and after optimization.

Allow root to log in remotely

The default security setting for Linux is that root cannot log in from a remote workstation, which causes us to remotely manage the Linux server, /etc/securtty It is the key file that controls this mechanism. In the root section of this configuration file, add pts/0, pts/1, etc., and you want the root to be able to log in to the terminal name.

Recovering the Linux bootloader LILO of the overwritten MBR (master boot sector)

If LILO is installed in the MBR, then install Linux and then install Windows, LILO will be overwritten. We will not be able to boot Linux from the hard disk. What should I do? We can boot into the Windows command line mode, copy the two files loadlin.exe and vmlinuz from the Linux CD to the Windows partition, and then execute loadlinvmlinuzroot=/dev/had? Rw. The purpose of this command is to start Linux from the specified partition and set the root partition (1) to read-write mode, so that you can modify most of Linux settings or restore LILO. It should be noted that the Linux booted in this case is not complete, such as: MSDOS, VFAT file system support, network, etc. can not be used, but it does not matter, as long as it can be started, we can use mkbootdisk to create a Linux boot disk, use this Starting the Linux boot disk, you can use Linux completely. After starting Linux, just put the first item in the /etc/lilo.conf file boot=/dev/hda? Change to boot=/dev/hda, then execute lilo to resume booting Linux from MBR. Configuration file list file location and name role /etc/rc.d/rc.sysinit?? Public service configuration at system startup /etc/rc.d/rc.local Local service configuration at system startup /etc/bashrc, /Common configuration of etc/profilebashshell /home/username/.bashrc private bashshell configuration /etc/securetty terminal security settings /etc/hosts hostname and ip address corresponding file /etc/resolv.confdns server configuration /etc/squid. Conf or /etc/squid/squid.confsquid proxy server software configuration /etc/smb.conf or /etc/samba/smb.conf based on smb network neighborhood configuration /etc/dhcpd.conflinux dhcp server configuration file /etc/Filesystems system support file system list /etc/fstab The current system has activated partition information /etc/host.conf specified system search dns record configuration file /etc/lilo.conf startup program lilo configuration file

Most of the control of Linux systems is based on configuration files. Understanding these configuration files is more conducive to using Linux.



Copyright © Windows knowledge All Rights Reserved