有没有办法将这两行代码写在一行中?
nc -l 17500 > listenToNetcat.txt
chmod 754 listenToNetcat.txt
答案1
nc -l 17500 >> listenToNetcat.txt |xargs chmod 754 listenToNetcat.txt
有没有办法将这两行代码写在一行中?
nc -l 17500 > listenToNetcat.txt
chmod 754 listenToNetcat.txt
nc -l 17500 >> listenToNetcat.txt |xargs chmod 754 listenToNetcat.txt