this post was submitted on 04 Jan 2025
119 points (98.4% liked)
Linux
48866 readers
891 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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
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
view the rest of the comments
Here is my personal approach to this.
I have set my bash history to a ridiculous 1000000 max length, so that I can use CTRL+R to search for commands that I have ran before
I write down a lot of commands in a searchable note text document
Ask chatGPT
Use the
tldr
commandAdded A LOT of verbose custom aliases and scripts. For example instead of
inotifywait -m -r --exclude "(/tmp.*|/var/cache.*|/dev/pts/|/var/log.*)" -e MOVED_TO -e CREATE -e CLOSE_WRITE -e DELETE -e MODIFY .
(nobody can remember that alphabet gibberish)I just type
watch_for_changes .
Since it is verbose, straight from my brain, I always remember it and it works with autocomplete. I have like ~30 such commands so far.
Rather than a text file, using a command snippet manager like pet might be more convenient.
That's an interesting little program. Not sure if it's for me - I'll either remember/lookup commands or create bash scripts for more complicated things - but it's good to know about.
Great concept, but I don't live in the terminal and prefer GUI text editor features (like jumping the cursor with a mouseclick).
The workflow on the git page looks extremely clunky compared to a good old textfile.