首页 > 编程知识 正文

shell read命令,linux创建文件命令

时间:2023-05-06 06:58:36 阅读:23852 作者:1405

readlink是linux系统中的常用工具,主要用于查找符号链接指向的位置。

$ readlink --help //或manreadlinkusage : readlink [ option ] . fileprintvalueofasymboliclinkorcanonicalfilename/输出符号链接值- canonicalizecanonicalizebyfollowingeverysymlinkineverycomponentofthegivennamerecursively; allbutthelastcomponentmustexist-e,- canonical ize-existingcanonicalizebyfollowingeverysymlinkineverycomponentofthegivenenenathenenathegivenenenenanatenatenal allcomponentsmustexivents-canonical ize-missingcanonicalizebyfollowingeverysymlinkineverycomponentofthegivenamerecursively withoutrequirementsoncomponentsexistence-n,--no-newlinedonotoutputthetrailingnewline-q,--quiet,--s,- silene --- verbosereporterrormessages---- helpdisplaythishelpandexit---versionoutputversioninformationandexitreportreadliexit page :http://www.GNU.org/software/coreutils/generalhelpusinggnusoftware 33603358 www.GNU for complete documentation,)

$ readlink/usr/ts dtd/awk ./ts dtd/gawk//真正的可执行文件-f选项:

-f选项可以递归地跟随提供文件名的所有符号链接进行标准化。 除了最后一个组件以外,所有组件都必须存在。

简单来说,就是跟随符号链接到文件而不是符号链接的位置。 最后,存在必须存在不是符号链接的文件的限制。

$ readlink-f/usr/ts dtd/awk/ts dtd/gawk参考: readlink命令

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。