Programming Technology

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 output to a file.

dir /s /b > output.txt
Programming Technology

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.


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 format that history should be output in. Simply execute the following command.


Any subsequent call to history will show you the date and time.