root@app-01:~# whoami
root
root@app-01:~# pwd
/root
root@app-01:~# ls -la /
d????-??-? 1 root root 12288 Jan 1 2024 bin
d????-??-? 1 root root 4096 Jan 1 2024 boot
d????-??-? 1 root root 4096 Jan 1 2024 dev
d????-??-? 1 root root 4096 Jan 1 2024 etc
d????-??-? 1 root root 4096 Jan 1 2024 home
d????-??-? 1 root root 4096 Jan 1 2024 lib
d????-??-? 1 root root 4096 Jan 1 2024 lib64
d????-??-? 1 root root 4096 Jan 1 2024 media
d????-??-? 1 root root 4096 Jan 1 2024 mnt
d????-??-? 1 root root 4096 Jan 1 2024 opt
d????-??-? 1 root root 4096 Jan 1 2024 proc
d????-??-? 1 root root 4096 Jan 1 2024 root
d????-??-? 1 root root 4096 Jan 1 2024 run
d????-??-? 1 root root 4096 Jan 1 2024 sbin
d????-??-? 1 root root 4096 Jan 1 2024 srv
d????-??-? 1 root root 4096 Jan 1 2024 sys
d????-??-? 1 root root 4096 Jan 1 2024 tmp
d????-??-? 1 root root 4096 Jan 1 2024 usr
d????-??-? 1 root root 4096 Jan 1 2024 var
root@app-01:~# ps aux | head -10
PID TTY TIME CMD
1 ?...... 00:00:02 /sbin/init
445 ?...... 00:00:01 /usr/sbin/sshd -D
534 ?...... 00:00:03 /usr/sbin/nginx: master process
623 ?...... 00:00:00 /usr/sbin/cron -f
712 ?...... 00:00:01 /usr/sbin/mariadbd
845 ?...... 00:00:00 php-fpm: master process
925 ?...... 00:00:00 php-fpm: pool www
926 ?...... 00:00:00 php-fpm: pool www
1523 pts/0.. 00:00:00 -bash
root@app-01:~# history | tail -5
4 df -h
5 tail -f /var/log/nginx/access.log
6 ps aux | grep php
7 uptime
8 who
root@app-01:~# ssh -V
-bash: ssh: command not found
root@app-01:~# env | head -10
?=127
HOME=/root
HOSTNAME=app-01
LANG=C.UTF-8
LC_ALL=C.UTF-8
LOGNAME=root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/root
SHELL=/bin/bash
TERM=xterm-256color
root@app-01:~# hostname
app-01
root@app-01:~# uname -a
Linux app-01 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64 GNU/Linux
root@app-01:~# netstat -tulpn | head -10
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp6 0 0 :::80 :::* LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
tcp6 0 0 :::443 :::* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp6 0 0 :::3306 :::* LISTEN