${HOME}
├── .bashrc
├── .tmux.conf
├── .vimrc
└── .config
├── sh
│ ├── .aliases
│ ├── .bashrc
│ └── .source
├── tmux
│ └── .tmux.conf
└── vim
└── .vimrc
opt
+s
select session by listopt
+shift
+q
quit this sessionopt
+shift
+n
name this sessionopt
+d
detach this session
opt
+c
create new windowopt
+q
quit this windowopt
+number
select particular window
opt
+\
split window horizontalopt
+enter
split window verticalopt
+x
close this paneopt
+h
(j
,k
,l
) move to left (up, down, right)
Table of Contents
All the following commands begin at Command Mode and end at Command Mode.
Multi lines comment
ctrl
+v
choose 'first rectangle of lines' you hope to commentshift
+i
insert comment symbolsesc
Multi lines uncomment
ctrl
+v
select 'a rectangle block' where you hope to uncommentd
delete comment symbolsesc
Entire page
ctrl
+f
forward entire pagectrl
+b
backward entire page
Half page
ctrl
+u
up half pagectrl
+d
down half page
/
search forward?
search backwardn
search nextshift
+n
search previous:noh
no highlight
u
undoctrl
+r
redo
0
0-th 'word' of this line$
last word of this line Don't take money too seriously!gg
go to the first lineshift
+g
go to the last line:number
jump to particular line
Indent
shift
+v
choose 'lines' you hope to indent>
indent a 'tab' you set
Unindent
shift
+v
choose 'lines' you hope to indent<
unindent a 'tab' you set
v
select which you hope to yanky
yankp
paste it
undo
=reset --soft HEAD^
reset commitrmall
=rm -r --cached
remove track this file everywhere (If you forget to create git ignore file.)
Table of Contents
ctrl
+b
and[
- scroll like vim mode
q
quit
from remote to local
- go to your folder
scp myuser@140.112.51.1:/path/file2 .
from local to remote
- go to your file
scp file1 myuser@140.112.51.1:/path/folder
touch empty.txt
create one filetouch empty{1..10}.txt
create lots of files
cp -r
copy foldercp -i
ask before overwritecp *
copy all files ignore foldercp -r !(ignorefile|ignorefoler)
copy except ignorefile and ignorefoler
copy files to subfolder cp -r !(subfoler) ./subfolder
mv -f
force to overwritemv *
move all files ignore foldermv !(ignorefile|ignorefoler)
move except ignorefile and ignorefoler
rename
mv oldnmae newname
nslookup
- google DNS
ping 8.8.8.8
- HiNet DNS
ping 168.95.1.1
echo "alias python3=/usr/local/bin/python3.x" >> ~/.bashrc
miniconda3
├── include
├── envs
├── lib
│ └── python3.9
│ └── site-packages
└── bin
├── activate
├── pip
├── python
└── python3 -> /usr/local/bin/python3.x
echo "alias python3=/usr/local/bin/python3.x" >> ~/.bashrc
conda create -n [name] python=3.9
conda activate [name]
conda deactivate
conda env remove -n [name]
conda env list
Please refer to this websit.