有没有一种简单的方法可以将以前的命令重新应用于新的命令行条目?
假设我输入了chmod u+r,g+x file.txt但忘记了 sudo。我可以简单地输入sudo <some easy symbol>'吗?
chmod u+r,g+x file.txt
sudo <some easy symbol>
command-line bash command-history
bash ×1
command-history ×1
command-line ×1