Linux建立软连接
来源:互联网 发布:2016北京旅游数据 编辑:程序博客网 时间:2024/04/18 07:36
在nginx配置站点的时候,需要在site-enable中建立 一个软连接指向 site-available 相应的文件。
软链接就相当于windows下的快捷方式,把源文件删了后,链接文件也无法使用了。
ln -s a b 中的 a 就是源文件,b是链接文件名
附:详细ln命令帮助:
# ln --helpUsage: ln [OPTION]... [-T] TARGET LINK_NAME (1st form) or: ln [OPTION]... TARGET (2nd form) or: ln [OPTION]... TARGET... DIRECTORY (3rd form) or: ln [OPTION]... -t DIRECTORY TARGET... (4th form)In the 1st form, create a link to TARGET with the name LINK_NAME.In the 2nd form, create a link to TARGET in the current directory.In the 3rd and 4th forms, create links to each TARGET in DIRECTORY.Create hard links by default, symbolic links with --symbolic.When creating hard links, each TARGET must exist.Mandatory arguments to long options are mandatory for short options too. --backup[=CONTROL] make a backup of each existing destination file -b like --backup but does not accept an argument -d, -F, --directory allow the superuser to attempt to hard link directories (note: will probably fail due to system restrictions, even for the superuser) -f, --force remove existing destination files -n, --no-dereference treat destination that is a symlink to a directory as if it were a normal file -i, --interactive prompt whether to remove destinations -s, --symbolic make symbolic links instead of hard links -S, --suffix=SUFFIX override the usual backup suffix -t, --target-directory=DIRECTORY specify the DIRECTORY in which to create the links -T, --no-target-directory treat LINK_NAME as a normal file -v, --verbose print name of each file before linking --help display this help and exit --version output version information and exitThe backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX.The version control method may be selected via the --backup option or throughthe VERSION_CONTROL environment variable. Here are the values: none, off never make backups (even if --backup is given) numbered, t make numbered backups existing, nil numbered if numbered backups exist, simple otherwise simple, never always make simple backups
- Linux建立软连接
- linux 建立软连接
- [linux][node]软连接建立
- linux ln 建立软连接
- linux 下建立硬链接和软连接
- ln 建立软连接
- 建立软连接
- Tomcat建立软连接
- 建立软连接
- 批量建立软连接
- VMWARE 中linux与 ssh建立连接
- 在Linux下建立PPP连接
- Linux下Qt与mysql建立连接
- 虚拟机Linux与windows建立网络连接
- Linux下如何批量建立文件连接
- Linux下Loadrunner建立socket连接方法
- Linux SSH建立连接过程分析
- Linux下如何批量建立文件连接
- 七喜winpad P100拆解图
- ubuntu nfs 设置
- Android HAL层HAL_MODULE_INFO
- Android 9 patch 图片 (.9.png 格式图片) 的特点和制作
- 事件,托管
- Linux建立软连接
- 为 vim 设置过滤条件使其不显示特定后缀的文件
- Validation of basic field types in a user profile form
- JSON在线格式化代码工具,验证工具
- 手把手教你TestComplete_行为模式设计和分析
- 用于 Windows 软件更新程序包的命令行开关
- LINQ TO SQL“序列中不包含任何元素“ 异常
- 牛人牛博收集 --- 云计算云存储
- 计算机视觉领域研究资源及期刊、会议介绍