Command Note
Command line for Mac, Linus, Windows, Cloud.
Vim
1. Moving
- left
H
- down
J
- up
K
- right
L
- end of line
$
- top of line
0
- top of file
gg
- end of file
G
- line at 50
50G
2. Mode
- insert mode
i
- replace mode
R
- delete a position at pointer
x
3. Save, exit
- exit
:q
- exit wihout save
:q!
- save
:w
- save override
:w!
- save then exit
:wq
NodeJs
-
determining
node -v
-
install
sudo npm install -g n
-
upgrade
sudo n stable
-
change to specific version 16.x
sudo n 16
MySQL
MacOS
-
start
mysql.server start
-
stop
mysql.server stop
-
restart
mysql.server restart
.NET Core CLI
- run with Staging profile
dotnet run --launch-profile "Staging"
Docker
-
build with tag and docker filename ```docker build -t docker-tag -f dockerFilename
-
run expose port
docker run -p 8080:80 yourimage
References
- https://kipalog.com/posts/Lam-quen-VIM-trong-5-phut