設定常用主機? - Linux

Robert avatar
By Robert
at 2010-03-18T09:58

Table of Contents

我記得有種方法

可以讓你在 ssh host1.xxx.com.tw 的時候
直接打 ssh host1 就好了

不過有點忘記要怎麼弄
是寫環境變數在 .bash_profile 裡面嗎?

Thanks in advance ^^


--
Tags: Linux

All Comments

Carol avatar
By Carol
at 2010-03-23T07:17
你可以在resolv.conf加上search xxx.com.tw
Olivia avatar
By Olivia
at 2010-03-24T04:34
~/.ssh/config
James avatar
By James
at 2010-03-27T02:55
/etc/hosts 吧
Una avatar
By Una
at 2010-03-29T19:12
/etc/hosts
Tristan Cohan avatar
By Tristan Cohan
at 2010-04-02T02:46
IP-Address Full-Qualified-Hostname Short-Hostname
Aaliyah avatar
By Aaliyah
at 2010-04-06T08:50
如果是一般使用者用LOCALDOMAIN這個環境變數也可以
Lauren avatar
By Lauren
at 2010-04-07T07:34
export LOCALDOMAIN="xxx.edu.tw yyy.xxx.tw" 空白隔開

ubuntu 9.10 開機的錯誤訊息

Gary avatar
By Gary
at 2010-03-17T22:37
那個訊息就是在掃瞄硬碟啊,可能有不正常關機或怎樣, 你沒有等它跑完過嗎? 還是說 ext4 檔案系統要跑比較久…… 我用 Lenovo S10-2 有時休眠到沒電, 重開機的時候也只檢查一下下就繼續開機了。 ※ 引述《James042 (差羽鳥11)》之銘言: : 我是用linux的新手 : ------- ...

proecess間的mutual exclusive RW

Genevieve avatar
By Genevieve
at 2010-03-17T22:25
※ 引述《WindChris (風)》之銘言: : 請教一下 : 一篇文章 : 讓十個process去read : 一個process一次讀一列出來 : 怎麼在shell script下保證這十個process不會讀到同樣的列 : EX:每支process的內容 ...

ubuntu 9.10 開機的錯誤訊息

Thomas avatar
By Thomas
at 2010-03-17T22:15
我是用linux的新手 --------------------------- 我灌在ASUS F8SR筆電 昨天灌的時候選擇將整個硬碟灌成ubuntu 剛灌好後馬上升級成9.10 但是發現有時候在開機時會出現 one or more of the mounts listed in etc/fsta ...

舉個例子來說…關於套件相依性的問題~~

Dorothy avatar
By Dorothy
at 2010-03-17T21:20
碰到一個問題,弄了一個下午,一直都沒辦法解決問題~~ 本來還在想這到底是什麼天字一號的ubuntu大頭症…沒想到~ 就是連著我也大頭起來了~終端機上面顯示著的``errorand#39;and#39;字串, 顯示著一連串時間、精力的浪費與挫敗。 查了國外的網頁,好多次,都是英文,不友善的語言介面,困擾 ...

proecess間的mutual exclusive RW

Charlotte avatar
By Charlotte
at 2010-03-17T21:10
請教一下 一篇文章 讓十個process去read 一個process一次讀一列出來 怎麼在shell script下保證這十個process不會讀到同樣的列 EX:每支process的內容 while(`cat file | wc -l`) ...