develop a single command line to achieve the task required : a) Print out the lo
ID: 3628969 • Letter: D
Question
develop a single command line to achieve the task required :
a) Print out the long listing (i.e. the kind of information generated by ls -l) of
the largest le (in terms of bytes) in the directory /usr/bin. Make use of the -S
option of ls in your solution.
(B) Perform the same task required by (b), but do not use the -S option of ls, though
you are still allowed to use ls.
(C) Find all the words in the dictionary le /usr/share/dict/linux.words that
contain all four lower-case characters that appear in the word “unix” (i.e. ‘u’, ‘n’,
‘i’, and ‘x’) in alphabetical order (e.g., “inux”)
Explanation / Answer
Dear, a) largest file in a directory:$ ls -S | head -1 b) largest file in a directory with out using -S option:
$ ls usr/bin/ | sort –nk5 | tail -1
I hope this would helpful..... I hope this would helpful.....
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.