shell脚本提示 ll:command not found

shell脚本test.sh代码:

1
2
3
4
#!/bin/sh

# 查看test目录下的文件列表
ll /test

执行报错:

1
test.sh: line 3: ll: command not found

解决方法:

1
2
3
4
#!/bin/sh

# 查看test目录下的文件列表
ls -l /test