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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Linux Sysops Handbook

284 点作者 abarrak大约 3 年前

18 条评论

tlamponi大约 3 年前
I really don&#x27;t mind the brevity, but the quality and correctness from that guide seems rather lacking, a few examples:<p>`apt update` refreshes the package index, but does no upgrade; so `apt update &lt;package&gt;` just fails with a usage error. Use `apt upgrade` for upgrading, or to allow dependency resolution to remove installed packages, which is relevant for upgrades between major releases, use `apt full-upgrade`.<p>`apt list` lists <i>all</i> pacakages known to apt, not only local ones; if you want locally installed ones use `apt list --installed`, e.g.:<p><pre><code> $ apt list | wc -l 59316 $ apt list --installed | wc 426 </code></pre> `ip show link` just isn&#x27;t a thing and will only get you `Object &quot;show&quot; is unknown, try &quot;ip help&quot;.`.<p>Rather I&#x27;d recommend adding `alias ip=&quot;ip -c&quot;` to your `.bashrc` or `.zshrc` to always get color output, that makes things much easier to read and then either use `ip a` or for a brief output that&#x27;s very easy to read quickly `ip -br a`. If you want all details and statistics about bytes send&#x2F;received and packets accepted&#x2F;dropped use `ip -s -s a` (`a` is short for `addr` or `address`).<p>Mixes rsyslog and journald.<p>The &quot;Shell Tips and Tricks&quot; section could really do with a short sentence or a few keywords besides the tools.<p>It seems to be an open book, so maybe I can contribute some fixes; but with that many errors in such a short text I&#x27;d not share that guide currently to anyone.
geocrasher大约 3 年前
This is definitely a quick reference, definitely short, and definitely missing a ton of things.<p>And it&#x27;s awesome. This is just the thing a new Linux user needs to start understanding the ecosystem.
评论 #30434722 未加载
kodah大约 3 年前
It amazes me sometimes how much of a dying breed systems engineers are. When I was coming up as a SWE I worked for a series of systems engineers, so I learned software from a systems engineering perspective and it&#x27;s been invaluable as distributed systems have gotten bigger and more OS-like.<p>If you&#x27;re wanting to dive a little deeper than this guide touches check out:<p>- <a href="https:&#x2F;&#x2F;man7.org&#x2F;tlpi&#x2F;" rel="nofollow">https:&#x2F;&#x2F;man7.org&#x2F;tlpi&#x2F;</a> - Really good for understanding how to build applications within a Linux ecosystem.<p>- <a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Linux-Kernel-Development-Robert-Love&#x2F;dp&#x2F;0672329468" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Linux-Kernel-Development-Robert-Love&#x2F;...</a> - Really good for understanding why Linux is the way it is. The Kernel this book was written on is awful old, but the principles shine through.
评论 #30438668 未加载
heavyset_go大约 3 年前
Links in the table of contents don&#x27;t work, they&#x27;re missing the &#x27;.&#x27; period character in the URLs.<p>From the ToC:<p>&gt; <i><a href="https:&#x2F;&#x2F;abarrak.gitbook.io&#x2F;linux-sysops-handbook&#x2F;#1-processes" rel="nofollow">https:&#x2F;&#x2F;abarrak.gitbook.io&#x2F;linux-sysops-handbook&#x2F;#1-processe...</a></i><p>The working link is:<p>&gt; <i><a href="https:&#x2F;&#x2F;abarrak.gitbook.io&#x2F;linux-sysops-handbook&#x2F;#1.-processes" rel="nofollow">https:&#x2F;&#x2F;abarrak.gitbook.io&#x2F;linux-sysops-handbook&#x2F;#1.-process...</a></i>
asicsp大约 3 年前
There&#x27;s also &quot;UNIX and Linux System Administration Handbook&quot; (<a href="https:&#x2F;&#x2F;www.oreilly.com&#x2F;library&#x2F;view&#x2F;unix-and-linux&#x2F;9780134278308&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.oreilly.com&#x2F;library&#x2F;view&#x2F;unix-and-linux&#x2F;97801342...</a>)<p>For more such resources, I have a list here: <a href="https:&#x2F;&#x2F;learnbyexample.github.io&#x2F;curated_resources&#x2F;linux_cli_scripting.html" rel="nofollow">https:&#x2F;&#x2F;learnbyexample.github.io&#x2F;curated_resources&#x2F;linux_cli...</a><p>I have also written CLI one-liner books for grep&#x2F;sed&#x2F;awk, currently free for Twosday: <a href="https:&#x2F;&#x2F;learnbyexample.gumroad.com&#x2F;l&#x2F;oneliners&#x2F;Twosday" rel="nofollow">https:&#x2F;&#x2F;learnbyexample.gumroad.com&#x2F;l&#x2F;oneliners&#x2F;Twosday</a>
评论 #30437973 未加载
sigio大约 3 年前
I&#x27;ve also started writing something like this a while ago, but then ran out of time again. It&#x27;s something I&#x27;ll probably work on again when my workweeks get a bit shorter again.<p><a href="https:&#x2F;&#x2F;linuxsysadminbook.sigio.nl&#x2F;" rel="nofollow">https:&#x2F;&#x2F;linuxsysadminbook.sigio.nl&#x2F;</a>
throwaway984393大约 3 年前
The best &quot;linux sysops handbook&quot; is the manual. Every one of these tools has a lengthy manual; read them in their entirety. Try out the options.<p>Not sure what commands there are or what they do? Try this out:<p><pre><code> zcat -f &#x2F;usr&#x2F;{,share&#x2F;}man&#x2F;man[18]&#x2F;*.[18].gz | grep -A2 &quot;\.SH NAME&quot; | grep -v &quot;^\.\|^$\|^--&quot; | sed &#x27;s&#x2F;\\&#x2F;&#x2F;g&#x27; | sort -u | less </code></pre> Then read the manual for those tools that interest you. (learn how <i>man</i>, <i>info</i>, <i>less</i> and <i>more</i> work)<p>The source code is also free. Many of these tools come as part of a package of other tools and libraries. Find out what package the tools come from, find the source code, download it, peruse through it (even if you don&#x27;t know the language). I guarantee you will find out new things you didn&#x27;t know about how the system works.<p>You can also use debugging tools like strace, ltrace, gdb, lsof, etc to find out more about what these tools are doing. The more you understand what it&#x27;s actually doing, the deeper your knowledge, and the less you need a handbook to tell you what to do.<p>Another way to play around with commands is to just run a Docker container like <i>docker run --rm -it ubuntu:18.04</i> and try anything you want in the container. On exit it will be destroyed. To play around with <i>systemd</i> tools, install Vagrant and spin up a mini Linux VM.
bovermyer大约 3 年前
There is no replacing the Unix and Linux System Administration Handbook.
评论 #30431512 未加载
flojo大约 3 年前
<a href="https:&#x2F;&#x2F;debian-handbook.info&#x2F;browse&#x2F;stable&#x2F;" rel="nofollow">https:&#x2F;&#x2F;debian-handbook.info&#x2F;browse&#x2F;stable&#x2F;</a>
say_it_as_it_is大约 3 年前
Isn&#x27;t this missing about 10,000 pages?
评论 #30432206 未加载
rythmshifter03大约 3 年前
This is amazingly useful to a person learning Linux in a corporate environment where they&#x27;ve just been thrown to the wolves to figure it out. Thank you!!
评论 #30431760 未加载
jamapy大约 3 年前
The Linux Command Line and Adventures with the Linux Command Line, both by William Shotts, are a nice read for beginner linux administartion <a href="http:&#x2F;&#x2F;www.linuxcommand.org&#x2F;tlcl.php&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.linuxcommand.org&#x2F;tlcl.php&#x2F;</a>
ketanmaheshwari大约 3 年前
Very nice! I would add a section on &quot;How to get help on terminal&quot; and discuss manpages, the -h &#x2F; -help flags, info &#x2F; pinfo pages and the &#x2F;usr&#x2F;share&#x2F;doc location.
abarrak大约 3 年前
Source: <a href="https:&#x2F;&#x2F;github.com&#x2F;abarrak&#x2F;linux-sysops-handbook" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;abarrak&#x2F;linux-sysops-handbook</a>
kkirsche大约 3 年前
I was really shocked to see kali Linux, a penetration testing distribution, mentioned on this. I wouldn’t normally include it in handbooks like this as it can be dangerous to encourage daily-driving a distro like that if they don’t fully understand the risks. Maybe I’d recommend ParrotOS instead :&#x2F;
imwillofficial大约 3 年前
I love this, have a friend interviewing for a SysOps role and this is so timely.
nunez大约 3 年前
While this is very Debian centric, this is a really good reference.
chakkepolja大约 3 年前
Also see `tldr` tool. Often very handy when you don&#x27;t have patience to read man pages.