October 2012

Recursively list all files in Windows

  You’re probably familiar with dir, the windows command which lists all files in a certain directory. If you ever find the need (as I have) to recursively list every file in a directory, as well as all its sub-directories, you can do this by setting a couple of parameters on the dir command. dir /s /b Warning: This will output a lot of stuff, so I’d recommend piping the… Read More »Recursively list all files in Windows

Showing command history in UNIX with timestamps

A handy little command for checking the history of all commands executed through the UNIX command prompt for that user. history This will return you a numbered list of commands, oldest first. Note that by default, “history” will NOT show you timestamps, which can be very handy if investigating activity on a certain machine. To show history with timestamps, you’ll need to set up an evironment variable to store the… Read More »Showing command history in UNIX with timestamps