this post was submitted on 25 Apr 2025
11 points (86.7% liked)

Linux

53508 readers
1781 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 5 years ago
MODERATORS
 
top 13 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 4 hours ago (1 children)

Looks like less to me. How did you open the file? Double click from file explorer? Then you need to check your default applications.

[–] [email protected] 3 points 4 hours ago (2 children)

It's less after I removed it, it revert itself back to normal

[–] [email protected] 7 points 3 hours ago

As others have said, less is super useful, you should keep it installed. There are better ways to open text files with your preferred editor than removing all alternatives.

[–] [email protected] 5 points 4 hours ago

Put EDITOR=youreditor in your env and keep less. Less is fine and it's usually default for man pages too.

[–] [email protected] 2 points 5 hours ago (2 children)

I could be mistaken, but that editor looks like nano, which is just a super simple text editor. Ctrl-x should bring quit the editor and ask if you want to save.

How were you editing PKGBUILD files before? A GUI based editor?

[–] [email protected] 2 points 4 hours ago

nano doesn't look like that afaik. It could be vi ? maybe emacs?

[–] [email protected] 2 points 4 hours ago (1 children)

It could be nano but I had to press Q to exit which is not nano key binding (Ctrl + X), I never edit PKGBUILD in terminal before, I'll edit it in Kate if I had to

[–] [email protected] 5 points 4 hours ago (1 children)

Idk how to revert it, but for me it looks like less

[–] [email protected] 1 points 4 hours ago (1 children)

Dude you're a time saver, it's actually less a text editor I never heard of before after I removed it PKGBUILD revert back to what it was before, it probably come with man page package I installed recently

[–] [email protected] 1 points 4 hours ago (1 children)

Another way to fix this, would have been to navigate to the pkgbuild file in question, right click, open with, Kate. I’m more familiar with Gnome than KDE but I assume there’s an option to make Kate your default for opening files of that type.

[–] [email protected] 1 points 4 hours ago

After my first comment i digged into the man page of paru and found that another, although temporary, way is to use -fm <command> flag

[–] [email protected] 1 points 4 hours ago* (last edited 4 hours ago) (1 children)

How did you open this? Maybe something overrode your default text editor application (look in settings for Default Applications).
Also maybe check your EDITOR env variable (echo $EDITOR), though that is only used when a different CLI program wants to open an editor for you (in CLI)

[–] [email protected] 1 points 4 hours ago

Another commenter said less and it's actually less doing this, it come with man package and set itself as default editor for PKGBUILD