Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 73eee8b

Browse filesBrowse files
committed
Update readme
1 parent 49ffe7c commit 73eee8b
Copy full SHA for 73eee8b

File tree

Expand file treeCollapse file tree

1 file changed

+17
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+17
-7
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+17-7Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22

33
For running some of these commands, relevant package may need to be installed. It is recommended to run `man <command>` if details needed.
44

5-
## To check firewalls
5+
## Check firewalls
66

77
```sh
88
nmap <ip_address>
99
nmap -Pn <ip_address> # if ping is not allowed
1010
```
1111

12-
## To check sha256 checksum
12+
## Check sha256 checksum
1313

14-
source: <https://security.stackexchange.com/a/189004/199040>
14+
ref: <https://security.stackexchange.com/a/189004/199040>
1515

1616
```sh
17-
sha256sum <filename>_
17+
sha256sum <filename>
1818
```
1919

20-
## To check MD5 checksum
20+
## Check MD5 checksum
2121

2222
```sh
2323
md5sum <filename>
2424
```
2525

26-
## To empty a file
26+
## Empty a file
2727

2828
```sh
2929
: > <filename>
@@ -33,7 +33,7 @@ or
3333
echo > <filename>
3434
```
3535

36-
## To shred a file
36+
## Shred a file
3737

3838
```sh
3939
shred -vzu secrets.json
@@ -54,3 +54,13 @@ df -h
5454
docker system df -v
5555
docker ps -s
5656
```
57+
58+
## Recover corrupt zsh history file
59+
60+
ref: <https://superuser.com/a/957924/412139>
61+
62+
```sh
63+
mv .zsh_history .zsh_history_bad
64+
strings .zsh_history_bad > .zsh_history
65+
fc -R .zsh_history
66+
```

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.