Grub2-mkconfig command not found
Hi guys,
I’ve RHEL 7.4 and I did some changes in /etc/default/grub.cfg and want to update with grub2-mkconfig, when I’m ruining the command I’m getting command not found, I tried also grub-mkconfig Please advise |
Quote:
The reason grub-mkconfig doesn't work is because there is no such command. But, the grub2-mkconfig should work given that's the command you need. Given CentOS is basically the free version of RHEL and I can see it on my system; are you trying to to run it as root ? If so, post the output of the following command; Code:
ls -la /usr/sbin/grub2-mkconfig |
Quote:
|
as superuser, just enter
Code:
grub<Tab><Tab> failing that, it could also be Code:
update<Tab><Tab> |
Quote:
I've also already told them how to check if the command they do need is present on their system or not. Furthermore, CentOS/RHEL do not use sudo by default. |
Quote:
|
Quote:
|
so could that possibly mean "superuser"?
|
Quote:
From the man page; Quote:
|
i think it's fair to say that "superuser" is a term that does not point to sudo in any way.
as also the rest of my post #4 had merit. When the command is used without specifying the new user id as a command line argument, it defaults to using the superuser account (user id 0) of the system. and here we go again, going into a wildly ot argument. i wonder who you're going to blame this time? |
I made the point about sudo for the OP's benefit (and anyone else that reads this thread). So, yes, here we go again, because you decided to just assume that because other distributions use the "update-grub" script, that means that CentOS/RHEL also do.
The "root user" and sudo are not one of the same thing, although yes, you would obliviously use sudo to get root permissions. You can use the "su" command to switch to any user, although, yes, it's correct to my way of thinking to assume that it's usually the "root user" that you would "switch to" with the "su" command. And what I use to be root on my system - I'm not saying you're wrong about that particular point - but it doesn't have to be root though. |
Moderator response
I am sure that the OP appreciates the finite comments by everyone but I feel it could be better addressed by everyone;
Quote:
|
Member response
Hi,
My two cents; Quote:
Quote:
Everyone please note the underlined text above. Hope this helps. Have fun & enjoy! :hattip: |
my too cents
I just had to :rolleyes:
su refers to switch "switch user" whereas sudo stands for "switch user and do", more specifically, "switch user, refer to sudoers file to check what can be done with this user then do the command if is allowed" in other words, the sudo system (the sudo command and the sudoer file) is an evolved form of su as an attempt to provide a tool to administer the chaos of allowing users to become other users for tasks inside the system:scratch: no source, you will have to believe me :eek: :banghead: :twocents::hattip: |
All times are GMT -5. The time now is 10:57 AM. |