summaryrefslogtreecommitdiff
path: root/080_blog/00010_Various-Cheat-Sheets
diff options
context:
space:
mode:
Diffstat (limited to '080_blog/00010_Various-Cheat-Sheets')
-rw-r--r--080_blog/00010_Various-Cheat-Sheets/00105_GNU-Screen-Multiplexer-Keyboard-Shortcuts/index.md43
-rw-r--r--080_blog/00010_Various-Cheat-Sheets/00110_Midnight-Commander-Cheatsheet/index.md61
-rw-r--r--080_blog/00010_Various-Cheat-Sheets/index.md3
3 files changed, 107 insertions, 0 deletions
diff --git a/080_blog/00010_Various-Cheat-Sheets/00105_GNU-Screen-Multiplexer-Keyboard-Shortcuts/index.md b/080_blog/00010_Various-Cheat-Sheets/00105_GNU-Screen-Multiplexer-Keyboard-Shortcuts/index.md
new file mode 100644
index 0000000..80b24b1
--- /dev/null
+++ b/080_blog/00010_Various-Cheat-Sheets/00105_GNU-Screen-Multiplexer-Keyboard-Shortcuts/index.md
@@ -0,0 +1,43 @@
+GNU Screen - Keyboard Shortcuts
+=============================================
+
+Invocation
+----------
+ $ screen [-S session_name] # simply start new session
+ $ screen -ls # lists sessions
+ $ screen -r session_name # resume detached session
+ $ screen -d -R session_name # resume session (also detach or create)
+ $ screen -d -RR #resume first session
+
+Shortcuts
+---------
+ ctrl-a c NEW WINDOW
+ ctrl-a n / ctrl-a p NEXT/PREVIOUS
+ ctrl-a d DETACH
+ ctrl-a D D DETACH and LOGOUT
+
+ ctrl-a S SPLIT HORIZ.
+ ctrl-a | SPLIT VERTICAL
+ ctrl-a tab NEXT REGION
+ ctrl-x REMOVE REGION
+ ctrl-a q REMOVE ALL OTHER REGIONS
+ ctrl-a F FIT WINDOW
+
+ ctrl-a c CLEAR SCREEN
+ ctrl-a k KILL WINDOW
+ ctrl-a \ QUIT
+
+ ctrl-a esc COPY/SCROLLBACK MODE
+
+Layout Commands
+---------------
+ ctrl-a : #enter command mode
+ :layout new [title]
+ :layout remove [n|title]
+ :layout next
+ :layout prev
+ :layout show #list layouts
+
+Reference
+---------
+ [1] $ man screen
diff --git a/080_blog/00010_Various-Cheat-Sheets/00110_Midnight-Commander-Cheatsheet/index.md b/080_blog/00010_Various-Cheat-Sheets/00110_Midnight-Commander-Cheatsheet/index.md
new file mode 100644
index 0000000..eedc66a
--- /dev/null
+++ b/080_blog/00010_Various-Cheat-Sheets/00110_Midnight-Commander-Cheatsheet/index.md
@@ -0,0 +1,61 @@
+###>>>KWD midnight commander cheatsheet, mc cheatsheet, mc shortcuts, midnight commander shortcuts
+###>>>DSC Cheatsheet for Midnight Commander summarizing the most useful shortcuts.
+Midnight Commander Cheatsheet
+=============================
+
+A short cheat-sheet summarizing midnight commander's most useful shortcut keys.
+
+Basic Navigation
+----------------
+ tab switch active panel
+ up/down select previous/next rown
+ return open selected directory
+ alt-o open selected directory on other panel
+
+View
+----
+ alt-. toggle hidden files
+ ctrl-o toggle console
+ alt-t toggle listing mode
+ alt-i sync with other panel
+ ctrl-u swap panels
+
+Miscellaneous
+-------------
+ shift-f6 rename, filling in the current filename
+ insert/ctrl-t/+/\/* selections
+ esc-tab auto complete
+ ctrl-enter / alt-enter copy currently selected filename to console
+ Ctrl + Shift + Enter copy full path
+
+ alt-shift-h show dir history
+ alt-y/alt-u navigate history
+
+ alt+?/alt-s/ctrl-s searches
+
+ ctrl-space calculte size
+ ctrl - x c chmod
+ ctrl - x o chown
+
+Troubleshooting / Extras
+------------------------
+Adding this to your _.bashrc_ will let _mc_ stay in the current directory after exiting:
+
+ alias mc='. /usr/libexec/mc/mc-wrapper.sh'
+
+I run _midgnight commander_ inside _tmux_ and the shifted function keys did not work as
+expected. Use midnight commanders _Learn Keys_ dialog to fix this.
+
+Set default viewer for pdf:
+
+ xdg-mime default evince.desktop application/pdf
+
+Set default editor:
+
+ alias mc='EDITOR=vim'
+
+Reference
+---------
+
+* http://klimer.eu/2015/05/01/use-midnight-commander-like-a-pro/
+* man mc
diff --git a/080_blog/00010_Various-Cheat-Sheets/index.md b/080_blog/00010_Various-Cheat-Sheets/index.md
new file mode 100644
index 0000000..ee779fa
--- /dev/null
+++ b/080_blog/00010_Various-Cheat-Sheets/index.md
@@ -0,0 +1,3 @@
+Cheat Sheets
+============
+A growing collection of some of my cheat sheets.