linux Linux Beginners Guides
Jump
  • learnbyexample learnbyexample 3 weeks ago 100%

    I have a list of learning resources for CLI tools and scripting here: https://learnbyexample.github.io/curated_resources/linux_cli_scripting.html

    I've also written a few TUI interactive apps to practice text processing commands like grep, sed, awk, coreutils, etc: https://github.com/learnbyexample/TUI-apps

    1
  • linux Linux I wrote a Vim Reference Guide (beginner to intermediate level)
    Jump
  • learnbyexample learnbyexample 4 weeks ago 100%

    Why do you think it is a phishing link? Gumroad is a well known platform to sell digital goods.

    I mention it is free up to some date because it will go back to being a paid product after that.

    1
  • linux
    Linux learnbyexample 4 weeks ago 98%
    I wrote a Vim Reference Guide (beginner to intermediate level)

    Hello! I am pleased to announce a new version of my **Vim Reference Guide** ebook. This is intended as a concise learning resource for beginner to intermediate level Vim users. It has more in common with cheatsheets than a typical text book. Topics like Regular Expressions and Macros have more detailed explanations and examples due to their complexity. I hope this guide would make it much easier for you to discover Vim features and learning resources. Links: * Web version: https://learnbyexample.github.io/vim_reference/ * PDF/EPUB versions: https://learnbyexample.gumroad.com/l/vim_reference_guide (FREE till 31-Aug-2024) * Markdown source: https://github.com/learnbyexample/vim_reference * Video demos: https://www.youtube.com/playlist?list=PLTv2U3HnAL4NN2tK-59ZiNBm-o64-Yvos Did you know that Vim has an *easy* mode, which is actually very hard to use for those already familiar with Vim? See my [blog post](https://learnbyexample.github.io/mini/vim-prank/) for more details! I would highly appreciate it if you'd let me know how you felt about this book. It could be anything from a simple thank you, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn't!) and so on. Reader feedback is essential and especially so for self-published authors. Happy learning :)

    134
    12
    linux
    Linux learnbyexample 1 month ago 90%
    Basic examples for the Linux date command https://learnbyexample.github.io/mini/linux-date-command-examples/

    I rarely ever use the `date` command, but when I need it I almost always struggle to get the right incantation. So, wrote a blog post for easy reference. Do you use a cheatsheet as well?

    25
    16
    books Books What's everyone reading lately? 08/06/2024)
    Jump
  • learnbyexample learnbyexample 1 month ago 100%

    I started reading progression fantasy on Royal Road earlier this year (a site for posting web serials). Here's my current follow list (excluding stories that are on hiatus):

    • The Runic Artist — isekai, rune-based crafting, good mix of action and slice-of-life
    • The Broken Knife — Kobold MC with a dragon companion, dark but compelling read, excellent worldbuilding
    • Demon World Boba Shop — cozy isekai, nice characters
    • Dual Wielding — slow burn, tale of two friends (both very talented), writing is good, action scenes get dark and intense
    • Legends and Librarians — cozy romance, magical library (not litrpg/progression), plenty of cute creatures
    • An Otherworldly Scholar — isekai, teacher MC, good worldbuilding, nice romance, great characters, plenty of twists, adventure and danger, especially enjoyed the slice-of-life stuff
    • Archmage from Another World: Gaining Administrator Access — isekai from another fantasy world, lighthearted fun with good set of characters, no looming world-level threats so far
    • Underkeeper — MC is a recent magical academy graduate, good at magic but works as underkeeper (no money/connections to join adventurer groups), got darker than I'm comfortable with, but loved the characters and the demon companion
    • Immovable Mage — good worldbuilding, characters, plot twists and detailed magic system, clever use of plot events pushes MC towards OP, would suggest to read at least till the end of 2nd arc
    • Level One God — likeable MC, cool magic stuff I haven't seen before, some bad moments are really dark, good writing
    • Spire's Spite — criminally underrated with only 100+ followers, mostly been spire climbing so far, good magic system, dark and has some stuff I don't like but overall I've enjoyed it
    • Blood Curse Academia — overall I enjoyed the combination of action, learning and mystery, but a lot of weird coincidences and stuff didn't make sense
    • Mana Mirror — loved the concept of mana garden and the myriad customization options, writing and plot was easy to follow, third volume is the best so far
    • The Maid Is Not Dead — writing felt like traditionally published epic fantasy with progression elements, slow burn but events are starting to escalate
    • Dark Lord's Last Call — MC's soul is swapped with the dark lord, plans to open a tavern, enjoyable light-hearted read
    • Orphan — I usually ignore the litrpg math but this one takes it a bit too far! characters all have flaws (though sometimes it becomes a bit too irritating), good worldbuilding and mystery
    • Rules of Biomancy — 70 year old herbalist MC with a secret past comes across two isekai-ed people in danger of dying and decides to help, enjoying a lot
    3
  • python
    Python learnbyexample 2 months ago 100%
    Interactive TUI app with 100+ Python re(gex)? exercises github.com

    I wrote a TUI application to help you practice Python regular expressions. There are more than 100 exercises covering both the builtin `re` and third-party `regex` module. If you have `pipx`, use `pipx install regexexercises` to install the app. See the repo for source code and other details.

    29
    3
    programming Programming A Logical Way to Split Long Lines
    Jump
  • learnbyexample learnbyexample 3 months ago 100%

    Not my blog, just sharing it here.

    That said, I don't see that broken rectangle on Chromium.

    1
  • linux Linux I wrote a book on Linux command line tools and Shell Scripting (beginner to intermediate level)
    Jump
  • learnbyexample learnbyexample 4 months ago 100%

    Is it regex or sed/awk syntax (or both) that gives you trouble?

    I had similar reaction and didn't even try to learn them for years - then I caught the stackoverflow craze of answering CLI questions (and learning from others).

    2
  • linux
    Linux learnbyexample 4 months ago 99%
    I wrote a book on Linux command line tools and Shell Scripting (beginner to intermediate level)

    Hello! I am pleased to announce a new version of my **Linux Command Line Computing** ebook. This ebook aims to teach Linux command line tools and Shell Scripting for beginner to intermediate level users. The main focus is towards managing your files and performing text processing tasks. Plenty of examples are provided to make it easier to understand a particular tool and its various features. There are 200+ exercises to help you practice what you've learned and solutions are provided for reference. I hope this ebook would make it easier for you to discover CLI tools, features and learning resources. Links: * Free PDF/EPUB: https://learnbyexample.gumroad.com/l/cli_computing (till 9-June-2024) * Web version: https://learnbyexample.github.io/cli-computing/ * Markdown source, exercise solutions, etc: https://github.com/learnbyexample/cli-computing * Short video about the book: https://youtu.be/vedRFbWwx_c I would highly appreciate it if you'd let me know how you felt about this book. It could be anything from a simple thank you, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn't!) and so on. Reader feedback is essential and especially so for self-published authors. Happy learning :)

    204
    9
    linux Linux What are your must-have programs?
    Jump
  • learnbyexample learnbyexample 4 months ago 100%

    oxipng, pngquant and svgcleaner for optimizing images

    auto-editor for removing silent portions from video recordings

    9
  • linux Linux How terminal works
    Jump
  • learnbyexample learnbyexample 4 months ago 100%

    Not my blog, just sharing it here. Saw it on HN (https://news.ycombinator.com/item?id=40419325)

    2
  • linux
    Linux learnbyexample 5 months ago 99%
    I wrote an interactive TUI app that gives a brief tour of the `GNU awk` command for beginners github.com

    Let me know your feedback, especially if you haven't learned `awk` yet!

    110
    5
    linux Linux Improving shell workflows with fzf
    Jump
  • learnbyexample learnbyexample 5 months ago 100%

    What's the difference between two_percent and skim?

    1
  • opensource Open Source What apps would you love to have open-source alternatives for?
    Jump
  • learnbyexample learnbyexample 5 months ago 100%

    Check out https://novelwriter.io/

    I'm not familiar with such softwares (I use pandoc for technical writing), but might help you..

    3
  • linux Linux CLI text processing with GNU Coreutils (head, tail, tr, sort, paste, pr, join, etc)
    Jump
  • learnbyexample learnbyexample 5 months ago 100%

    Yeah, it is uncommon spelling, but if you google, you'll find it's not that rare ;)

    3
  • linux Linux CLI text processing with GNU Coreutils (head, tail, tr, sort, paste, pr, join, etc)
    Jump
  • learnbyexample learnbyexample 5 months ago 100%

    You're welcome, happy learning :)

    2
  • linux Linux CLI text processing with GNU Coreutils (head, tail, tr, sort, paste, pr, join, etc)
    Jump
  • learnbyexample learnbyexample 5 months ago 100%

    I'm self-published and haven't worked for other publications. Sometimes, my submissions reach HN front page, so you might have seen there or because others picked it up from there and shared around elsewhere.

    3
  • linux
    Linux learnbyexample 6 months ago 94%
    CLI text processing with GNU Coreutils (head, tail, tr, sort, paste, pr, join, etc)

    Hello! I am pleased to announce a new version of my **CLI text processing with GNU Coreutils** ebook. This ebook will help you learn 20+ specialized text processing commands provided by the coreutils package. ![Cover image](https://programming.dev/pictrs/image/47ab89da-1607-4677-8eff-4d60fcbb8e84.png) This book heavily leans on examples to present features one by one. Exercises at the end of chapters will help you practice what you've learned and solutions are also provided for reference. External links are provided for further reading. Links: * Free PDF/EPUB: https://learnbyexample.gumroad.com/l/cli_coreutils (till 10-Apr-2024) * Web version: https://learnbyexample.github.io/cli_text_processing_coreutils/ * Markdown source, exercise solutions, etc: https://github.com/learnbyexample/cli_text_processing_coreutils * Short video about the book: https://youtu.be/oCnJLu_PUbY * Interactive TUI app: https://github.com/learnbyexample/TUI-apps/tree/main/CLI-Exercises (includes some coreutils exercises) I would highly appreciate it if you'd let me know how you felt about this book. It could be anything from a simple thank you, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn't!) and so on. Reader feedback is essential and especially so for self-published authors. Happy learning :)

    74
    8
    linux Linux Vim prank: alias vim='vim -y'
    Jump
  • learnbyexample learnbyexample 6 months ago 100%

    As per the manual, "Mappings are set up to work like most click-and-type editors" - which is best suited with GUI Vim.

    While Vim doesn't make sense to use without the modes, there are plugins like https://github.com/tombh/novim-mode!

    22
  • linux
    Linux learnbyexample 6 months ago 94%
    Vim prank: alias vim='vim -y' learnbyexample.github.io

    Did you know that Vim has an **Easy mode**? It's the *hardest* mode for those already familiar with Vim 🙃

    146
    22
    linux Linux CLI text processing with grep, sed, awk, perl and ruby
    Jump
  • learnbyexample learnbyexample 7 months ago 100%

    I had to learn Linux CLI tools, Vim and Perl at my very first job. Have a soft spot for Perl, despite not using it much these days other than occasional one-liners (mainly for advanced regex features).

    5
  • linux Linux CLI text processing with grep, sed, awk, perl and ruby
    Jump
  • learnbyexample learnbyexample 7 months ago 100%

    Thanks a lot for the kind words! Means a lot to me :)

    3
  • linux Linux CLI text processing with grep, sed, awk, perl and ruby
    Jump
  • learnbyexample learnbyexample 7 months ago 100%

    Thanks! 😊

    2
  • linux
    Linux learnbyexample 7 months ago 92%
    CLI text processing with grep, sed, awk, perl and ruby

    Hello! I've been working on updating my ebooks for the past year or so. Last week, I finished the changes for Ruby one-liners ebook. My main motivation was to catch up to any features added in newer versions of these tools, correcting typos, better examples, descriptions, etc. I've also added a few more exercises. You can read these books online: * [CLI text processing with GNU grep and ripgrep](https://learnbyexample.github.io/learn_gnugrep_ripgrep/) * [CLI text processing with GNU sed](https://learnbyexample.github.io/learn_gnused/) * [CLI text processing with GNU awk](https://learnbyexample.github.io/learn_gnuawk/) * [Perl One-Liners Guide](https://learnbyexample.github.io/learn_perl_oneliners/) * [Ruby One-Liners Guide](https://learnbyexample.github.io/learn_ruby_oneliners/) ## Free PDF/EPUB bundle You can get my **Magical one-liners** bundle for free till the end of this month. This bundle contains PDF/EPUB versions of the five ebooks mentioned above. * [Gumroad](https://learnbyexample.gumroad.com/l/oneliners) * [Leanpub](https://leanpub.com/b/oneliners/c/new_release) ## TUI apps for interactive exercises I also used Textual (Python framework) to create TUI apps. These will help you solve exercises for grep, sed and awk interactively. You can also use any other CLI tool like ripgrep, perl, ruby, etc to solve these questions (as long as the command output matches the expected results). See my GitHub repo [https://github.com/learnbyexample/TUI-apps](https://github.com/learnbyexample/TUI-apps) for installation, screenshots and other details. ## Feedback I would highly appreciate it if you'd let me know how you felt about these books. It could be anything from a simple thank you, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn't!) and so on. Reader feedback is essential and especially so for self-published authors. Happy learning :)

    46
    8
    books Books What are you reading??
    Jump
  • learnbyexample learnbyexample 7 months ago 100%

    I'm a bit active on book-related forums. I post reviews of books I've read, give book recommendations, etc. In this case, the author contacted me based on my reviews.

    2
  • books Books What are you reading??
    Jump
  • learnbyexample learnbyexample 7 months ago 100%

    Like alpha, beta, gamma readers. Used by authors to get feedback at various stages of their book before it is published. Alpha stage is very rough, like first draft. Not sure where the line lies between beta and gamma stage, but they are close to finished works - only typos and minor changes would be made based on reader feedback.

    For indie authors, beta readers often help to get a few reviews out close to book publication.

    2
  • books Books What are you reading??
    Jump
  • learnbyexample learnbyexample 7 months ago 100%

    I'm doing a beta-read. Well written, great ideas, etc. Unfortunately, the book is turning out to be much darker than I'm comfortable with. I'll probably try to get to the halfway point before deciding to give up.

    2
  • books Books Easy book to resume reading?
    Jump
  • learnbyexample learnbyexample 8 months ago 100%

    Bobiverse by Dennis E. Taylor is a fun and easy read

    8
  • programming Programming Algorithms for Competitive Programming
    Jump
  • learnbyexample learnbyexample 8 months ago 100%

    See also: https://github.com/pllk/cphb (Competitive Programmer's Handbook)

    4
  • books Books Looking for something new to read after The Expanse
    Jump
  • learnbyexample learnbyexample 9 months ago 100%

    Stormlight Archives can be daunting to those not familiar with Sanderson's works, especially since the books are long (1000+ pages) and the first book is setting up a long 10-book series (plus other stuff from a wider universe).

    If you'd like something smaller and standalone to try first, check out "Emperor's Soul" (novella) or Warbreaker (novel).

    2
  • books Books Looking for something new to read after The Expanse
    Jump
  • learnbyexample learnbyexample 9 months ago 100%

    +1 for Murderbot!

    3
  • books Books Do you guys have any book reading goals for next year?
    Jump
  • learnbyexample learnbyexample 9 months ago 100%

    True, perhaps a case of doing too much of anything over a long period ;)

    1
  • books Books Do you guys have any book reading goals for next year?
    Jump
  • learnbyexample learnbyexample 9 months ago 66%

    When I was younger, I'd read slowly, trying to visualize the setting, keep track of character preferences, look up words I don't know, etc. I'd remember a book well enough to talk about it even a year or so after.

    These days, I just skim over descriptions and read as fast as I could while still getting the main plot. I get attached to characters only if the book is really good and savor them during rereads.

    1
  • books Books Do you guys have any book reading goals for next year?
    Jump
  • learnbyexample learnbyexample 9 months ago 66%

    I mostly read fantasy and sci-fi, which tend to have multiple books in a series. If they are easy-to-read and short (300-400 pages per book), it becomes easy to consume. Also, I read for escapism, so I don't read too closely.

    1
  • books Books Do you guys have any book reading goals for next year?
    Jump
  • learnbyexample learnbyexample 9 months ago 100%

    Hopefully less than this year. I'm reading too many (100+) and that's reflecting in my reduced time on actual work (self-employed).

    4
  • python Python Looking for tutorials
    Jump
  • learnbyexample learnbyexample 9 months ago 100%

    I have a list of curated resources here: https://learnbyexample.github.io/py_resources/

    There are sections for beginners, intermediate, advanced, etc. Also included are exercises, projects, debugging, testing, and many more stuff. Hope it helps :)

    6
  • regex RegEx Regex Crossword
    Jump
  • learnbyexample learnbyexample 10 months ago 100%

    See also: https://jimbly.github.io/regex-crossword/

    For Python, I wrote a TUI app with 100+ interactive exercises: https://github.com/learnbyexample/TUI-apps/blob/main/PyRegexExercises (covers both re and regex modules)

    3
  • books Books A good fantasy book? you know, wizards, dragons, princesses, that kind of stuff
    Jump
  • learnbyexample learnbyexample 11 months ago 100%

    +1 for Cradle already mentioned. I'd add

    • The Riyria Revelations by Michael J. Sullivan
    • Kings of the Wyld by Nicholas Eames
    11
  • javascript JavaScript Understanding JavaScript RegExp with hundreds of examples and exercises
    Jump
  • learnbyexample learnbyexample 11 months ago 100%

    It's the name of the constructor, for example:

    const pat1 = new RegExp(`42//?5`)
    

    So, I used that in the book name.

    4
  • linux Linux Perl One-Liners Guide with plenty of examples and exercises
    Jump
  • learnbyexample learnbyexample 12 months ago 100%

    That's great to hear and thanks for the kind feedback :)

    2
  • programming Programming Best place to write and host a programming guide
    Jump
  • learnbyexample learnbyexample 12 months ago 100%

    I use GitHub pages and mdbook (https://github.com/rust-lang/mdBook)

    8
  • linux Linux SHARE WITH THE CLASS: What aliases are you using?
    Jump
  • learnbyexample learnbyexample 12 months ago 100%

    I used to use it for posting on Twitter, with some keywords (like book title) in bold.

    1
  • linux Linux SHARE WITH THE CLASS: What aliases are you using?
    Jump
  • learnbyexample learnbyexample 12 months ago 88%
    alias a='alias'
    
    a c='clear'
    a p='pwd'
    a e='exit'
    a q='exit'
    
    a h='history | tail -n20'
    # turn off history, use 'set -o history' to turn it on again
    a so='set +o history'
    
    a b1='cd ../'
    a b2='cd ../../'
    a b3='cd ../../../'
    a b4='cd ../../../../'
    a b5='cd ../../../../../'
    
    a ls='ls --color=auto'
    a l='ls -ltrhG'
    a la='l -A'
    a vi='gvim'
    a grep='grep --color=auto'
    
    # open and source aliases
    a oa='vi ~/.bash_aliases'
    a sa='source ~/.bash_aliases'
    
    # sort file/directory sizes in current directory in human readable format
    a s='du -sh -- * | sort -h'
    
    # save last command from history to a file
    # tip, add a comment to end of command before saving, ex: ls --color=auto # colored ls output
    a sl='fc -ln -1 | sed "s/^\s*//" >> ~/.saved_commands.txt'
    # short-cut to grep that file
    a slg='< ~/.saved_commands.txt grep'
    
    # change ascii alphabets to unicode bold characters
    a ascii2bold="perl -Mopen=locale -Mutf8 -pe 'tr/a-zA-Z/𝗮-𝘇𝗔-𝗭/'"
    
    ### functions
    # 'command help' for command name and single option - ex: ch ls -A
    # see https://github.com/learnbyexample/command_help for a better script version
    ch() { whatis $1; man $1 | sed -n "/^\s*$2/,/^$/p" ; }
    
    # add path to filename(s)
    # usage: ap file1 file2 etc
    ap() { for f in "$@"; do echo "$PWD/$f"; done; }
    
    # simple case-insensitive file search based on name
    # usage: fs name
    # remove '-type f' if you want to match directories as well
    fs() { find -type f -iname '*'"$1"'*' ; }
    
    # open files with default application, don't print output/error messages
    # useful for opening docs, pdfs, images, etc from command line
    o() { xdg-open "$@" &> /dev/null ; }
    
    # if unix2dos and dos2unix commands aren't available by default
    unix2dos() { sed -i 's/$/\r/' "$@" ; }
    dos2unix() { sed -i 's/\r$//' "$@" ; }
    
    7
  • linux Linux What feature/utility/app are you surprised is not installed by default in Linux distributions?
    Jump
  • learnbyexample learnbyexample 1 year ago 81%

    EPUB reader

    7
  • opensource Open Source What open source programs do you recommend for Windows? (Windows exclusive or not)
    Jump
  • learnbyexample learnbyexample 1 year ago 100%

    Check out https://github.com/auctors/free-lunch (list of free Windows software)

    See also https://www.nirsoft.net/ (freeware, not open source)

    6
  • books Books Recommendations for short, dialogue-heavy/description-light audiobooks with lively narrators?
    Jump
  • learnbyexample learnbyexample 1 year ago 100%

    Cradle by Will Wight is a page-turner. 12 book completed series and audio is great based on gushing reviews I've come across.

    2
  • learnbyexample learnbyexample 1 year ago 100%

    GVim.

    Check out https://ghostwriter.kde.org/ if you are looking for a GUI app with live preview, full screen mode, etc.

    4