Solved

Linux cli exercises

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.

910 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

22 Experts available now in Live!

Get 1:1 Help Now