cmd: ls -all /sys/block/sda, ps_output_file=/mnt/vendor/tmp/tmp_dev_path.
时间: 2023-07-28 11:10:05 浏览: 186
抱歉,我不太明白您的意思。您是想执行一个命令,然后将输出结果保存到一个文件中吗?如果是的话,您可以使用以下命令:
```
ls -all /sys/block/sda > /mnt/vendor/tmp/tmp_dev_path
```
这将会将 `ls -all /sys/block/sda` 命令的输出结果保存到 `/mnt/vendor/tmp/tmp_dev_path` 文件中。同样地,您可以使用以下命令将 `ps` 命令的输出结果保存到文件中:
```
ps > /mnt/vendor/tmp/ps_output_file
```
请注意,您需要有足够的权限才能够访问 `/mnt/vendor/tmp` 目录并且向其中写入文件。
阅读全文
相关推荐


















