os system¶
Check ubuntu version¶
$ cat /etc/os-release
Check shell¶
$ echo $SHELL
Change shell to bash¶
$ chsh -s /bin/bash
Check IP address¶
$ hostname -I
CPU cores¶
$ lscpu
GPU info¶
$ nvidia-smi
Memory info¶
$ free -h
Disk partition usage¶
$ df -h
Shutdown system¶
$ sudo halt
Restart system¶
$ sudo reboot