24
submitted 1 day ago* (last edited 1 day ago) by RavenofDespair@lemmy.ml to c/linux@lemmy.ml

no command are working after i did this. i can still use the desktop and yes i fell silly

Acer Aspire ES1-533 Debian os

thanks for help :)

https://www.devopsroles.com/fix-grub-install-command-not-found-in-linux/

export PATH=/usr/sbin/grub-install/grub-install :/usr/local/sbin

source ~/.bashrc

you are viewing a single comment's thread
view the rest of the comments
[-] plantsmakemehappy@lemmy.zip 14 points 1 day ago* (last edited 1 day ago)

You didn't append this to your path, you just overwrote the whole value. You'll need to use full paths to commands to edit the file and fix it like export PATH="$PATH:/the/new/path/to/add"

[-] RavenofDespair@lemmy.ml 2 points 1 day ago

should it look like this export PATH=$PATH:/usr/sbin/grub-install

and should i edit the ~/.bashrc

[-] halfdane@lemmy.world 4 points 21 hours ago

I'm a little late to the party, but PATH should only consist of the directories, so it should look like this:

export PATH=$PATH:/usr/sbin/

[-] jokro@feddit.org 2 points 20 hours ago* (last edited 20 hours ago)

Also use "...", i.e. export PATH="$PATH:.." so that it won't break with whitespace in paths involved

[-] SchwertImStein@lemmy.dbzer0.com 1 points 10 hours ago

The guy I'm replying to means quotation marks (")

[-] halfdane@lemmy.world 3 points 19 hours ago

That's true, although I thought you're talking about including the dots into the path, which is absolutely not what anyone wants 😄

this post was submitted on 27 Dec 2025
24 points (100.0% liked)

Linux

57274 readers
830 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS