Alternatives to GNU Screen for Linux Terminal Multitasking
来源:互联网 发布:js获取a标记的href 编辑:程序博客网 时间:2024/05/01 03:35
Tmux
As a rewrite of GNU Screen, tmux offers a variety of improvements. Some of the most important include a client-server model, which allows you to connect to a tmux session from multiple locations, and a cleaner configuration file format. Check out tmux’s FAQ to discover a list of ways it differs from GNU Screen.
Use this command to install tmux on Ubuntu:
sudo apt-get install tmux
If you’re using another distribution, you’ll likely find it in your distribution’s package manager.
To launch tmux after installing it, just run the tmux command. Unlike Screen, tmux comes with a status bar by default.
To open an additional terminal window, use the Mod-c keyboard shortcut. The default modifer key combination is Ctrl-b. This means that you’ll have to press Ctrl-b and then c to create a new window.
Each new window you open will appear in the status bar. By default, tmux only shows one window on the screen at a time.
Here are some important keyboard shortcuts to get you started:
Mod-X – Kill the current terminal.
Mod-n – Focus next window.
Mod-p – Focus previous window.
Mod-# – Focus the specified window, where # is a number between 0 and 9.
Mod-’ – Prompt for a window to select.
Mod-% – Split the current window into two horizontally.
Mod-” – Split the current window into two vertically
To detach from the current session, use the Mod-d keyboard shortcut.
To reattach to a session, run the following command:
tmux attach
For more keyboard shortcuts, run the man tmux command or read tmux’s manual on the web.
Dvtm & Dtach
Unlike GNU Screen and tmux, dvtm doesn’t allow you to disconnect and reattach to sessions. You’ll have to run dvtm with dtach to detach from and reattach to your sessions.
Run this command to install dvtm and dtach on Ubuntu:
sudo apt-get install dvtm dtach
These programs should be available in other distribution’s software repositories, too.
Run the dvtm command to launch dvtm. You’ll see a single terminal window.
To open additional terminal windows, use the Mod-c keyboard shortcut. The default modifier key combination is Ctrl-g. This means that you’ll need to press Ctrl-g and then c to open a new terminal window.
Like a tiling window manager, dvtm will lay out the terminal windows automatically. Unlike the other utilities, it displays them all on the screen by default.
Here are some important keyboard shortcuts to get you started:
Mod-x – Close the current window.
Mod-j – Focus next window.
Mod-k – Focus previous window.
Mod-# – Focus the specified window, where # is the number of the window.
Mod-q - Quit dvtm.
For a full list, run the man dvtm command or check out dvtm’s manual page on the web.
Dvtm also supports the mouse. For example, you can click one of the windows to select it.
To detach from a dvtm session and reattach to it later, you’ll have to run it with the dtach command. To launch dvtm with dtach, use the following command:
dtach -c /tmp/dvtm-session -r winch dvtm
To detach from a dvtm session that’s been started with dtach, use the Ctrl-\ keyboard shortcut.
To reattach to your dvtm session later, use the following command:
dtach -a /tmp/dvtm-session -r winch
You can use dtach to run, detach from, and reattach to other applications, too.
- Alternatives to GNU Screen for Linux Terminal Multitasking
- GNU Screen -- MITBBS Linux版镇版之宝
- GNU Screen -- MITBBS Linux版镇版之宝
- How to Customize Mac Terminal Startup Screen Message
- Configuration for Linux command `screen`
- iOS9新特性 - Split Screen Multitasking
- VDI for free (alternatives)
- 8 alternatives to TestFlight
- Terminal Notes for Embedded Linux System
- GNU screen 技术
- GNU Screen简单操作
- gnu screen 个人设置
- GNU Screen Splitting
- GNU Screen Splitting
- GNU Screen 介绍
- Play with GNU Screen
- GNU Screen Splitting
- Clear! (clear your terminal screen)
- hdu 1180 诡异的楼梯(bfs)
- 网页上嵌入Flash播放器(1)
- ajax跨域:JQuery + Spring MVC3.0
- 【Android】 Android 滑动效果之ViewFlipper+GestureDetector
- 我们也曾瘦过美过-胖胖们的忏悔实录
- Alternatives to GNU Screen for Linux Terminal Multitasking
- 异常:由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值。
- dvtm || dynamic virtual terminal manager
- windows批处理(.bat)
- UI & UE 网站整理(不断更新中)
- Linux Mint 17 fcitx输入法配置
- Android常用权限permission列表摘录
- Android中内容观察者的使用---- ContentObserver类详解
- 【夯实基础】JAVA集合框架总结(list和set的区别等等)