Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

10. Are you a. a leader? b. a follower? _______

Answered: 1 week ago