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
How do I search for text in vi?
Name the various commands that are used for the user information in unix.
Which command is used to find whether the system is 32 bit or 64 bit?
What is the first character of the output in ls l command?
What is the command to find maximum memory taking process on the server?
How does shebang work?
Write a command to display a file’s contents in various formats?
Explain ‘system calls’ with respect to unix commands?
What does awk stand for?
How can we use grep command in unix?
What is the pipe command?
What is the difference between cat and more command?
What is the use of awk command in unix?
What are the commands in UNIX to list the files in a Directory?
What does pipe () return?