2013年4月19日 星期五

linux screen 便利設定


從網路上找來的


替 screen 加入方便的標籤顯示
檔案 『/home/user1/.screenrc』裡面填入

caption always "%{= wk} %{= KY} [%n]%t @ %H %{-} %= %{= KR} %l %{-} | %{= KG} %Y-%m-%d %{-} "
hardstatus alwayslastline " %-Lw%{= Bw}%n%f %t%{-}%+Lw %=| %0c:%s "
vbell off




ssh連入後自動進入 screen 裡面

檔案『/home/user1/.bashrc』最後面

if [ -z "$STY"  ]; then
    exec screen -dR

fi

找linux主機裡哪個檔案肥

> sudo du -sh *

2013年4月13日 星期六

windows7 login user list hide

隱藏登入時的部份User的帳戶
 ex. 想要隱藏 user1
  1. 修改 regedit 位置「HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\
  2. 『新增』新增『機碼』「SpecialAccounts」,底下再次『新增』新增『機碼』「UserList」(這時候路徑會是「HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList」)
  3. 『新增』新增『DWORD (32-位元)值』>>「user1」
  4. 登出,重新登入即可(請注意至少要留下一個帳戶為系統管理的權限