shell用相同檔名 + 前綴來備份檔案October 13, 2020$ cp todo.txt !#:1.bak cp todo.txt todo.txt.bak 注意:其實你可以在任何指令中使用 !#:1,因為那代表傳給指令的最後一個參數。 更新:現在在 zsh 也能用了