talos/docs/osctl/osctl.md
Andrey Smirnov c24ce2fd5f feat: humanize timestamp and size in osctl list output
Fixes #1565

Examples:

```
$ osctl list -l
MODE          SIZE(B)   LASTMOD           NAME
drwxr-xr-x    4096      Dec 17 16:37:19   .
-rwxr-xr-x    0         Dec 17 16:37:19   .dockerenv
drwxr-xr-x    4096      Dec 17 16:35:20   bin
drwxr-xr-x    4096      Dec 17 16:37:20   boot
drwxr-xr-x    5480      Dec 17 16:37:19   dev
drwxr-xr-x    4096      Dec 17 16:37:19   etc
drwxr-xr-x    4096      Dec 17 16:35:19   lib
drwxr-xr-x    4096      Dec 17 16:35:21   mnt
drwxr-xr-x    4096      Dec 17 16:39:17   opt
dr-xr-xr-x    0         Dec 17 16:37:19   proc
drwxr-x---    4096      Dec  5 06:39:44   root
drwxr-xr-x    4096      Dec 17 16:39:06   run
drwxr-xr-x    4096      Dec 17 16:35:20   sbin
dr-xr-xr-x    0         Dec 17 16:37:19   sys
dtrwxrwxrwx   4096      Dec 17 16:38:05   tmp
drwxr-xr-x    4096      Dec 17 16:35:21   usr
drwxr-xr-x    4096      Dec 17 16:37:19   var
```

```
$ osctl list -lH
MODE          SIZE(B)   LASTMOD          NAME
drwxr-xr-x    4.1 kB    18 minutes ago   .
-rwxr-xr-x    0 B       18 minutes ago   .dockerenv
drwxr-xr-x    4.1 kB    20 minutes ago   bin
drwxr-xr-x    4.1 kB    18 minutes ago   boot
drwxr-xr-x    5.5 kB    18 minutes ago   dev
drwxr-xr-x    4.1 kB    18 minutes ago   etc
drwxr-xr-x    4.1 kB    20 minutes ago   lib
drwxr-xr-x    4.1 kB    20 minutes ago   mnt
drwxr-xr-x    4.1 kB    16 minutes ago   opt
dr-xr-xr-x    0 B       18 minutes ago   proc
drwxr-x---    4.1 kB    1 week ago       root
drwxr-xr-x    4.1 kB    16 minutes ago   run
drwxr-xr-x    4.1 kB    20 minutes ago   sbin
dr-xr-xr-x    0 B       18 minutes ago   sys
dtrwxrwxrwx   4.1 kB    17 minutes ago   tmp
drwxr-xr-x    4.1 kB    20 minutes ago   usr
drwxr-xr-x    4.1 kB    18 minutes ago   var
```

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-12-17 23:21:28 +03:00

51 lines
2.4 KiB
Markdown

<!-- markdownlint-disable -->
## osctl
A CLI for out-of-band management of Kubernetes nodes created by Talos
### Synopsis
A CLI for out-of-band management of Kubernetes nodes created by Talos
### Options
```
--context string Context to be used in command
-e, --endpoints strings override default endpoints in Talos configuration
-h, --help help for osctl
-n, --nodes strings target the specified nodes
--talosconfig string The path to the Talos configuration file (default "/home/user/.talos/config")
```
### SEE ALSO
* [osctl cluster](osctl_cluster.md) - A collection of commands for managing local docker-based clusters
* [osctl completion](osctl_completion.md) - Output shell completion code for the specified shell (bash or zsh)
* [osctl config](osctl_config.md) - Manage the client configuration
* [osctl containers](osctl_containers.md) - List containers
* [osctl copy](osctl_copy.md) - Copy data out from the node
* [osctl dmesg](osctl_dmesg.md) - Retrieve kernel logs
* [osctl docs](osctl_docs.md) - Generate documentation for the CLI
* [osctl gen](osctl_gen.md) - Generate CAs, certificates, and private keys
* [osctl install](osctl_install.md) - Install Talos to a specified disk
* [osctl interfaces](osctl_interfaces.md) - List network interfaces
* [osctl kubeconfig](osctl_kubeconfig.md) - Download the admin kubeconfig from the node
* [osctl list](osctl_list.md) - Retrieve a directory listing
* [osctl logs](osctl_logs.md) - Retrieve logs for a process or container
* [osctl memory](osctl_memory.md) - Show memory usage
* [osctl mounts](osctl_mounts.md) - List mounts
* [osctl processes](osctl_processes.md) - List running processes
* [osctl read](osctl_read.md) - Read a file on the machine
* [osctl reboot](osctl_reboot.md) - Reboot a node
* [osctl reset](osctl_reset.md) - Reset a node
* [osctl restart](osctl_restart.md) - Restart a process
* [osctl routes](osctl_routes.md) - List network routes
* [osctl service](osctl_service.md) - Retrieve the state of a service (or all services), control service state
* [osctl shutdown](osctl_shutdown.md) - Shutdown a node
* [osctl stats](osctl_stats.md) - Get processes stats
* [osctl time](osctl_time.md) - Gets current server time
* [osctl upgrade](osctl_upgrade.md) - Upgrade Talos on the target node
* [osctl validate](osctl_validate.md) - Validate config
* [osctl version](osctl_version.md) - Prints the version