mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-15 11:15:48 +02:00

Co-authored-by: Darío Hereñú <magallania@gmail.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
17 lines
581 B
Markdown
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`
|