Linux "dd" command
dd ÊÇ Linux/UNIX ϵÄÒ»¸ö·Ç³£ÓÐÓõÄÃüÁ×÷ÓÃÊÇÓÃÖ¸¶¨´óСµÄ¿é¿½±´Ò»¸öÎļþ£¬²¢ÔÚ¿½±´µÄͬʱ½øÐÐÖ¸¶¨µÄת»»¡£
dd µÄÖ÷ҪѡÏ
Ö¸¶¨Êý×ֵĵط½ÈôÒÔÏÂÁÐ×Ö·û½áβ³ËÒÔÏàÓ¦µÄÊý×Ö:
b=512, c=1, k=1024, w=2, xm=number m
if=file
ÊäÈëÎļþÃû£¬È±Ê¡Îª±ê×¼ÊäÈë¡£
of=file
Êä³öÎļþÃû£¬È±Ê¡Îª±ê×¼Êä³ö¡£
ibs=bytes
Ò»´Î¶ÁÈë bytes ¸ö×Ö½Ú(¼´Ò»¸ö¿é´óСΪ bytes ¸ö×Ö½Ú)¡£
obs=bytes
Ò»´Îд bytes ¸ö×Ö½Ú(¼´Ò»¸ö¿é´óСΪ bytes ¸ö×Ö½Ú)¡£
bs=bytes
ͬʱÉèÖöÁд¿éµÄ´óСΪ bytes £¬¿É´úÌæ ibs ºÍ obs ¡£
cbs=bytes
Ò»´Îת»» bytes ¸ö×Ö½Ú£¬¼´×ª»»»º³åÇø´óС¡£
skip=blocks
´ÓÊäÈëÎļþ¿ªÍ·Ìø¹ý blocks ¸ö¿éºóÔÙ¿ªÊ¼¸´ÖÆ¡£
seek=blocks
´ÓÊä³öÎļþ¿ªÍ·Ìø¹ý blocks ¸ö¿éºóÔÙ¿ªÊ¼¸´ÖÆ¡£(ͨ³£Ö»Óе±Êä³öÎļþÊÇ´ÅÅÌ»ò´Å´øʱ²ÅÓÐЧ)
count=blocks
½ö¿½±´ blocks ¸ö¿é£¬¿é´óСµÈÓÚ ibs Ö¸¶¨µÄ×Ö½ÚÊý¡£
conv=conversion[,conversion...]
ÓÃÖ¸¶¨µÄ²ÎÊýת»»Îļþ¡£
ת»»²ÎÊý:
ascii ת»» EBCDIC Ϊ ASCII¡£
ebcdic ת»» ASCII Ϊ EBCDIC¡£
ibm ת»» ASCII Ϊ alternate EBCDIC.
block °ÑÿһÐÐת»»Îª³¤¶ÈΪ cbs µÄ¼Ç¼£¬²»×㲿·ÖÓÿոñÌî³ä¡£
unblock
ʹÿһÐеij¤¶È¶¼Îª cbs £¬²»×㲿·ÖÓÿոñÌî³ä¡£
lcase °Ñ´óд×Ö·ûת»»ÎªÐ¡Ð´×Ö·û¡£
ucase °ÑСд×Ö·ûת»»Îª´óд×Ö·û¡£
swab ½»»»ÊäÈëµÄÿ¶Ô×Ö½Ú¡£ Unlike the
Unix dd, this works when an odd number of
bytes are read. If the input file contains
an odd number of bytes, the last byte is
simply copied (since there is nothing to
swap it with).
noerror
³ö´íʱ²»Í£Ö¹¡£
notrunc
²»½Ø¶ÌÊä³öÎļþ¡£
sync °Ñÿ¸öÊäÈë¿éÌî³äµ½ibs¸ö×Ö½Ú£¬²»×㲿·ÖÓÿÕ(NUL)×Ö·û²¹Æë¡£
ÓÉÓÚ dd ÃüÁîÔÊÐí¶þ½øÖÆ·½Ê½¶Áд£¬ËùÒÔÌرðÊʺÏÔÚÔʼÎïÀíÉ豸ÉϽøÐÐÊäÈë/Êä³ö¡£ÀýÈç¿ÉÒÔÓÃÏÂÃæµÄÃüÁîΪÈíÅ̽¨Á¢¾µÏñÎļþ£º
dd if=/dev/fd0 of=disk.img bs=1440k
ÓÐȤµÄÊÇ£¬Õâ¸ö¾µÏñÎļþÄܱ» HD-Copy £¬Winimage µÈ¹¤¾ßÈí¼þ¶Á³ö¡£ÔÙÈç°ÑµÚÒ»¸öÓ²Å̵ÄÇ° 512 ¸ö×Ö½Ú´æΪһ¸öÎļþ£º
dd if=/dev/hda of=disk.mbr bs=512 count=1
Ïà¹ØÎĵµ£º
RedhatϵÁУºredhat9¡¢redhat advance server¡¢fedora¡¢centOS
¶þ¡¢ËùÐèÈí¼þ
Ø Apache 2.0.59£¨http://archive.apache.org/dist/httpd/httpd-2.0.59.tar.gz£©
Ø Opens ......
×÷Õߣº±±ÄÏÄϱ±
À´×Ô£ºLinuxSir.Org
ÕªÒª£ºÔÚLinux²Ù×÷ϵͳµÄÎļþ¹ÜÀíÖУ¬ÃüÁîÐÐģʽ£¨ÔÚ¿ØÖÆ̨»òÖÕ¶ËÏ£©µÄÎļþ»òĿ¼¹ÜÀí£¬ÒªÉ漰·¾¶ÕâÒ»¸ÅÄÕâÊÇLinuxÃüÁîÐвÙ×÷µÄ×î»ù´¡µÄ»ù´¡¡£Èç¹ûÎÒÃÇÁ˽âÁË·¾¶µÄ¸ÅÄ¾Í¿ÉÒÔËæÐÄËùÓûµÄ½øÈëÈκÎĿ¼£¬½øÐÐÎÒÃÇÒª×öµÄ¹¤×÷¡£
Ŀ¼
4.1 ¾ø¶Ô·¾¶£»
4.2 Ïà¶Ô·¾¶£»
5 ......
Linux 5.3ÏÂÅäÖÃnis+nfs+autofs
Server(·þÎñ¶Ë):ÏÈ×°ÉÏypserv·þÎñ¶ËÈí¼þ°ü # yum -y install ypserv*
# service ypserv start
# chkconfig ypserv on
# authconfig-tui ͼÐγÌÐòÏÂÅäÖÃnisÓòÃûºÍ·þÎñ¶ËµØÖ·
# service ypserv ......
Ò»°ãµÄϵͳÊÇÏÈÆô¶¯/sbin/init£¬µ«ÊÇÒ²¿Éͨ¹ýÆô¶¯²ÎÊýÖ¸¶¨init=À´È·¶¨£¬
È磺ÎÒµÄϵͳ¾ÍÊÇÖƶ¨µÄinit=/linuxrc,ÒòΪÎļþϵͳÊDzÉÓÃbusyboxµÄ£¬¶ølinuxrc
Ò²ÊÇÒ»¸öÖ¸ÏòbusyboxµÄÎļþ£¬²»¹ý²»È·ÈÏËüÖ¸Ïò¾ßÌåÄĸöÖ¸Áî¡£²»¹ý¿ÉÄÜÊÇ/sbin/init¡£
init½ø³ÌµÄÖ÷ÒªÈÎÎñÊÇ°´ÕÕinittabÎļþËùÌṩµÄÐÅÏ¢´´½¨½ø³Ì£¬ÓÉÓÚ½øÐÐÏµÍ ......
LinuxºÍWindowsµÄÇø±ð
ºÍLinuxÒ»Ñù£¬WindowsϵÁÐÊÇÍêÈ«µÄ¶àÈÎÎñ²Ù×÷ϵͳ¡£ËüÃÇÖ§³ÖͬÑùµÄÓû§½Ó¿Ú¡¢ÍøÂçºÍ°²È«ÐÔ¡£µ«ÊÇ£¬LinuxºÍWindowsµÄÕæÕýÇø±ðÔÚÓÚ£¬LinuxÊÂʵÉÏÊÇUnixµÄÒ»ÖÖ°æ±¾£¬¶øÇÒÀ´×ÔUnixµÄ¹±Ï׷dz£¾Þ´ó¡£ÊÇʲôʹµÃUnixÈç´ËÖØÒª£¿²»½öÔÚÓÚ¶Ô¶àÓû§»úÆ÷À´Ëµ£¬UnixÊÇ×îÁ÷ÐеIJÙ×÷ϵͳ£¬¶øÇÒÔÚÓÚËüÊÇÃâ·ÑÈí¼þµÄ»ù´ ......