-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject1.sh
More file actions
executable file
·46 lines (42 loc) · 892 Bytes
/
project1.sh
File metadata and controls
executable file
·46 lines (42 loc) · 892 Bytes
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
45
#!/bin/bash
#project1_page
echo "Project1_page"
#System Information
#basic system info
echo "Some basic system information: "
echo " "
echo $(uname -a)
echo " "
#memory information
echo "Information about the memory: "
echo " "
echo $(free -m)
echo " "
#Disk information
echo "Information about the disks: "
echo " "
echo $(df -h)
echo " "
#Users and their groups
echo "Information on the users: "
echo " "
echo $(id matthewesslie)
echo $(id alice)
echo $(id bob)
echo $(id charlie)
echo " "
#The primary IP Address
echo "The IP Address: "
echo " "
echo $(curl http://ifconfig.me/ip)
echo " "
#Report title
echo "The report title: "
echo "The day is: " $(date) "and you are: " $(whoami)
echo " "
#Additional Information
echo "Some additional information: "
echo "The hello.sh file is located in: "
echo $(locate projec1.sh)
echo "Some stats on hello.sh: "
echo $(stat project1.sh)