Solved

Linux cli exercises

Posted on 2011-03-14
2
340 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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

623 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