[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Discovering alternative commands



On 06/01/2017 10:01 AM, Dan Ritter wrote:
On Thu, Jun 01, 2017 at 07:22:36AM -0500, Richard Owlett wrote:
I'm working on a problem that requires as input an association of disk
partitions and their "label" (in gparted sense).

I already have blkid and lsblk. They are obviously designed for different
purposes. They both _can_ supply the desired information. Neither is ideal
for me.

Two questions (one asking for fish, the other asking to be taught to fish):
1. what other commands should I look at?

Trivially, ls -al on /dev/disks/by* can show you a bunch of
things.

Started experimenting with that. Will require night's sleep and mug of coffee [in that order] to appreciate.


You are probably already aware of the contents of
/proc/partitions and /proc/mounts, but I'll mention them anyway.

Hadn't had any contact. I see serious reading in my future.





2. is there some reference that groups commands/programs by similarity?

Not as such, but...

apropos partition
  will tell you about installed commands which have a man page
  prominently mentioning the word "partition".

  In this case you would also want to run apropos against
  "label" and "block".

  running "man -k" is almost the same; apropos takes more
  options.

But reading about "man --global-apropos" gives me germs of ideas. Because I have minimal bandwidth, I purchase complete DVD set of each release. That means I've all possible man pages so I'm not limited to commands currently available on my system. And just happen to have a spare 400GB on which to place said man pages.




-dsr-





Reply to: