小编Wil*_*n F的帖子

我可以使用键盘一次移动/调整窗口一个像素吗?

在 Windows 中(至少从 XP 开始,可能以前),如果您使用键盘移动或调整窗口大小,则可以通过使用 Ctrl 键和箭头组合获得非常精确的位置和大小 - 甚至比使用鼠标更准确键(在从窗口菜单 [Alt+Space]调用MoveResize功能之后)将窗口边框一次移动一个像素。

有没有办法在 Ubuntu 中做同样(或类似)的事情?

keyboard window-manager shortcut-keys

4
推荐指数
1
解决办法
1487
查看次数

bash(或任何外壳,就此而言)是否具有“覆盖”模式?

我正在(例如)一组文件上运行类似的命令。举个例子,假设我正在做这样的事情(这不是我在做的,这只是一个例子):

> cat path/to/dir/file01.txt
  [file contents]
> another-command path/to/dir/file01.txt
  [more output]
> cat path2/to/dir/file02.txt
  [file contents, from which I can tell I should do something different]
> different-command path2/to/dir/file02.txt
  [yet more output]
> cat path3/to/dir/file03.txt
  [file contents]
> another-command path3/to/dir/file03.txt
  [output]
Run Code Online (Sandbox Code Playgroud)

等等。

如果在使用键返回上一个命令后,我可以覆盖非重复文本会很方便吗?比如文件名,或者路径的公共部分——而不必删除它并重新输入它。

有没有办法做到这一点?

command-line bash shortcut-keys bash-history

4
推荐指数
2
解决办法
2634
查看次数