linux – 从终端历史记录中搜索和替换命令

linux – 从终端历史记录中搜索和替换命令

我想知道如何/如果我可以重用我的终端历史记录中的命令,但是在修改后的版本中.这是一个例子: $filter_script file2 output_file2$# ...# now run the same command, but replace 2 with 4$filter_script file4 output_file4 这是一个非常简单的例子,当然我可

将ubuntu系统终端中显示的路径缩短

将ubuntu系统终端中显示的路径缩短

sudo notepadqq .bachrc 找到 if [ $color_prompt = yes ]; then PS1=${debian_chroot:+($debian_chroot)}[033[01;32m]u@h[033[00m]:[033[01;34m]w[033[00m]$ else PS1=${debian_chroot