Tips on changing file permissions in bulk.

First command – changes all files under the current directory to 700 file mode.

find . -type d -exec chmod 0700 {} \;

Second command – changes all directories under the current directory to 600 mode.

find . -type f -exec chmod 0600 {} \;

The ‘history’ commands does not display the exact date and time of the commands executed. It just shows a numeric id followed by ┬áthe command executed by the current user. Here is one way of putting a time stamp –

# export HISTTIMEFORMAT=’%F %T >> ‘

To make sure that it works every time you login or restart your machine, put it in $HOME/.bash_profile