Tip: Copy the Shell
Coder Habit: Quite often as a System Administrator you need to capture the contents of a bash shell window. Why? So, you can save pertinent information or "create special" shell scripts to manage files, directories, or networks.
Quite often, I'll be running this sequence of commands. Simply: launch shell, issue commands, mark entire buffer, kill buffer (the shell), yank (killed) buffer.
Launch Shell: Alt-x, shell, enter
Issue a command: ls -ltr
Select whole buffer: Ctrl-x, h, enter
Copy region: Alt-w
Kill buffer: Ctrl-x, k, enter
Yank buffer: Ctrl-y
Platform: Linux
Level: Amateur
GlR


0 Comments:
Post a Comment
<< Home