Skip to main content

Bash or PS Command Usage

View Directory Structure​

tree /f

View Port Usage​

netstat -ano | findstr :8080

Kill Process Occupying Port​

taskkill /PID 1234 /F

Temporarily Set Java Home to Another Path​

$env:JAVA_HOME="D:\software\Java\jdk-17.0.7"
$env:PATH="$env:JAVA_HOME\bin;$env:PATH"

./gradlew test --daemon
export JAVA_HOME="/d/software/Java/jdk-17.0.7"
export PATH="$JAVA_HOME/bin:$PATH"

Start docusaurus bat script​

start-docusaurus.ps1 in project

@echo off
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "D:\summary\start-docusaurus.ps1"
Agreement
The code part of this work is licensed under Apache License 2.0 . You may freely modify and redistribute the code, and use it for commercial purposes, provided that you comply with the license. However, you are required to:
  • Attribution: Retain the original author's signature and code source information in the original and derivative code.
  • Preserve License: Retain the Apache 2.0 license file in the original and derivative code.
The documentation part of this work is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License . You may freely share, including copying and distributing this work in any medium or format, and freely adapt, remix, transform, and build upon the material. However, you are required to:
  • Attribution: Give appropriate credit, provide a link to the license, and indicate if changes were made.
  • NonCommercial: You may not use the material for commercial purposes. For commercial use, please contact the author.
  • ShareAlike: If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.