Linux 写一个列出目录内容的脚本?

Linux 写一个列出目录内容的脚本?,linux,shell,Linux,Shell,如何在linux shell脚本上编写一个列出目录和子目录内容的脚本 查找~/Desktop/Sample/-type f- 类似于此此行将创建脚本并授予其执行权限: echo -e '#!/bin/bash \nfind ~/Desktop/Sample/ -type f' > your_script.sh && chmod +x your_script.sh 将find~/Desktop/Sample/-type f保存到shell脚本文件中,然后运行shell脚本文

如何在linux shell脚本上编写一个列出目录和子目录内容的脚本

查找~/Desktop/Sample/-type f-
类似于此

此行将创建脚本并授予其执行权限:

echo -e '#!/bin/bash \nfind ~/Desktop/Sample/ -type f' > your_script.sh && chmod +x your_script.sh

将find~/Desktop/Sample/-type f保存到shell脚本文件中,然后运行shell脚本文件。该脚本文件应该是的可能副本的副本