Display disk partition sizes

lsblk | grep -v part | awk '{print $1 "\t" $4}'
It is the same but more faster real 0m0,007s user 0m0,011s sys 0m0,000s with my solution real 0m0,038s user 0m0,044s sys 0m0,000s with your solution :)
Sample Output
loop0	55,5M
loop1	55,5M
loop2	42,2M
loop3	43,3M
loop4	18,4M
loop5	61,9M
loop6	18,4M
loop7	61,9M
sda	55,9G
sdb	298,1G
sr0	1024M

By: gecco
2022-01-11 13:31:04

1 Alternatives + Submit Alt

What Others Think

Get raw values. Easier to parse or sort. lsblk --json | jq -r '.blockdevices[]| "\(.name) \(.size)"'
researcher7l500 · 1 week and 1 day ago
Buying vietlott lottery online is a new era 4.0 trend. Tickets will be printed and recorded to verify your CCCD/CMT information, so winning big prizes can only be received by you, so you can rest assured and trust! vsmb.vn
carriedporras20 · 1 week ago
She finally became an excellent workplace. This film tells the story of a female college student who has just left school and entered a top fashion magazine as an assistant to the editor-in-chief. It is worth mentioning that all the props in the film are real, whether it is a computer, a mobile phone, or clothes or shoes.I chose the limited edition at that time and the latest edition of the season. https://www.sitenetweb.com A very interesting website
sitenetwebo · 6 days ago
business pages [url=https://www.sitenetweb.com/voipphone]voip phone service[/url] A very interesting website
sitenetwebo · 6 days ago
Become a gangstar in Las Vegas, play Gangstar Vegas MOD APK and experience the feeling of being a thief.
jeanette224 · 4 days ago
This is truly a decent and useful, containing all data furthermore greatly affects the new innovation. A debt of gratitude is in order for sharing it. Financial Advisors
SEOBallia · 3 days ago
google test
LeonaHardy · 2 days ago
I found the best LeonaHardy · 2 days ago
I found the best LeonaHardy · 2 days ago
Your post has those facts which are not accessible from anywhere else. It’s my humble request to u please keep writing such remarkable articles. CDB Design and Build Real Estate in Virginia Real Estate in Tysons Corner
SEOBallia · 2 days ago
Things are very open and intensely clear explanations of issues. Your website is very beneficial. smm panel india
smmpanels · 2 days ago
What a useful command. I really thankful you shared this with us. moab utah vacation rentals by owner
noahrods0808 · 2 days ago
Wow, this is fascinating reading. I am glad I found this and got to read it. Great job on this content. I liked it a lot. Thanks for the great and unique info. Licensed Real Estate Agent Miami Real Estate
SEOBallia · 1 day ago
Hey, thank you so much for this help did you know Nulls clash also just like this https://nullsclash.net/clash-of-clans-mod-apk/
gochi88 · 1 day ago
Sorry It's was just a mistake http://nullsclash.net/clash-of-clans-mod-apk/
gochi88 · 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Similar Commands

Partition a new disk as all one partition tagged as LINUX_NATIVE

Mount a partition from within a complete disk dump

Partition a new disk as all one partition tagged as

Mount a partition from dd disk image

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: