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 the comma to display different lines that are found when compare two files?
How do you grep recursively?
What does pipe () return?
How do I run a bash script?
What is updatedb?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What is command substitution?
How do I delete files from command prompt?
What do chmod, chown, chgrp commands do?
What is unix command?
Can you enlist some commonly used network commands?
Why is it called a shebang?
What does find command return in unix?
Explain command to show the space allocation of files?
What is the use of find command in unix?