首页
技术
登录
6mi
u
盘
搜
搜 索
技术
shell脚本中执行ll命令,提示ll:command not found
shell脚本中执行ll命令,提示ll:command not found
技术
2022-07-16
74
如:查看当前脚本运行路径下的文件信息 test.sh
#!/bin/bash
cur_path
=
`
pwd
`
ll
$cur_path
解决方法:使用ls -l (ll是ls -l的别名)
#!/bin/bash
cur_path
=
`
pwd
`
ls
-l
$cur_path
转载请注明原文地址:https://ipadbbs.8miu.com/read-27683.html
最新回复
(
0
)