# Comandos Windows S.0.

Para poder visualizar los archivos y listarlos utilizaremos...

```shell
dir
```

Actua como un `ls` en Linux...

Para poder leer archivos de texto en `Windows` utilizaremos...

```shell
type <FILE>.txt
```

Como si fuera un `cat` en Linux...

Para poder ver nuestros privilegios dentro de la maquina, seria de la siguiente manera...

```shell
whoami /priv
```

Y el objetivo es ser `Administradores` que es como ser `root` en Linux...

Para ver la informacion del usuario que tenemos de manera actual, en que grupos y cosas asi esta metido seria de la siguiente manera...

```shell
net user <USUARIO>
```

Para descargarte un archivo a tu `host` se podria hacer de la siguiente manera...

```shell
download C:\<PATH>
```

Las rutas tienen que ser de esa manera inidicando el disco y con las barras inversas...

Para ver los servicios que hay activos, se mira de la siguiente manera...

```shell
services
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dise0.gitbook.io/h4cker_b00k/windows/comandos-windows-s.0..md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
