Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using the man pages for ls, sort, and head as references, write a one-line script to list the details of the five largest files in
Using the man pages for "ls", "sort", and "head" as references, write a one-line script to list the details of the five largest files in the current directory. NOTE: You can NOT use the "S" option of "Is" command. Call the script "tp5.sh. Thus, you should be able to run your "tp5.sh" script to get an output similar to the following: and get a result like -rwxr-xr-x 1 root root 17935 May 9 2005 biggest-file drwxr-xr-x 2 root root 4096 Jan 22 15:40 tie-for-2a drwxr-xr-x 2 root root 4096 Dec 10 11:13 tie-for-2b drwxr-xr-x 2 root root 4096 Dec 10 11:13 tie-for-20 -rwxr-xr-x 1 root root 2371 Oct 31 2004 5th-largest
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started