Currently browsing tag

Linux, Page 21

Vi : Search and Replace

Change to normal mode with escape key. Search: Search STRING forward : /STRING Search STRING backward: ?STRING. Repeat search: n Repeat search …

/etc/fstab

## 編輯 /etc/fstab 檔案 /dev/sda1 /mnt/usbdrive ext3 noauto,user,kudzu 0 0 # 使用外接usb.讓其他使用者可以自由掛載(mount) USB硬碟 /dev/sda2 /mnt/dos vfat users,umask=000 0 0 # 讓其他使用者有權限寫入,掛載 Windows …

Howto reconstruct RAID 1

[root@localhost Desktop]# rpm -q raidtools raidtools-1.00.3-8 [root@localhost Desktop]# lsraid -p [dev 9, 0] /dev/md0 30820DF2.C88E49A4.8199EFC8.5B50C228 online [dev 8, 1] /dev/sda1 30820DF2.C88E49A4.8199EFC8.5B50C228 good …

watch command

[root@localhost ~]# watch Usage: watch [-dhntv] [–differences[=cumulative]] [–help] [–interval=] [–no-title] [–version] examples: # watch –interval=0.1 cat /proc/mdstat

Linux Notes – hosts

/etc/hosts.allow in.telnetd: 61.221.117.242/255.255.255.0, 163.26.198.1, .funny.net.tw : Allow in.proftpd: 61.221.117.242/255.255.255.0, 163.26.198.1, .funny.net.tw : Allow /etc/hosts.deny in.telnetd: ALL : Deny in.proftpd: ALL : Deny