Repository navigation
Expand file tree
/
Copy pathscript.sh
More file actions
48 lines (47 loc) · 1.43 KB
/
Copy pathscript.sh
File metadata and controls
48 lines (47 loc) · 1.43 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
45
46
47
48
#!/bin/bash
HISTFILE=~/.bash_history
#limit hisory to 100 lines
HISTSIZE=100
export HISTCONTROL=ignoredups:erasedups
set -o history
echo "Date: " > MaireMurphy.txt
date >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo "Hostname: " >> MaireMurphy.txt
hostname >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo "Hardware Architecture:" >> MaireMurphy.txt
arch >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo "System Information: " >> MaireMurphy.txt
uname -a >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo "System Uptime, Users & Load Average: " >> MaireMurphy.txt
uptime >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo "Username::: " >> MaireMurphy.txt
whoami >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo "Users currently logged in: " >> MaireMurphy.txt
who >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo "What current users are doing: " >> MaireMurphy.txt
finger >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo "What users working on :" >> MaireMurphy.txt
w >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo "System Summary: " >> MaireMurphy.txt
top -b -n 1 >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo " " >> MaireMurphy.txt
echo "History: " >> MaireMurphy.txt
history >> MaireMurphy.txt