mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-01 07:54:15 +00:00
Update cheatsheets
This commit is contained in:
37
tldr/windows/cl
Normal file
37
tldr/windows/cl
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# cl
|
||||
|
||||
> The Microsoft C/C++ compiler for compiling and linking source code files.
|
||||
> More information: <https://learn.microsoft.com/cpp/build/reference/compiler-command-line-syntax>.
|
||||
|
||||
- Compile a source file:
|
||||
|
||||
`cl {{path/to/source.c}}`
|
||||
|
||||
- Compile and create an executable with a custom name:
|
||||
|
||||
`cl /Fe {{path/to/output_executable}} {{path/to/source.c}}`
|
||||
|
||||
- Compile a source file with optimization enabled:
|
||||
|
||||
`cl /O2 {{path/to/source.c}}`
|
||||
|
||||
- Compile a source file and create a debug executable:
|
||||
|
||||
`cl /Zi {{path/to/source.c}}`
|
||||
|
||||
- Compile multiple source files:
|
||||
|
||||
`cl {{path/to/source1.c path/to/source2.c ...}}`
|
||||
|
||||
- Specify the output directory for compiled files:
|
||||
|
||||
`cl /Fo {{path/to/output_directory/}} {{path/to/source.c}}`
|
||||
|
||||
- Compile with warnings as errors:
|
||||
|
||||
`cl /WX {{path/to/source.c}}`
|
||||
33
tldr/windows/lib
Normal file
33
tldr/windows/lib
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# lib
|
||||
|
||||
> The Microsoft Library Manager for creating and managing static libraries of object files.
|
||||
> More information: <https://learn.microsoft.com/cpp/build/reference/lib-reference>.
|
||||
|
||||
- Create a static library from object files:
|
||||
|
||||
`lib /OUT :{{path/to/library.lib}} {{path/to/file1.obj path/to/file2.obj ...}}`
|
||||
|
||||
- List the contents of a library:
|
||||
|
||||
`lib /LIST {{path/to/library.lib}}`
|
||||
|
||||
- Add an object file to an existing library:
|
||||
|
||||
`lib {{path/to/library.lib}} {{path/to/file.obj}}`
|
||||
|
||||
- Remove an object file from a library:
|
||||
|
||||
`lib /REMOVE :{{path/to/file.obj}} {{path/to/library.lib}}`
|
||||
|
||||
- Extract an object file from a library:
|
||||
|
||||
`lib /EXTRACT :{{path/to/file.obj}} {{path/to/library.lib}}`
|
||||
|
||||
- Create an import library from a DLL:
|
||||
|
||||
`lib /DEF :{{path/to/definition.def}} /OUT:{{path/to/import.lib}}`
|
||||
41
tldr/windows/netsh-wlan
Normal file
41
tldr/windows/netsh-wlan
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# netsh wlan
|
||||
|
||||
> Manage wireless networks.
|
||||
> More information: <https://www.serverwatch.com/guides/netsh-commands/>.
|
||||
|
||||
- Show all available wireless networks:
|
||||
|
||||
`netsh wlan show networks`
|
||||
|
||||
- Connect to a wireless network with a specific SSID:
|
||||
|
||||
`netsh wlan connect name={{SSID}}`
|
||||
|
||||
- Disconnect from the current wireless network:
|
||||
|
||||
`netsh wlan disconnect`
|
||||
|
||||
- Show current wireless network interfaces and status:
|
||||
|
||||
`netsh wlan show interfaces`
|
||||
|
||||
- Export a wireless network profile to an XML file:
|
||||
|
||||
`netsh wlan export profile name={{SSID}} folder={{C:\path oolder}} key=clear`
|
||||
|
||||
- Delete a saved wireless network profile:
|
||||
|
||||
`netsh wlan delete profile name={{SSID}}`
|
||||
|
||||
- Enable hosted network (turn PC into Wi-Fi hotspot):
|
||||
|
||||
`netsh wlan set hostednetwork mode=allow ssid={{SSID}} key={{password}}`
|
||||
|
||||
- Start the hosted network:
|
||||
|
||||
`netsh wlan start hostednetwork`
|
||||
41
tldr/windows/nmake
Normal file
41
tldr/windows/nmake
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# nmake
|
||||
|
||||
> The Microsoft Program Maintenance Utility for building projects based on commands in a makefile.
|
||||
> More information: <https://learn.microsoft.com/cpp/build/reference/nmake-reference>.
|
||||
|
||||
- Build targets using the default makefile in the current directory:
|
||||
|
||||
`nmake`
|
||||
|
||||
- Build targets using a specific makefile:
|
||||
|
||||
`nmake /F {{path/to/makefile}}`
|
||||
|
||||
- Build a specific target:
|
||||
|
||||
`nmake {{target}}`
|
||||
|
||||
- Display commands without executing them:
|
||||
|
||||
`nmake /N`
|
||||
|
||||
- Display all macro definitions and target descriptions:
|
||||
|
||||
`nmake /P`
|
||||
|
||||
- Continue building unrelated targets on error:
|
||||
|
||||
`nmake /K`
|
||||
|
||||
- Build and ignore timestamp checks (force rebuild):
|
||||
|
||||
`nmake /A`
|
||||
|
||||
- Suppress copyright message:
|
||||
|
||||
`nmake /NOLOGO`
|
||||
Reference in New Issue
Block a user