TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Please recommend me ebooks on Regex and Linux

7 点作者 esquivalience将近 2 年前
Hi HN,<p>Can you recommend ebooks to read to introduce me to Regex and&#x2F;or Linux?<p>I&#x27;m currently paging though The Linux Commands Handbook by Flavio Copes which I&#x27;m finding good! But I don&#x27;t want just one resource.<p>I&#x27;ve been a windows user for a long time but have recently been fairly frustrated with it. Things like ads injected into system menus, and the absurd double-layer of settings configurations, are turning me off it, so I&#x27;ve decided to give Linux a try. I&#x27;ve opted for Kubuntu, for a small-step-first introduction and I&#x27;m very impressed with how smooth it is.<p>In fact I&#x27;m pretty sure I could just use it casually barely noticing it wasn&#x27;t windows based - an amazing thing when comparing a community project to the mainstay product of one of the world&#x27;s largest corps.<p>But that&#x27;s not my aim. I&#x27;d prefer to understand the OS a bit more deeply than a casual user. I want to be able to mess around without messing up, it at least to have a shot at knowing what went wrong. I want to be able to use the terminal, not just gui operations. And I want to use some of the power it offers.<p>It&#x27;d be helpful to sketch out my level of knowledge but that is actually quite a difficult thing to do. I&#x27;m not a developer, have only very basic coding experience, and some more recent very badic scripting experience. I work in an office in a non-technical profession but often use Powershell and cmd in Windows for basic operations. I&#x27;m not afraid of reading in plaintext or reading Man before using a command. I know what a piped output is but I&#x27;ve never used regular expressions.<p>Thanks for any tips.

6 条评论

simonblack将近 2 年前
I always recommend people to jump in the deep end. If you want to learn something, use it. And use it exclusively.<p>Get yourself an independent system, preferably a separate computer with only Linux. Or maybe squeeze 20-50 gig from one your Windows partitions and put Linux on that as a dual-boot system if you can&#x27;t find a spare computer lying around.<p>Set yourself a workable period, say two months. Mark the calendar.<p>Now, no cheating, but boot up nothing but Linux* until that two months (or whatever time you have set yourself) is over. You will not permit yourself to use Windows for anything at all during that time. You need that time to &#x27;unlearn&#x27; the Windows-Way. And you will do everything on that Linux machine whether that be sys-adminning, surfing the Web, or programming.<p>You are going to strike roadblocks that you know, from years back, how to fix in Windows. Your challenge now is to work around that roadblock using Linux only. Google is your friend. You will learn to get around that roadblock, and get some knowledge under your belt. Rinse, repeat.<p>If you want to learn regex, use your new-found Linux knowledge to write bash scripts to automate your daily tasks. (Practise using &#x27;sed&#x27;, &#x27;awk&#x27; and &#x27;grep&#x27;)<p>* Obviously, if you <i>have to</i> use Windows at your day-job, I am not talking about using &quot;Linux only&quot; there.
bawis将近 2 年前
Jeffrey E.F. Friedl - Mastering Regular Expressions<p>Good one if you asked me.
评论 #37365856 未加载
LarryMade2将近 2 年前
For Linux get one of those thick Linux bibles and read through it, digest what you can, note what you can&#x27;t, bookmark parts that pique your interest. Doing this, I got a much better understanding of what Linux is about and capable of, also when I need to know more I have a better idea of what to look for.
p1esk将近 2 年前
Sign up for GPT-4 ($20&#x2F;mo). Seriously. It will be the best Linux teacher you can hope for.
8BitArmour将近 2 年前
How linux works:<a href="https:&#x2F;&#x2F;nostarch.com&#x2F;howlinuxworks3" rel="nofollow noreferrer">https:&#x2F;&#x2F;nostarch.com&#x2F;howlinuxworks3</a>
hackermailman将近 2 年前
I understood regular expressions by learning DFAs <a href="https:&#x2F;&#x2F;youtu.be&#x2F;UNn_dirK-nI" rel="nofollow noreferrer">https:&#x2F;&#x2F;youtu.be&#x2F;UNn_dirK-nI</a>
评论 #37366196 未加载