Solved

Linux cli exercises

Posted on 2011-03-14
2
334 Views
Last Modified: 2012-05-11
Hi Experts!

For a course I'm giving, I'm looking for some Linux CLI exercises. Something like:
"Find the dir, starting from /, wich contains the most (bytes), and list the 10 largest files from that dir, sorted from heavy->light, and numbered"
The answer should be something like:
sudo find `sudo du -cx --max-depth=1 | sort -g | tail -3 | head -1 | cut -f 2` -type f -exec du {} + | sort -gr | head -10 | cat -n
We're using Debian and/or Ubuntu.
I will share points between useful suggestions.
thanks!
0
Comment
Question by:wolfje_xp
  • 2
2 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
ID: 35127727
0
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 500 total points
ID: 35127877
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Over the years I've spent many an hour playing on hardened, DMZ'd servers, with only a sub-set of the usual GNU toy's to keep me company; frequently I've needed to save and send log or data extracts from these server back to my PC, or to others, and…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now