got up to ssh
This commit is contained in:
parent
4be66d193a
commit
c1d3ec9af7
1 changed files with 127 additions and 4 deletions
|
|
@ -10,7 +10,7 @@
|
|||
- [[https://www.youtube.com/playlist?list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J][Playlist: Missing Semester]]
|
||||
- [[https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbVVJc2RzZ25nMmlrVW5zVGRsTS1fX2ladmRPQXxBQ3Jtc0ttWjQ5Ujcyd19TekNncTZGNEp1eDc3RWhzTzhvMW9oSTFoUl9JbGt1Mi0yU3FLc00wVUx1UXNJdFQxTjBjMWphdUZxNnU1WUYzTmFqd3RRemNLUDBJMlZkV3B0SnB4RVhpaUhvWWtnc1RISW1WVzdYWQ&q=https%3A%2F%2Fmissing.csail.mit.edu%2F2020%2Fcommand-line%2F&v=e8BO_dYxk5c][class notes]]
|
||||
|
||||
- Curr: https://youtu.be/e8BO_dYxk5c?si=7tmshQsaihcvs-aP&t=2018
|
||||
- Curr: https://youtu.be/e8BO_dYxk5c?si=ttNryjIiOS0BxBqD&t=2542
|
||||
|
||||
*** timestamps
|
||||
:PROPERTIES:
|
||||
|
|
@ -26,12 +26,12 @@
|
|||
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=881s][14:41 - Terminal Multiplexer]]
|
||||
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=1112s][18:32 - The Key Bindings]]
|
||||
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=1536s][25:00 - Dot Files]]
|
||||
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=1799s][29:59 - Context Based Configuration File]] *current*
|
||||
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=1799s][29:59 - Context Based Configuration File]]
|
||||
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=2004s][33:24 - Terminal Emulator]]
|
||||
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=2196s][36:36 - Aliases]]
|
||||
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=2286s][38:06 - Common Folder Structure]]
|
||||
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=2344s][39:04 - Symlinks]]
|
||||
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=2552s][42:32 - ssh]]
|
||||
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=2552s][42:32 - ssh]] *current*
|
||||
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=2715s][45:15 - ssh keys]]
|
||||
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=3057s][50:57 - ssh config]]
|
||||
+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=3231s][53:51 - changing the prefix]]
|
||||
|
|
@ -165,4 +165,127 @@ alias mv="mv -i"
|
|||
- .vimrc
|
||||
- vim configuration file
|
||||
|
||||
** terminal emulator
|
||||
** tmux
|
||||
- run a session, detach and get back to it later
|
||||
|
||||
*** link
|
||||
- [[https://tmuxcheatsheet.com][cheat sheet]]
|
||||
- [[https://www.youtube.com/watch?v=nTqu6w2wc68][network chuck tutorial]]
|
||||
|
||||
*** prefix key
|
||||
Ctl-B
|
||||
|
||||
*** userful commands
|
||||
**** detach / attach
|
||||
- Ctl-B , D -> detach
|
||||
- tmux a -> reattach
|
||||
|
||||
**** reattach to most recent session
|
||||
- tmux a
|
||||
|
||||
**** attach to a particular session
|
||||
- list the tmux session
|
||||
- note the index number or name
|
||||
- attach to that index -t (target)
|
||||
~tmux a -t [INDEX]
|
||||
|
||||
**** kill
|
||||
***** kill a session
|
||||
tmux kill-session -t [INDEX]
|
||||
|
||||
***** kill session from list windows
|
||||
- go into list windows C-b w
|
||||
- highlight the one you want dead
|
||||
- C-b x, it will ask for confirmation
|
||||
|
||||
***** kill ALL sessions
|
||||
tmux kill-server
|
||||
|
||||
***** kill a pane
|
||||
C-b x
|
||||
|
||||
***** kill an entire window
|
||||
C-b &
|
||||
|
||||
**** tmux names session
|
||||
-
|
||||
~tmux new -s name~
|
||||
|
||||
**** list session
|
||||
- tmux ls
|
||||
|
||||
*** 3 layers
|
||||
**** layer 1 -> sessions
|
||||
- when you hit tmux you start a new tmux session
|
||||
|
||||
**** layer 2 -> window
|
||||
- when you create a new session, you automatically create an initial window
|
||||
|
||||
- C-b c :: create a new window in addition to the existing ones
|
||||
- all windows will be listed in the display line at the bottom
|
||||
- the * indicates the current
|
||||
|
||||
- C-b n :: move through your windows
|
||||
- C-b < :: rename window
|
||||
- C-b w :: list all sessions and windows
|
||||
- you can walk through the list using arrow keys
|
||||
- enter to switch
|
||||
|
||||
***** kill session
|
||||
- go into list windows C-b w
|
||||
- highlight the one you want dead
|
||||
- C-b x, it will ask for confirmation
|
||||
|
||||
**** layer 3 -> panes
|
||||
- panes exist in windows
|
||||
- add horizontal pane :: C-b %
|
||||
- add vertical pane :: C-b "
|
||||
- switch panes :: C-b [arrow]
|
||||
- show pane index :: C-b q
|
||||
- switch to pane index :: C-b q [index]
|
||||
- change pane size :: C-b [hold Ctl] [arrow]
|
||||
|
||||
***** preselected pay layout
|
||||
- C-b Alt-1-5
|
||||
|
||||
***
|
||||
|
||||
** terminal emulator - alacritty
|
||||
- very fast
|
||||
- useful for heavy displays like neoviim
|
||||
- vm mode is good for reloading
|
||||
|
||||
*** hint system
|
||||
- pattern recognition of terminal output based on regex
|
||||
- execute commands on those patterns
|
||||
|
||||
**** e.g.
|
||||
- url will be opened in browser
|
||||
|
||||
**** custom actions
|
||||
- shows hints overlay over something recongized
|
||||
- for files or other customized action
|
||||
|
||||
*** themes
|
||||
- black theme
|
||||
|
||||
*** copy mode / vim
|
||||
- treat terminal output as a vim buffer
|
||||
- doesn't support all, but a lot
|
||||
|
||||
** aliases
|
||||
you can find good alias lists online
|
||||
|
||||
** common folder structures
|
||||
- use symlinks to store all your dotfiles in one directory
|
||||
|
||||
- ~ln -s [path-to-orig] [path-to-link-location]~
|
||||
|
||||
#+begin_src text
|
||||
~
|
||||
├─ .bashrc
|
||||
├─ .vimrc
|
||||
└─ dotfiles
|
||||
├─ bashrc
|
||||
└─ vimrc
|
||||
#+end_src
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue