Skip to content

Commit f6e9083

Browse files
history cleanup fixes
1 parent 36f4d74 commit f6e9083

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

articles/virtual-machines/linux/suse-create-upload-vhd.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,15 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (Bring Your
167167
15. Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure:
168168

169169
```console
170+
rm -f ~/.bash_history # Remove current user history
171+
170172
sudo -i
171173
rm -rf /var/lib/waagent/
172174
rm -f /var/log/waagent.log
173175

174176
waagent -force -deprovision+user
175-
rm -f ~/.bash_history
177+
rm -f ~/.bash_history # Remove root user history
176178
177-
178179
export HISTSIZE=0
179180

180181
logout
@@ -274,8 +275,17 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (Bring Your
274275
12. Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure:
275276

276277
```console
277-
sudo waagent -force -deprovision
278+
rm -f ~/.bash_history # Remove current user history
279+
280+
sudo -i
281+
rm -rf /var/lib/waagent/
282+
rm -f /var/log/waagent.log
283+
284+
waagent -force -deprovision+user
285+
rm -f ~/.bash_history # Remove root user history
286+
278287
export HISTSIZE=0
288+
279289
logout
280290
```
281291

0 commit comments

Comments
 (0)