![]() ![]() Explore training and certification options.Now you can execute the file from anywhere on the system. 1 root root 11K Jan 6 15:32 /usr/bin/topdiskconsumer 'topdiskconsumer' -> storagetoolkit]$ ls -lh /usr/bin/topdiskconsumer ![]() ![]() Use sudo or root privileges to copy the file to /usr/bin or another system directory in the search path (or ~/.local/bin of the account you wish to run it from, if you do not want it in your system directory): $ sudo cp topdiskconsumer /usr/bin -v 1 klazarsk klazarsk 11K Jan 6 15:29 topdiskconsumerĩ. 1 klazarsk klazarsk 3.4K Jan 6 15:29 README.md List the files your username will own them: $ sudo chmod a+x storagetoolkit]$ ls -lh Enter sudo chmod a+x to ensure the script has execute privileges.Ĩ. Enter cd storagetoolkit to change to the subdirectory Git created for you.ħ. Open a terminal and change to the directory where you want to download the files.Ħ. Click the green CODE button above the file listings.Ĥ. Open the storagetoolkit repository in a web browser.Ģ. The installation process is straightforward. Install Top Disk Consumer Report Generator What makes me proud of it is that I have been able to teach junior engineers how to take information and tools they have and parse and reuse output to drive other tools. I still have my original version of this script, and if it weren't for how it grew organically and as a teaching tool for my mentees, I'd feel embarrassed at how bad the code is. I had always intended to rewrite it as a full command-line utility, including switches to turn off specific reports, timeouts, formatting options other than bbcode, and a help screen. However, apart from a variable ( intNumFiles) being assignable at the beginning of the script, it was entirely hard-coded and awkwardly parsed utilities like df to get specific stats in a very inefficient way. My little one-liner eventually grew into a 2.5KB behemoth and was widely used by customers of a large hosting company. I tacked on each feature as I needed to gather info to include in ticket updates to justify actions taken on servers. How well do you know Linux? Take a quiz and get a badgeĪ few years ago, I created this script and have maintained (and rewritten) it since. It was initially poorly coded, as it grew organically.Linux system administration skills assessment.A guide to installing applications on Linux.Download RHEL 9 at no charge through the Red Hat Developer program.This utility can be used for routine housekeeping, troubleshooting disk usage on production servers, and as a training tool for junior sysadmins. By running topdiskconsumer from any directory on the filesystem, it reports the overall free space, the largest files, directories, and older files, and deleted files with space still in use. This open source tool ( GPLv3) allows you to clear space with minimum detective work required. This is where my Top Disk Consumer Report Generator utility comes in handy. But when you need to clean up space quickly, you need a different type of utility to fill the gap. Tools like du and df will get you part of the way there. Whether you're a sysadmin by career or you're just dealing with a home business server in your broom closet that's running out of space, you probably need to find out where disk space is going to waste. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |