Amazon interview question

loads of Unix based commands queations