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 open a port?
What is a bash command?
What is the command to view process running?
How can we use grep command in unix?
Which unix command lists files/folders in alphabetical order?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
What does sed command do in unix?
How to use grep command to list find the records of a file containing 10 different strings?
What is merge command in unix?
How does shebang work?
How does pipe () work?
How do I use nslookup?
Which command should you use to find the remaining disk space in unix server?
What is awk good for?
Write a command that will display files in the current directory, in a colored, long format.