Documentation about how to be produtivity with a terminal.
Ctrl + r : Search and reverse. (ctrl+r pour remonter l’history).Ctrl + l : Clear the screen (instead to use โclearโ command).Ctrl + p : Repeat last command.Ctrl + x + Ctrl + e : Edit the current command on an external editor. (Need to define export EDITOR=vim ).Ctrl + shift + v : Copy / paste in linux.Ctrl + a : Move to the begin of the line.Ctrl + e : Move to the end of the line.Ctrl + xx : Move to the opposite end of the line.Ctrl + left : Move to left one word.Ctrl + right : Move to right one word.
man <cmd> : Open man page of command.
space : go ahead page by page.b : go back page by page.q : quit.Enter : go line by line./<word> : search a word in man.n : go to the next expression that you search.N : go back to search expression.man -k <key word> : look for in all man for your key words.man -k <word1>.*<word2> : “.*” allow to search several words.whatis <cmd> : give short explaination about the command.
Usefull to keep a track or document and share what have been done.
script : save all commandes and result in a “typescript” file.script -a : append to an existing “typescript” file (otherwise erase previous one).exit : to stop session.
asciinema : save the terminal session in video.
For RHEL - something like Tlog exists and can be configure and centralised with Rsyslog.
/etc/DIR_COLORS.xterm define terminal colors
dircolors change colors in the ls output
git clone https://github.com/tmux-plugins/tmux-logging.git
tmux new -s ma_session : Create new session.tmux attach : Attach to the last used session.tmux attach -t X : Attach to ymux sessions with X number.tmux ls : List active tmux sessions.tmux split-window -dh "!!" : Run command in separate panel.tmux source-file ~/.tmux.conf : Reload config
C-b w : List sessions/panels.C-b x : Close panel or session.
echo $’\xae’ = “ยฎ”
Vim has a special shorthand for entering characters with diacritical marks. If you need some familiar variant of a Latin alphabet character youโll be able to input it with the digraph system.
Digraph input is started in insert or command mode (but not normal mode) by pressing Ctrl-k, then two printable characters in succession.
The first is often the โbaseโ form of the letter, and the second denotes the appropriate embellishment.
https://vimvalley.com/ https://vim-adventures.com/ https://www.vimgolf.com/
1# HCL
2mkdir -p ~/.vim/pack/jvirtanen/start
3cd ~/.vim/pack/jvirtanen/start
4git clone https://github.com/jvirtanen/vim-hcl.git
5
6# Justfile
7mkdir -p ~/.vim/pack/vendor/start
8cd ~/.vim/pack/vendor/start
9git clone https://github.com/NoahTheDuke/vim-just.git
trigger a vim tutorial vimtutor
the most powerfull command:. : Repeat the last modification repete toutes les dernieres modif realisees.* : Where the cursor is located, keep in memory the word and goes to next one..* : together repeat an action on next word.