1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-15 11:15:48 +02:00
tldr/pages.es/windows/get-content.md
Starsoon 82eb0aa1b6
pages.es/windows/*: add Spanish translation (#16716)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-07-20 09:46:34 +03:00

17 lines
581 B
Markdown

# Get-Content
> Obtiene el contenido del elemento en la ubicación especificada.
> Nota: Este comando solo se puede usar a través de PowerShell.
> Más información: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-content>.
- Muestra el contenido de un archivo:
`Get-Content -Path {{ruta\al\archivo}}`
- Muestra las primeras líneas de un archivo:
`Get-Content -Path {{ruta\al\archivo}} -TotalCount {{10}}`
- Muestra el contenido del archivo y sigue leyendo hasta que se presione `<Ctrl c>`:
`Get-Content -Path {{ruta\al\archivo}} -Wait`