-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic_system_info_list.sh
More file actions
executable file
·44 lines (40 loc) · 1.38 KB
/
Copy pathbasic_system_info_list.sh
File metadata and controls
executable file
·44 lines (40 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#! /bin/bash
#this script provides basic info about system & services
echo 'this script will provide you some basic information about the system you are working on & services: '
echo "you are working under $USER user & your default directory in shell is: $HOME "
echo '------------------------------'
echo 'your kernel & OS version are: '
uname -a
echo '------------------------------'
echo 'your system has been running for almost: '
uptime
echo '------------------------------'
echo 'your hostname is: '
hostnamectl
echo '------------------------------'
echo "you are using $SHELL shell by default: "
echo '------------------------------'
echo "here is the list of your files & directories in $PWD: "
ls -al
echo '------------------------------'
echo 'here is your timezone iformation: '
timedatectl status
echo '------------------------------'
echo 'here is services list which were not able to autostart: '
systemctl --state=failed
echo '------------------------------'
echo '------------------------------'
echo 'network information: '
ip a
echo '------------------------------'
ip route
echo '------------------------------'
echo '------------------------------'
echo 'Hardware list: '
sudo hwinfo --short
echo '------------------------------'
echo '------------------------------'
echo 'error logs'
sudo journalctl -p err
echo '------------------------------'
echo 'This is the end of the script'