linux ln命令

来源:互联网 发布:手机震动软件 编辑:程序博客网 时间:2024/05/10 18:40

ln是linux下的链接命令,相当于window下的快截方式
命令格式:
ln [参数][源文件或目录][目标文件或目录]
示例:

 ln -s /home/test /test

参数:

  -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  -i, --interactive           prompt whether to remove destinations  -L, --logical               make hard links to symbolic link references  -n, --no-dereference        treat destination that is a symlink to a                                directory as if it were a normal file  -P, --physical              make hard links directly to symbolic links  -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 linked file      --help     display this help and exit      --version  output version information and exit
0 0
原创粉丝点击