2022-12-24 17:42:40 +01:00
|
|
|
|
2022-12-24 17:09:22 +01:00
|
|
|
+++
|
2022-12-24 23:06:31 +01:00
|
|
|
date="2022-12-24"
|
2022-12-24 17:09:22 +01:00
|
|
|
author="spanskiduh"
|
|
|
|
title="system-information"
|
2022-12-24 17:42:40 +01:00
|
|
|
description="click to read about system-information"
|
2022-12-24 17:09:22 +01:00
|
|
|
+++
|
|
|
|
# System information
|
|
|
|
### Basic user enumeration
|
|
|
|
|
|
|
|
- `whoami` `hostname` - get username and hostname
|
|
|
|
- `id` - get information which group ids current user belongs to
|
|
|
|
- `groups $USER` - check groups
|
|
|
|
- `last` - check users that logged in recently
|
|
|
|
|
|
|
|
|
|
|
|
### Cpu, memory
|
|
|
|
- `lscpu` - show cpu information
|
|
|
|
- `free -h` - display memory usage
|
|
|
|
- `uname -p` or `uname -m` - show system architecture
|
|
|
|
- `uname -r` - see a running kernel
|
|
|
|
- `lsb_release -a` or `cat /etc/*release` - see running distribution
|
|
|
|
|
|
|
|
### Another useful tool `sysstat` package
|
|
|
|
- `iostat` - show current io (disk usage, cpu usage)
|
|
|
|
- `mpstat` - show current cpu usage (detailed)
|