Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ファイルまたはディレクトリが存在し、Linux でシンボリック リンク (ソフト リンク) であるかどうかを確認する方法は?
それを行うためのシェルを書きたいです。
ヒントを教えてください。
-Lテスト オプションを使用できます。
-L
if [[ -L $file ]]; then echo "$file exists and is a symbolic link" fi