13 lines
252 B
Bash
Executable File
13 lines
252 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Inform the user of the output they can expect.
|
|
|
|
echo "common commands:"
|
|
|
|
|
|
# Show the most commonly used commands
|
|
tail ~/.bash_history -n 1000 \
|
|
| sort \
|
|
| uniq -c \
|
|
| sed 's/^ *//' \
|
|
| sort -n -r \
|
|
| head -n 10 |