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 time_t?
What is the command to view process running?
Which command is used to copy files?
Which command should you use to find the remaining disk space in unix server?
What does this command do? Cat food 1 > kitty
What is grep command in unix with examples?
What does the command '$ls | wc –l > file1' do?
Which unix command lists files/folders in alphabetical order?
What are bash commands?
What does grep v grep do?
Which command is used to create a directory?
What is a command and examples?
What does find command return in unix?
What is the function of grep command in unix?
What does this command do,"$more readme.txt“?