The command history will print a list of the last (500 or so depending on the settings) commands that were executed in the shell.
you can do history |grep mkdir to search for any new directories made. However it will only work if the directory was made explicitly (i.e. by the user) and in the shell.
If you're running Zeitgeist you could use the following script:
You can use the
find
command, or fileschanged if you need to do it dynamically. The answers to a similar recent question may also help.The command
history
will print a list of the last (500 or so depending on the settings) commands that were executed in the shell.you can do
history |grep mkdir
to search for any new directories made. However it will only work if the directory was made explicitly (i.e. by the user) and in the shell.will run
command
on the most recently created file in the current working directory. Different quoting or escaping may be required for your shell.