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 difference between cmp and diff commands?
Name the unix command to find how many days the server has been up.
How do I search for a file in unix command?
Explain the steps that a shell follows while processing a command.
How do I delete files from command prompt?
Using unix command how to display no of records in oracle?
Which command is used to restrict incoming messages?
What is the functionality of a top command?
Does cp command overwrite files?
Describe the zip/unzip command using gzip.
What is the function of grep command in unix?
What do know about tee command and its usage?
What is the comma to show the space allocation of files?
What is the command to find hidden files in the current directory?
What do know about tee command?