30 Windows Command Line Cheat Sheet: A. Opening and Managing Files/folders
30 Windows Command Line Cheat Sheet: A. Opening and Managing Files/folders
Command Line
Cheat Sheet
a. opening and managing files/folders
Always open command prompt in admninistrator Mode Show all wifi passwords
B. System Information
Display detailed system operating and configuration Remove the Mounted Drive
info
subst /d q:
systeminfo
Change the Background and Text color in command
Securely Copy files between remote hosts prompt
scp file.txt root@serverip:~/file.txt color 07 [background:text]
Open Explorer from the windows command prompt Reset the Prompt Text
explorer. prompt
Map a regular folder as a mounted drive Change the Title of command prompt window
subst q: c://filelocation title {stuff}
C. Network
curl <https://api.openai.com/v1/chat/completions> -H
"Authorization: Bearer sk-
curl -s https://decapi.me/youtube/latest_video? FZ75cesnv4FnuQqI2NIbT3BlbkFJC4UbZ8MEfRLE5uFkIxS7" -H
user=networkchuck "Content-Type: application/json" -d "{\\"model\\": \
\"gpt-3.5-turbo\\", \\"messages\\": [{\\"role\\": \
\"user\\", \\"content\\": \\"Who is NetworkChuck?\\"}]}"
curl -s https://decapi.me/twitter/latest?
name=networkchuck Create a batch file
start networkchuck.com
del /q /f /s %temp%\\*
doskey / history
F. WindowS terminal
Use Windows Terminal Instead of Command Prompt Open Terminal from Any Folder
1. Download and install Windows Terminal from the Shift-right-click on the folder and select Terminal
Microsoft Store or GitHub. 2. Launch Windows Terminal. 3.
Click on the down arrow icon at the top of the window,
next to the plus sign, and select "Settings". 4. In the Get help from Terminal
"Settings" window, find the "defaultProfile" setting and
set its value to the GUID of the terminal you want to use help
as the default (e.g. PowerShell, Command Prompt, or WSL).
5. Save the settings and close the "Settings" window. 6. Use PowerShell for advanced tasks beyond Command
To open a new terminal window, press "Ctrl+Shift+T" or Prompt
click on the plus sign in the tab bar and select the
terminal you want to open. PowerShell is a powerful task automation and
configuration management framework from Microsoft,
consisting of a command-line shell and scripting
Using Windows Terminal, You Can Drag and Drop Files language. It can perform advanced tasks beyond the
to the Terminal When You Need the File Location capabilities of the Command Prompt.
1. Open Windows Terminal and navigate to the directory
where you want to run the command. 2. Oen File Explorer
and locate the file you want to get the location of. 3.
Drag and drop the file onto the terminal window, and the
full file path will be pasted into the terminal at the
current cursor position.