Write a Linux shell script to perform the following tasks:
a. Display current date and time
b. Display current working directory
c. To check whether a sample file is a directory
d. Display details of all files/directories in current working directory
e. To check whether a sample file is readable, writable, and executable.