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 can you see the command line history?
What is the use of the command 'ls -x chapter[1-5]' ?
Differentiate cat command from more command.
What does the metacharacter mean?
What is the comma to display different lines that are found when compare two files?
Explain mount and unmount command.
What are the unix commands?
How do you repeat a command in terminal?
Are you in or at the office?
What does the command ' $who | sort –logfile > newfile' do?
What is the search command in unix?
What are the differences among a system call, a library function, and a unix command?
What is unix command?
How to use grep command to list find the records of a file containing 10 different strings?
How does pipe () work?