-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_history.txt
226 lines (225 loc) · 3.31 KB
/
bash_history.txt
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
visudo
cd /etc/yum.repos.d
df -k
pwd
cd ~
pwd
cat /etc/shadow
cd
cd .ssh
ls
ls -a
ssh-keygen
ls
cat id_rsa
ssh-keygen --help
ssh-keygen -b 4096
cat /etc/shadow
uname;id;hostname;cal
alias mycmds="uname;id;hostname;cal"
mycmds
cd
vi .bashrc
ls
ls -l
ls -lt
ls -ltr
ls
alias ls="ls -ltr"
ls
unalias ls
which ls
which cat
which more
ls -l
cd /bin
cd /sbin
cd /sbin
ls
ls | wc -l
cd /bin/
ls | wc -l
which zic
inffo tar
info tar
pinfo tar
nmcli connection show ens160
cd /etc
cd /bin
ls a
cd /bin*
ls a*
ls b*
ls *p
ls a*p
ls a* b* c*
ls abc*
ls [abc]*
ls [abtc]*
ls [a-m]*
ls [a-mr-v]*
ls [test]*
ls {sg,tpm}_*
ls {sg,tpm2}_*
ls a??
ls a?c*
ls
date
uname -a
uname -a > /tmp/result.log
date >> /tmp/result.log
cat /tmp/result.log
cal > /tmp/result.log
cat /tmp/result.log
ls -l 1> /tmp/result1.log
cat /tmp/result1.log
ls -l /etc/passwdd > /tmp/result1.log
ls -l /etc/passwd > /tmp/result1.log
cat /tmp/result1.log
ls -l /etc/shadoww >> /tmp/result1.log
cat /tmp/result1.log
ls -l /etc/shadoww 2>> /tmp/result1.log
cat /tmp/result1.log
ls -l /etc/a* 1> /tmp/result2.log 2> /tmp/result2.log
ls -l /etc/b* 1> /tmp/result2.log 2> /tmp/result2.log
ls -l /etc/bbbbb* 1> /tmp/result2.log 2> /tmp/result2.log
cat /tmp/result2.log
ls -l /etc/b* 1>> /tmp/result2.log 2>> /tmp/result2.log
ls -l /etc/a* 1>> /tmp/result2.log 2>> /tmp/result2.log
ls -l /etc/bbba* 1>> /tmp/result2.log 2>> /tmp/result2.log
cat /tmp/result2.log
ls -l /etc/bcbba* 1>> /tmp/result2.log 2>&1
ifconfig
vi /
vi /etc/hosts
hostname
h
ifconfig
free
systemctl start sshd
systemctl enable sshd --now
ls -l
cd
ls
su - student
cd /dev
cd /tmp
mkdir test
cd /test
cd test
ls
ls -a
ls -l
ls -la
cd .
cd .
cp /etc/passwd .
ls
cp /etc/passwd password
ls
cp /etc/passwd ./password
cp /etc/passwd ./password2
ls
touch .password3
ls
mkdir .report1
ls
ls -a
ls -l
\ls
\ls -a
pwd
cd
pwd
cd -
cd ~
cd -
cd ~student
pwd
cp /etc/passwd ~student/password2
ls ~student
grep wheel /etc/group
visudo
cat /etc/group
ls
ls -l
touch file1 file2 file3
echo "hello world" > file2
ls -l
touch file1 file2 file4
ls -l
touch file1 file2 file4
ls -l
touch jason wong
ls -l
rm jason wong
touch "jason wong"
ls -l
touch file.txt
touch peter\ pan
ls -l
vi jason\ wong
cat jason\ wong
history
ls -l /etc/bcbba* 1>> /tmp/result2.log 2>&1
cd /dev
ls -l
sudo su
ls .bash_history
catash_history
cat .bash_history
ls
head -n /etc/passwd
head -5 /etc/passwd
head -b 5 /etc/passwd
head -c 5 /etc/passwd
head -c 100 /etc/passwd
head -5 /etc/passwd
tail +5 /etc/shadow
tail -5 /etc/passwd
tail -f /var/log/messages
vi /etc/passwd
ping 192.168.64.128
vi fruits
vi /etc/profile
vi /etc/shadow
vi fruits
ls -l
cat /et/chosts
cat /etc/hosts
uname -a
nmcli connection show
hostname
ifconfig
cal 5 2024
history
ifconfig
hostnamectl hostname server.example.com
ifconfig
vi /etc/hosts
cat /etc/hosts
ping client
systemctl status sshd
systemctl enable sshd --now
systemctl status sshd
vi /etc/ssh/sshd_config
systemctl restart sshd
who
id
echo "hi there, i am monitoring u. dun pray pray" > /dev/pts/1
cat .ssh/authorized_keys
cut -d":" -f1,2 /etc/passwd
cut -d":" -f1,3 /etc/passwd
cut -d":" -f5,3 /etc/passwd
cut -d":" -f3,5 /etc/passwd
cut -d":" -f1,5 /etc/passwd
cut -d":" -f1,6 /etc/passwd
cat /etc/passwd
cut -d":" -f1,6 /etc/passwd
cat /etc/passwd
cut -d":" -f3,7 /etc/passwd
man cp
man ren
man rename
cat .bash_history