Solved

Linux cli exercises

Posted on 2011-03-14
2
339 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSRS - Powershell 7 81
Unix Command (AIX) 3 49
SMTP log file for IMSVA 5 75
Bitcoin mining - Is it possible? 6 101
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

751 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