this post was submitted on 23 Jul 2024
135 points (97.9% liked)

Linux

48144 readers
928 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
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 3 months ago (1 children)

Here's something I use to search history for commands or keywords. I have this as a function in my profile:

function hgr() {
    history | grep "$1"
}

history grep

Usage: hgr git to search for commands containing git.

Someone more knowledgeable may be able to point out ways to improve this.

[–] [email protected] 4 points 3 months ago* (last edited 3 months ago)

you can get a lot of the way there with Control+R reverse history search (mentioned in the article) -- and it's interactive. With fzf you can even get fuzzy history searching (the first search result has a video). atuin puts history into a proper db, optional syncs across hosts, and, like fzf, enhances control+r