diff --git a/README.md b/README.md index 4360474..6fd5f77 100644 --- a/README.md +++ b/README.md @@ -1,158 +1,177 @@ -# windows-tips -## Renombrar archivos masivamente PowerShell -```sh -get-childitem -recurse | rename-item -NewName {$_.name -replace "procesado","" } -``` -## Copiar clave ssh a servidor linux -```sh -type $env:USERPROFILE\.ssh\id_rsa.pub | ssh suma@45.183.247.209 "cat >> .ssh/authorized_keys" -``` + # windows-tips + ## Renombrar archivos masivamente PowerShell + ```sh + get-childitem -recurse | rename-item -NewName {$_.name -replace "procesado","" } + ``` + ## Copiar clave ssh a servidor linux + ```sh + type $env:USERPROFILE\.ssh\id_rsa.pub | ssh suma@45.183.247.209 "cat >> .ssh/authorized_keys" + ``` -## Ocultar carpeta o archivo -```sh -attrib +h +s +r Esconder + ## Ocultar carpeta o archivo + ```sh + attrib +h +s +r Esconder -## Volvwe visibles -attrib -h -s -r Esconder -``` -## Mostrar propiedades de la red + ## volver visibles + attrib -h -s -r Esconder + ``` + ## Mostrar propiedades de la red -```sh -netsh wlan show profile "CHAPARRO" key=clear -``` -## Información HArdware -```sh -systeminfo -``` + ```sh + netsh wlan show profile "CHAPARRO" key=clear + ``` + ## Información Hardware + ```sh + systeminfo + ``` + + ## Abrir consola en el explorador + En la barra de navegacion escribir cmd y enter + + ## Abrir carpeta en el explorador desde la consola + + ```sh + explorer . + ``` + + ## Crear una inidad S: que apunta a una carpeta + ```sh + subst s: "C:\Users\80187452\Documents\pruebaCMD" + + ## Eliminarla + subst /d s: + + ``` + ## Cambiar Prompt + ```sh + prompt ¨:-)$G + ``` + + ## Crear codigo QR + ```sh + curl qrenco.de/https://unelectronica.github.io/ + ``` + + ### Eliminar temporales + ```sh + del /q /f /s %temp%\* + ``` + + ```sh + del /s /q C:\Windows\temp\* + ``` + + ## Historial + ```sh + doskey /history + ``` + + ## ipconfig + ```sh + ipconfig /release + ipconfig /renew + ipconfig /displaydns + ipconfig /flushdns + ipconfig /all | findstr DNS | clip + ``` + + **findstr** busca una cadena de texto y el comando **clip** copia al portapapeles + + ```sh + nslookup www.sumasas.com + ``` + Respuesta: + ```sh + Servidor: megacenter-cache-res.claro.net.co + Address: 190.157.8.108 + + Nombre: sumasas.com + Address: 35.188.185.14 + Aliases: www.sumasas.com -## Abrir consola en el explorador - . EN la barra de navegacion escribir cmd y enter -## Abrir carpeta en el explorador desde la consola - -```sh -explorer . -``` + ``` -## Crear una inidad S: que apunta a una carpeta -```sh -subst s: "C:\Users\80187452\Documents\pruebaCMD" + ```sh + nslookup -type=ptr www.sumasas.com | clip -## Eliminarla -subst /d s: + ``` + Respuesta: + ```sh + Servidor: megacenter-cache-res.claro.net.co + Address: 190.157.8.108 -``` -## Cambiar Promt -```sh -prompt ¨:-)$G -``` + www.sumasas.com canonical name = sumasas.com -## Clear codigo QR -```sh -curl qrenco.de/https://unelectronica.github.io/ -``` + sumasas.com + primary name server = ns-cloud-e1.googledomains.com + responsible mail addr = cloud-dns-hostmaster.google.com + serial = 1 + refresh = 21600 (6 hours) + retry = 3600 (1 hour) + expire = 259200 (3 days) + default TTL = 300 (5 mins) -### Eliminar temporales -```sh -del /q /f /s %temp%\* -``` + ``` -```sh -del /s /q C:\Windows\temp\* -``` + ## Reporte bateria + ```sh + powercfg /batteryreport -## Historial -```sh -doskey /history -``` + ``` -## Historial -```sh -ipconfig /release -ipconfig /renew -ipconfig /displaydns -ipconfig /flushdns -ipconfig /all | findstr DNS | clip -``` + ## Scaneo archivos del sistema + ```sh + sfc /scannow + ``` -**findstr** busca una cadena de texto y el comando **clip** copia al portapapeles + ### TaskList + Lista de tareas se puede usar en conbinación con **findstrl** -```sh -nslookup www.sumasas.com -``` -Respuesta: -```sh -Servidor: megacenter-cache-res.claro.net.co -Address: 190.157.8.108 + ### Taskkill /f /pid + Mata un proceso indicando el pid -Nombre: sumasas.com -Address: 35.188.185.14 -Aliases: www.sumasas.com + ### netsh + ```sh + netsh wlan show wlanreport + ``` -``` + ```sh + netsh interface show interface + ``` + ```sh + netsh interface ip show address + ``` -```sh - nslookup -type=ptr www.sumasas.com | clip - - ``` -Respuesta: -```sh - Servidor: megacenter-cache-res.claro.net.co -Address: 190.157.8.108 + ### NETSTAT -www.sumasas.com canonical name = sumasas.com + ```sh + netstat + ``` + + ```sh + netstat -af + ``` + + ```sh + netstat -o + ``` + + ```sh + netstat -e -t + ``` + + ```sh + route print + ``` -sumasas.com - primary name server = ns-cloud-e1.googledomains.com - responsible mail addr = cloud-dns-hostmaster.google.com - serial = 1 - refresh = 21600 (6 hours) - retry = 3600 (1 hour) - expire = 259200 (3 days) - default TTL = 300 (5 mins) + ## shuntdown + Reiniciar equipo + ```sh + shuntdown /r /f + ``` - - ``` - - ## Reporte bateria - ```sh - powercfg /batteryreport - - ``` + ### Convertir archivos md a pdf -## Scaneo archivos del sistema - ```sh - sfc /scannow - ``` - -### TaskList -Lista de tareas se puede usar en conbinación con **findstrl** - -### Taskkill /f /pid -Mata un proceso indicando el pid - -### netsh - - ```sh -netsh wlan show wlanreport -``` - - ```sh -netsh interface show interface -``` - ```sh -netsh interface ip show address -``` - -### NETSTAT - -``` netstat``` -``` netstat -af``` -``` netstat -o``` -``` netstat -e -t``` -``` route print``` - -## shuntdown -Reiniciar equipo -``` shuntdown /r /f ``` \ No newline at end of file + [https://products.groupdocs.app/es/conversion/md-to-pdf](https://products.groupdocs.app/es/conversion/md-to-pdf) \ No newline at end of file