4

ls command in Unix

view full story
linux-howto

http://www.linuxquestions.org – Hi all... I have a script that is in Unix. I wanted to know is there any difference between output of ls command in unix and linux In Unix Code: ls -ltr | awk '{print $9}' In linux output is something similar to Code: drwxrwxrwx 2 vinay vinay 4096 2010-02-04 20:31 test According to above output nothing will be displayed for Code: ls -ltr | awk '{print $9}' ls -ltr | awk '{print $8}' will give test as ouptut in Linux. I wanted to check the output format for ls -ltr, Anyone using Unix systems may paste a sample output of the command ls -ltr.. Thanks... (HowTos)