Skip to content

Commit 17570e2

Browse files
committed
bashsysinfo_func.sh file added
1 parent 3a0dda2 commit 17570e2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

bashsysinfo_func.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env bash
2+
3+
# A System Information Gathering Script
4+
5+
#Command 1
6+
function uname_func() {
7+
#statements
8+
UNAME="uname -a"
9+
printf "Gathering System Information with the $UNAME command: \n\n"
10+
$UNAME
11+
}
12+
13+
#Command 2
14+
function disk_func() {
15+
#statements
16+
DISKSPACE="df -h"
17+
printf "Gathering diskspace Information with the $DISKSPACE command: \n\n"
18+
$DISKSPACE
19+
}
20+
21+
function main() {
22+
#statements
23+
uname_func
24+
disk_func
25+
}
26+
27+
main

0 commit comments

Comments
 (0)