User run minicom in Ubuntu

minicom is a great terminal program for connecting the console of Cisco devices or others. However, normal user cannot run minicom because of a permission issue when accessing the hardware (USB / serial port).

To allow user to run minicom section, just put the user under the group belongs to the hardware. In this […]


xcopy /t /e /h x:\dir


XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]

[/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U] [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/B] [/EXCLUDE:file1[+file2][+file3]…]

source Specifies the file(s) to copy. destination Specifies the location and/or name of new files. /A Copies […]

No beep when press tab key


set show-all-if-ambiguous on

解決 Outlook 常見問題 — 1

有時 Outlook 會出現 “This view is damaged. Default view settings will be used.” 錯誤提示. 此時可試試在 command prompt 執行下列指令便可解決問題.

outlook.exe /cleanviews

此方法可適用於: Outlook 2000

bash script for-loop syntax demo

for (( i = 0 ; i <= 5; i++ )) do echo “Welcome $i times” done

Outlook Command Line Switches

The following text was copied from the Microsoft Site at:

Command-Line Switch Purpose ——————- ——-

/CleanFreeBusy Cleans and regenerates free/busy information.

/Cleanfinders Removes saved searches from the Exchange Server store.

/CleanReminders Cleans and regenerates reminders.

/CleanViews Restores default views. All custom views you created are lost.

/CheckClient Prompt for default manager of e-mail, […]

Using ping know your MAC address

1. ping <IP address>

2. arp -a <IP address>

在 Linux 下用 shell 傳送有標題及附件的電子郵件

以下分享少少經驗, 希望對各位看倌有用.

/usr/bin/mutt \

-s “my SUBJECT” \

-a attachment.txt \

< /dev/null

簡單 bash script

在此介紹 bash script 最簡單的 programming. Admin server 最有用.

for i in `cat xx` do cp -R $i /home/user done

Show date & time in batch file

在 log 檔案內加入日期可以令可讀性大大提高.

在 batch 檔加入日期: echo | date | find “current” >> LOG

在 batch 檔加入時間: echo | time | find “current” >> LOG