Discussion:
blkid command missing?
(too old to reply)
kaye n
2020-04-02 12:50:01 UTC
Permalink
Hello Friends!

***@laptop:~$ blkid
bash: blkid: command not found
***@laptop:~$ whereis blkid
blkid: /usr/sbin/blkid /usr/share/man/man8/blkid.8.gz

As you can see, blkid is present in a couple of directories but I cannot
run it.

Thank you for your time!
Roberto C. Sánchez
2020-04-02 13:00:01 UTC
Permalink
Post by kaye n
Hello Friends!
bash: blkid: command not found
blkid: /usr/sbin/blkid /usr/share/man/man8/blkid.8.gz
^^^^
Post by kaye n
As you can see, blkid is present in a couple of directories but I cannot
run it.
Thank you for your time!
Being that it is located in /usr/sbin and that on most systems /usr/sbin
is not in the PATH of unprivileged users, you should either add
/usr/sbin to your PATH or (more properly) use sudo or become root to run
blkid.

Regards,

-Roberto
--
Roberto C. Sánchez
Nate Bargmann
2020-04-02 13:00:01 UTC
Permalink
Post by kaye n
Hello Friends!
bash: blkid: command not found
blkid: /usr/sbin/blkid /usr/share/man/man8/blkid.8.gz
As you can see, blkid is present in a couple of directories but I cannot
run it.
As /usr/sbin is not in your user's $PATH by default, it is in root's
$PATH. You can use either sudo blkid or su to root to run such programs.

- Nate
--
"The optimist proclaims that we live in the best of all
possible worlds. The pessimist fears this is true."

Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819
Thomas Schmitt
2020-04-02 13:00:01 UTC
Permalink
Hi,
Post by kaye n
bash: blkid: command not found
blkid: /usr/sbin/blkid /usr/share/man/man8/blkid.8.gz
So /usr/sbin is not in your $PATH list of directories.

Try by absolute path

/usr/sbin/blkid

or by being the intended user of /usr/sbin

sudo blkid


Have a nice day :)

Thomas

Loading...