1. The system does not recognize the disk being inserted into Linux. When the device is restarted, let the system find the new disk:
Echo "SCSI add_single_device 0 0 0 1 0">/proc/SCSI
Remove the Added Disk:
Echo "SCSI remove_single_device 0 0 0 1 0">/proc/SCSI
2. Create an ISO image in Linux
Common image:Mkiso-r-o image name directory(Only files and folders under the directory are packaged as ISO, and the specified directory itself is not packaged)
Start image:Mkiso-r-J-T-B boot/x86_64/loader/ISO/isolinux. Bin-no-EMU-boot-Loader-size 4 -- boot-Info-table-no image name directory
3. Set the NIC speed:
Temporary effect:
Ethtool-s eth1 autoneg off speed 100 duplex full
Valid permanently. Add the following to the NIC configuration file:
Ethtool_opts = "speed 100 duplex full autoneg off"
4. determine the relationship between the logical network card and the physical network card. After the command is executed, the physical network card indicator will flash for 60 seconds.
Ethtool-P eth0 60.
5. Nic binding Configuration
Touch ifcfg-bond0
Device = bond0
Booproto = static
Ipaddr = xx. xx
Netmask = xx. xx
Broadcast = xx. xx
Gateway = xx. xx
Onboot = Yes
Bonding_master = Yes
Bonding_module_opts = 'miimon = 100 mode = 0 use_carrier = 0'
Bonding_slave_0 = eth0
Bonding_slave_1 = eth1
6. Manually lock and unlock system users
Lock:Passwd-l Username
Unlock:Passwd-u Username
7. Use the MD5 value to compare whether the two files are consistent
CMP file1 fiel2
8. Use File to view hard disk Information
File-S/dev/sda1
9. Copy the entire hard disk to a remote directory through SSH
Dd If =/dev/SDA | gzip-c | SSH [email protected] 'dd of =/mnt/backup/SDA. dd'
10. Test network bandwidth without consuming disk space
Dd If =/dev/Zero BS = 4096 COUNT = 1048576 | SSH [email protected] 'cat>/dev/null'
This article is from the "Linux" blog, please be sure to keep this source http://gunlinux.blog.51cto.com/2967418/1545397
[Updating] Summary of common Shell