LoginSignup
1
1

More than 5 years have passed since last update.

ln の引数のおぼえ方

Posted at

A から B への symbolic link を張りたいとき、

ln -s B A

という command を打つ。この引数の順番がおぼえにくい。「A から B」なのに引数は B A である。直観的でないように思える。

しかし、

ln -s B A

mv B A

cp B A

と並べてやると、いつも、「B は既にあるもの、A は新しく作るもの」という関係がある。この関係を手がかりにすれば、 ln の引数の順番も飲み込みやすい。

1
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1