在 GNU/Linux
PS1 = "$" 下;出口 PS1
我发现了一些使用此命令创建具有特定权限的文件的技巧:
$ install -b -m 604 /dev/null test.php
还有在 cat 命令中创建具有 I/O 重定向的文件的提示:
$ cat > test.php << EOF
我想知道如何在不实际执行两次的情况下将它们组合起来?
$ install -b -m 604 /dev/null test.php ; 猫> test.php << EOF
在 GNU/Linux
PS1 = "$" 下;出口 PS1
我发现了一些使用此命令创建具有特定权限的文件的技巧:
$ install -b -m 604 /dev/null test.php
还有在 cat 命令中创建具有 I/O 重定向的文件的提示:
$ cat > test.php << EOF
我想知道如何在不实际执行两次的情况下将它们组合起来?
$ install -b -m 604 /dev/null test.php ; 猫> test.php << EOF