Add

Linux 常用快捷键


Console/terminal

  • Ctrl-Alt-Delete – shuts down computer
  • Alt-Fn (F1, F2, F3,…) – switch to n-th console
  • Alt-Left or Alt-Right – switch to next/previous virtual terminal
  • Ctrl-K – clears command line from cursor position to end of line.
    Example of use: CTRL-K
  • Ctrl-U – clears command line from cursor position to beginning of line.
  • Ctrl-Y – will paste in anything that was deleted by Ctrl-U or Ctrl-K
  • Ctrl-W – clears word to the left
  • Ctrl-A – moves cursor to beginning of command line.
  • Tabcommand-line autocompletion. Automatically completes current command line.
    Example of use: autocompletion using TAB

    If autocompletion script is enabled, then also options and applications parameters are autocompleted.

  • Scroll Lock – locks terminal input/output – allows to read console contents when output is going too fast. To unlock, press Scroll Lock once again.

    Alternatively, Scroll Lock can be enabled using Ctrl-S and disabled with Ctrl-Q. Try last shortcut if your console hangs for unknown reason – it happened to me many times that I’ve locked it accidentaly by pressing CTRL-S.

  • Shift-Page Up and Shift-Page Down – scrolls console buffer up/down. Works also when Scroll Lock is enabled. After changing the terminal (Alt-Fn) buffer contents is erased and it is impossible to scroll it.
  • Ctrl-L – screen refresh
  • Ctrl-C or Ctrl-Backslash – kills current task

Kernel shortcuts

Following shortcuts must be enabled in kernel, they also must be enabled using proc interface (echo 1 > /proc/sys/kernel/sysrq).

  • Alt-SysRQ-S – sync all mounted filesystem. Data in buffers is immediately written to disks.
  • Alt-SysRQ-U – remounts mounted filesystems read-only
  • Alt-SysRQ-B – performs immediate reboot. Don’t do it without syncing and unmounting as it can cause massive filesystem corruption
  • Alt-SysRQ-S, then Alt-SysRQ-U, then Alt-SysRQ-B – attempts to sync all mounted filesystems, remounts them read-only and immediately reboots computer. Fastest way to reboot .

X- shortcuts

  • Ctrl-Alt-Plus or Ctrl-Alt-Minus-
    changes screen resolution (higher/lower). Only if X-Windows is configured for multiple resolutions.
  • Ctrl-Alt-Backspace – kill X-server. Running applications will be terminated.
  • Ctrl-Alt-Escapexkill – click an application to kill it.
  • Ctrl-Alt-Fn (F1, F2, F3,…) – switches to n-th text console.

Random Posts Recent Comments

  • 女友糖尿病害我蛀牙 Says:

    汗一个…...

  • Htj06 Says:

    zhenyouchuangyi...

  • 电商圈 Says:

    试图该怎么建立啊,,怎在程序中是吸纳...

  • edward Says:

    看得人心旷神怡,好文,情不自禁的顶一下...

  • Daniel Says:

    我也在处理这个问题,没有找到好的方法。我用了楼上兄弟的方法,还是可以的。不知道您找到好的方法了吗、我暂时楼上兄弟的方法。...

  • 卡,卡 Says:

    弱弱问一句:博主,你博客的模板这样设计pv高吗?...

  • 站长工具 Says:

    博主,兔年快乐!...

  • health Says:

    great post!!I hope I can read more in your website....

  • pdu Says:

    好博文,支持分享...

  • 站长工具 Says:

    博主的文章很不错,我是站长工具-站长精灵的作者,一款专业的SEO工具软件(可以帮您提高博客的流量),想跟您交换个链接,不知可否...

Tag Cloud

arm audio blog brew cache class debug flash google html j2me java javascript Joke linux lua mobile mtk php python ror ruby server shell stream unix web windows 优化 动态加载 女人 女生 平台 开发 手机 技术 流媒体 测试 漫画 生活 男人 男生 缓存 芯片