How to display a file name which has zero bytes in size.
Answer Posted / akula
ls -ltr | grep "^-" | sort -nk5 | head -1
or
ls -ltr | grep "^-" | sort -nk5 | head -1 | awk '{ print $9 }'
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is s and g in sed command?
What is .sh file?
What is the use of cut command in unix?
How do I search a whole word in vim?
Which command is used to delete all files in the current directory and all its sub-directories?
What do know about tee command?
What is the command to compare two files in unix?
How do I use nslookup?
What are bash commands?
What is “chmod” command?
Is ‘du’ a command? If so, what is its use?
Who command in unix operating system?
What is nr in awk command?
Why is grep called grep?
How to display no of records in oracle using unix command?