&與ctrl+z 你可以使用&或ctrl+z來將命令放在后臺執(zhí)行.
fg 是將放在后臺執(zhí)行的程序再放回前臺.
jobs
15.dd命令備份
dd if="input_file" of="out_file"bs="block_size" count="number"
參數(shù):
if:就是input file可以是設(shè)備
of:就是output file也可以是設(shè)備
bs:規(guī)劃的一個block的大小,如果沒有設(shè)定時,預(yù)設(shè)是512bytes
count:多少個bs的意思.
dd if=/etc/password of=/tmp/passwd.bak 備份
16.mount 加載一個硬件設(shè)備
用法:mount [參數(shù)] 要加載的設(shè)備 載入點
eg: mount /dev/cdrom
cd /mnt/cdrom //進(jìn)入光盤目錄
u盤:
mkdir /mnt/usb;(注:創(chuàng)建掛載目錄)
mount /mnt/sda1 /mnt/usb;(注:掛載U盤)
現(xiàn)在就可以使用U盤了,在/mnt/usb目錄下的內(nèi)容就是U盤里的內(nèi)容了;
使用完后,用以下命令卸載U盤即可。
umount /mnt/usb
mount 列出系統(tǒng)所有的分區(qū)
mount -t iso9660 /dev/cdrom /mnt/cdrom 掛載光盤
mount -t vfat /dev/fd0/mnt/floppy 掛載軟盤
mount -t vfat -o iocharset=utf8,umask=000 /dev/hda2 /mnt/hda2掛載fat32分區(qū)
[root@localhost ~]#mount -t ntfs /dev/sda5 /mnt/d 這樣/dev/sda5這個ntfs分區(qū)就掛載到/mnt/d目錄了。掛載ntfs分區(qū) mount -t ufsd /dev/sda1 /mnt/xxx(不穩(wěn)定,掉盤)。[root@localhost ~]#mount -t vfat /dev/sda5 /mnt/d 這樣/dev/sda5這個fat分區(qū)就掛載到/mnt/d目錄了。