# ---------------------------------- # Answer file: Exercise#1 - exercise01commands.sh # ---------------------------------- # -Ian! D. Allen - idallen@idallen.ca # Q4 the current date and time date # Q5 the current working directory pwd # Q6 list of online users in all-lower-case who | tr A-Z a-z # Q7 size in bytes of the Unix password file # (Note: Many ways to do this.) ls -l /etc/passwd | awk '{print $5}' # or wc -c /etc/passwd | awk '{print $1}' # or cat /etc/passwd | wc -c # or wc -c