Skip to content

Commit 04747cc

Browse files
Create Evidence.md
1 parent 767baa5 commit 04747cc

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Sudo Execution History
2+
All the commands that are run on a Linux host using sudo are stored in the auth log. We can use the `grep` utility to filter out only the required information from the auth log.
3+
4+
## Bash History (~/.bash_history)
5+
The `~/.bash_history` file is a hidden file located in the user's home directory (~). It stores a history of commands that have been entered by the user in the Bash shell. Each line in the file typically represents a command that was executed in a previous session.
6+
7+
The Bash history file is managed by the shell itself, which automatically appends new commands to the file as they are entered. By default, the history file retains a certain number of recent commands, as specified by the `HISTSIZE` and `HISTFILESIZE` environment variables.
8+
9+
## Files Accessed Using Vim
10+
The ~/.viminfo file is a hidden file located in the user's home directory (~). It is used by the Vim text editor to store various information about Vim sessions, such as the history of commands, search patterns, marks, and other settings.
11+
Here's an example of what you might find in a ~/.viminfo file:
12+
```bash
13+
# This is a Viminfo file!
14+
'1000 1 4
15+
> %
16+
/Pattern
17+
```

0 commit comments

Comments
 (0)