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