practice_code/shell/code/ng_ln.sh

7 lines
130 B
Bash
Raw Normal View History

2024-06-11 23:28:58 +08:00
#!/bin/bash
for file in /etc/nginx/sites-available/*;do
base=$(basename "$file")
ln -s "$file" "/etc/nginx/sites-enabled"
done