-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.sh
More file actions
94 lines (61 loc) · 1.45 KB
/
user.sh
File metadata and controls
94 lines (61 loc) · 1.45 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/bin/bash
# Clear the terminall
clear
# Pause the terminal for 3 seconds
sleep 3
# Who am i loged in to this system as?
echo "I am loged in to this system as"
# Pause the terminal for 1.5 seconds
sleep 1.5
echo $USER
# Pause the terminal for 2.5 seconds
sleep 2.5
# Print my loged in shell
echo "Which shell"
# Pause the terminal for 1.5 seconds
sleep 1.5
echo $SHELL
# Pause the terminal for 2.5 seconds
sleep 2.5
# Print my present working directory
echo "My present working directory is"
# Pause the terminal for 1.5 seconds
sleep 1.5
pwd
# Pause the terminal for 2.5 seconds
sleep 2.5
# Print the calender of this month
echo "Calender of the month"
# Pause the terminal for 1.5 seconds
sleep 1.5
cal
# Pause the terminal for 2.5 seconds
sleep 2.5
# Print the date and time
echo "The Date of today & Time is"
# Pause the terminal for 1.5 seconds
sleep 1.5
date '+DATE: %B/%d/%Y%nTIME: %H:%M:%S'
# Pause the terminal for 2.5 seconds
sleep 2.5
# Print if the process was a success or not
echo "the process was"
# Pause the terminal for 1.5 seconds
sleep 1.5
if [ $? -eq 0 ]; then
echo SUCCESSFUL
else
echo FAILURE
fi
# Pause the terminal for 3 seconds
sleep 3
# List all files and folders
echo "Listing all Files & Folders"
# Pause the terminal for 1.5 seconds
sleep 1.5
ls -la | tree
# Pause the terminal for 3 seconds
sleep 3
echo "Have A Successful Study Session"
# Pause the terminal for 6 seconds
sleep 0.1m