|
terrenblade posted:Thank you for this, I've been using spacemonger since the 90s and knew there had to be a better way. WinDirStat is the Windows equivalent of Disk Inventory X for macOS, by the way, which I believe came first. Not sure of any Linux variants, though.
|
# ? Nov 4, 2016 22:23 |
|
|
# ? May 10, 2024 15:51 |
|
MiniFoo posted:WinDirStat is the Windows equivalent of Disk Inventory X for macOS, by the way, which I believe came first. Not sure of any Linux variants, though. du -h --max-depth=1 is my Linux goto
|
# ? Nov 4, 2016 22:30 |
|
RFC2324 posted:du -h --max-depth=1 is my Linux goto find /somewhere -type d -mtime -1 | xargs du -sk | sort -rn | head -30 -print0/-0 as needed. lsof in case of deleted files still open.
|
# ? Nov 4, 2016 22:37 |
|
dogstile posted:poo poo that pisses me off: I'm not sure what the gently caress you are talking about here and it's pissing me off because I'm now invested.
|
# ? Nov 4, 2016 22:42 |
|
All my linux machines have this alias:code:
|
# ? Nov 4, 2016 22:43 |
|
xzzy posted:All my linux machines have this alias: Not to mention the fact that my way is available on servers without needing to configure them or type something long as hell, and when you have a farm of 10k of them, many of which you aren't allowed to configure that way, comes in pretty handy.
|
# ? Nov 4, 2016 22:48 |
|
Virigoth posted:I'm not sure what the gently caress you are talking about here and it's pissing me off because I'm now invested. His co-worker talked him into making an office meme that OP thought was remaining internal, and the co-worker posted it to reddit.
|
# ? Nov 4, 2016 22:50 |
|
Johnny Aztec posted:His co-worker talked him into making an office meme that OP thought was remaining internal, and the co-worker posted it to reddit. Well now we need to see it.
|
# ? Nov 4, 2016 22:53 |
|
RFC2324 posted:Not to mention the fact that my way is available on servers without needing to configure them or type something long as hell, and when you have a farm of 10k of them, many of which you aren't allowed to configure that way, comes in pretty handy. sort now has -h, so: $ du -h -x --max-depth 1|sort -h 852K ./cg 883M ./Downloads 1.2G ./.cache 3.0G .
|
# ? Nov 4, 2016 22:54 |
|
RFC2324 posted:Not to mention the fact that my way is available on servers without needing to configure them or type something long as hell, and when you have a farm of 10k of them, many of which you aren't allowed to configure that way, comes in pretty handy. Well, I wouldn't want to type either version of the command by hand a billion times. You can always define an alias on the fly and I do that a lot when investigating a node.
|
# ? Nov 4, 2016 22:54 |
|
xzzy posted:Well, I wouldn't want to type either version of the command by hand a billion times. I use the up arrow Or !527 if i have to do a bunch of commands between usage checks for some reason.
|
# ? Nov 4, 2016 22:59 |
|
RFC2324 posted:I use the up arrow ctrl-r is great for this once you've typed it once
|
# ? Nov 4, 2016 23:02 |
|
Linux nerds: my long rear end command is better than your long rear end command that does the same drat thing!
|
# ? Nov 4, 2016 23:08 |
|
Aquila posted:sort now has -h, so: This is what I love about command-chat: learn new things.
|
# ? Nov 4, 2016 23:12 |
|
RFC2324 posted:Linux nerds: my long rear end command is better than your long rear end command that does the same drat thing! Windows nerds: imgur album
|
# ? Nov 4, 2016 23:43 |
|
xzzy posted:All my linux machines have this alias:
|
# ? Nov 5, 2016 01:20 |
|
Virigoth posted:I'm not sure what the gently caress you are talking about here and it's pissing me off because I'm now invested. Sorry I was still in mad hate mode. A co-worker lied to me and told me that it'd be funny if a co-worker thought i was breaking a thing they'd given me to fix (personal, rather than work related). He took a picture and said he'd send it over to them. Turns out he never sent it to them, he posted the picture on reddit, posted a quote that never happened making me look like a dumb rear end in a top hat and you could quite clearly identify me in the picture. I'm not a massive fan of dumb poo poo that I do appearing online for a variety of reasons, so i've had to yell at him for being an idiot.
|
# ? Nov 5, 2016 01:30 |
|
anthonypants posted:How in the heck do you get by without the -h flag in your du command Well I apparently never looked at the sort man page to know it had a -h option, and using du -h messes up the sorting. So I just looked at the bottom of the results and did a rough conversion in my head.
|
# ? Nov 5, 2016 01:59 |
|
dogstile posted:Sorry I was still in mad hate mode. Yeah gently caress your co-worker for doing that.
|
# ? Nov 5, 2016 02:10 |
|
xzzy posted:Well I apparently never looked at the sort man page to know it had a -h option, and using du -h messes up the sorting. 'sort' now has -h which will sort the files by the human readable file size: code:
|
# ? Nov 5, 2016 02:12 |
|
MiniFoo posted:WinDirStat is the Windows equivalent of Disk Inventory X for macOS, by the way, which I believe came first. Not sure of any Linux variants, though. Kdirstat was the inspiration for Windirstat according to the site.
|
# ? Nov 5, 2016 05:52 |
|
dogstile posted:I'm not a massive fan of dumb poo poo that I do appearing online for a variety of reasons, so i've had to yell at him for being an idiot. It's a stupid thing to do for many more reasons, pretty sure in the employment law world it ticks a few of the "bad stuff" boxes.
|
# ? Nov 5, 2016 11:42 |
|
Had something neck-throbbing ragey happen at work. Within 24 hours, the (external) IT recruiter who knows the work friend I vented to reached out about an open position elsewhere, but more in line with what work friend is doing. I don't know whether to be , , or both.
|
# ? Nov 6, 2016 04:30 |
|
RFC2324 posted:du -h --max-depth=1 is my Linux goto code:
|
# ? Nov 6, 2016 13:38 |
|
OWLS! posted:
No it doesn't. du -sh calculates the total for the current directory, and shows a single line item, du -sh * would be much closer, but still is still way uglier.
|
# ? Nov 6, 2016 14:45 |
|
RFC2324 posted:No it doesn't. du -sh calculates the total for the current directory, and shows a single line item, du -sh * would be much closer, but still is still way uglier. Your command seems to miss "hidden" files that 'du -sh *' catches. I might have my globbing set to see hidden files and that might not be default, though.
|
# ? Nov 7, 2016 04:13 |
|
Mr. Fix It posted:Your command seems to miss "hidden" files that 'du -sh *' catches. I might have my globbing set to see hidden files and that might not be default, though. If I want a list of files I'll use ls -alh, use du for seeing directory disk usage.
|
# ? Nov 7, 2016 05:31 |
|
RFC2324 posted:If I want a list of files I'll use ls -alh, use du for seeing directory disk usage. But what if you want both at the same time?
|
# ? Nov 7, 2016 06:15 |
|
Mr. Fix It posted:But what if you want both at the same time? Then I'll craft a long and obscure one liner to collect and parse the data for me. Or just use du -sh * since that unusual situation is one time that would be superior. Right tool for the right job, but don't use a screwdriver to hammer a nail.
|
# ? Nov 7, 2016 06:21 |
|
RFC2324 posted:Then I'll craft a long and obscure one liner to collect and parse the data for me. Just for clarification, the ugly part is the glob *, right?
|
# ? Nov 7, 2016 07:06 |
|
Mr. Fix It posted:Just for clarification, the ugly part is the glob *, right? I would agree, yes. It just makes the whole thing feel wrong to me.
|
# ? Nov 7, 2016 15:21 |
|
I hate the Monday morning meetings here. 90% of them could be an email, and they feel like I'm back in junior high. Actually, anything that involves interacting with my department head makes me hate this job. Imagine the stereotypical HR lady. That's her. She talks all about the company's mission statement and cultural values and polices peoples' language to a ridiculous extent. The money is great, but I don't know if I would stay here even if they offered me a permanent position.
|
# ? Nov 7, 2016 16:56 |
|
just spent my morning dealing with one of the head-scratchiest e-mail chains. Here is the synopsis: "Hey I was messing with the build server and I can't send jobs to Jenkins anymore did you change anything?" "No" "I think you broke it" "No" repeat 3 times "I changed the IP back to the one it had originally and it works thanks!" This guy was asking me to update security groups in AWS and check network routes and getting huffy I wouldn't do it. I'm glad they figured it out after they CC'd in my big boss and their big boss and I kept telling them I didn't break it.... I even sent him to the change management page I keep for our Jenkins that has all the tickets for recent changes to the system.
|
# ? Nov 7, 2016 17:24 |
|
Well to be fair, anything that broke it wouldn't have been in a ticket because it would have been a "oh come on, this couldn't break anything, let's slot this one in" change. Speaking though of changing IPs, I am shocked by how often someone in our environment changes an IP, often to another subnet entirely, and is then confused why the server stopped working. Everything is blocked unless we have an ACL for it, so you can't just change an IP and expect it to work unless you've been parsing an ASA config, yet once a month a server drops off the map and we have to explain why their application broke.
|
# ? Nov 7, 2016 17:30 |
|
I don't understand why people seem to be randomly changing IP addresses of critical servers.
|
# ? Nov 7, 2016 18:01 |
|
Well the hackers found it on the previous location, got to keep them on their toes.
|
# ? Nov 7, 2016 18:11 |
|
The Fool posted:I don't understand why people seem to be randomly changing IP addresses of critical servers. I don't understand why they are ABLE to change IP addresses of any servers, much less critical ones.
|
# ? Nov 7, 2016 18:14 |
|
MDT PE doesn't boot while bitlocker is suspended. FML.
|
# ? Nov 7, 2016 19:23 |
|
RFC2324 posted:No it doesn't. du -sh calculates the total for the current directory, and shows a single line item, du -sh * would be much closer, but still is still way uglier. Uuh, so does du -h --max-depth=1. At least on Debian stable: code:
OWLS! fucked around with this message at 19:27 on Nov 7, 2016 |
# ? Nov 7, 2016 19:24 |
|
|
# ? May 10, 2024 15:51 |
|
OWLS! posted:Linux: at least our long commands are still shorter than powershell! At least Powershell commands are human readable.
|
# ? Nov 7, 2016 19:28 |