Linux

ファイルからパッケージを特定して、ソースコードをダウンロードする

dpkg, apt $ which ifconfig /sbin/ifconfig $ dpkg -S /sbin/ifconfig net-tools: /sbin/ifconfig $ apache-cache show net-tools bash: apache-cache: command not found $ apt-cache show net-tools Package: net-tools Priority: important Section: net…

~/.ssh/config で簡単に複数ホストへのSSH接続を管理する

ssh で鍵やユーザ名を複数のホストで使い分けないといけない場合、それら設定を覚えておくのは面倒です。 それらホスト毎の設定は ~/.ssh/config で簡単に管理することができます。 複数の鍵を管理する場合 identity, id_rsa などのファイル名で保存しますが…