2021 总结：必备的开源备忘单
备忘单

> 
> 在你学习 Linux 命令行或练习新的编程语言时，请随身携带这些方便的备忘单。
> 
> 
> 


![](/data/attachment/album/202201/15/113627xxt6ldzq5hvtqvg8.jpg "Brain on a computer screen")


你不可能记住每一个你需要使用的命令或快捷方式。我们都是普通人，通常情况下，我把笔记放在不同的纸片上和笔记本里。这导致我的办公桌上有些过分紊乱。到处都是一些五年前的杂乱无章的潦草文字。这这些 2021 年的备忘单将把混乱降低一个档次。从 JavaScript 到 Linux，这个列表中都有适合你的东西。


### 如何编写你的第一段 JavaScript 代码


这篇 [文章](https://opensource.com/article/21/7/javascript-cheat-sheet) 是为那些今年想尝试学习一门新语言的初来乍到者准备的。[Seth Kenlon](https://opensource.com/users/seth) 介绍了如何安装 JavaScript 和开始制作一个简单的 HTML 页面。虽然 Seth 解释说 JavaScript 并不只用于网站，但所有主要的网页浏览器都有一个运行你的代码的 JavaScript 引擎。在整个演练过程中，Seth 涵盖了语法、变量和函数，让你开始创建一个新的应用。最后，在分享 [备忘录](https://opensource.com/downloads/javascript-cheat-sheet) 之前，Seth 还介绍了用 JavaScript 进行跨平台的能力。


### Linux 软件包管理


在 [Chris Hermanse](https://opensource.com/users/clhermansen) 的 [文章](https://opensource.com/article/21/6/apt-linux) 中，在他分享他的 [备忘录](https://opensource.com/downloads/apt-cheat-sheet) 之前，我们对使用 `apt` 做了简要预览。许多人日常在家里和办公室使用基于 Debian 的 Linux。在这篇入门文章中，我们可以了解一下 `apt` 的用途，首先是用 `apt` 在软件包系统中寻找软件，也可以用另一个命令查看这些软件包的元数据。接下来，Chris 介绍了查看一个软件包是否包括安装过程中需要的文件（软件包依赖）。最后，Chris 介绍了如何用 `apt` 命令删除软件包。这份详尽的备忘录可以给你带来比 Linux 的日常软件包管理更多的东西。如果 `apt` 不适合你，你也可以看看 `dnf` [备忘录](https://opensource.com/downloads/dnf-cheat-sheet)。


### 用 DOS conio 开始编程


你是否想在明年涉足 DOS？如果是的话，你已经准备好创建令人兴奋的新应用，[Jim Hall](https://opensource.com/users/jim-hall) 为你准备了一份 [备忘录](https://opensource.com/downloads/dos-conio-cheat-sheet)。在这篇 [文章](https://opensource.com/article/21/9/programming-dos-conio) 中定义了 `conio`，在分享备忘录之前，Jim 介绍了如何制作你自己的彩色文本用户界面。Jim 解释说，你可以用你的应用做更多的事情，使其更具互动性和刺激性。现在你有了这个备忘录，你就可以用 DOS `conio` 创建你自己的应用了。


### 学习 SQLite3


与这种常见的数据库一起工作？下面是你如何通过这个 [备忘录](https://opensource.com/downloads/sqlite-cheat-sheet) 成为一个资深用户。在这个 [实践教程](https://opensource.com/article/21/2/sqlite3-cheat-sheet) 中，[Klaatu](https://opensource.com/users/klaatu) 从安装和与 SQLite3 互动开始，然后在分享备忘录之前创建了一个带表的数据库。Klaatu 还用一段很简单的文字解释了数据类型和日期时间戳功能。Klaatu 在本教程中增加了更多详细的功能，包括查看表格、改变表格等等。如果你想继续使用 SQLite3 数据库并使其变得强大，或者只是想学习如何使用它，这个备忘录就适合你。


### 更多的 Linux 备忘录


虽然我只是蜻蜓点水地提及了这些备忘单，但我想提到一些值得称赞的地方，其中包括 [Seth Kenlon](https://opensource.com/users/seth) 的 Linux 备忘单：


* Seth 对 [grep](https://opensource.com/downloads/grep-cheat-sheet) 的高级用法对各种场合都很有用。
* [find](https://opensource.com/downloads/linux-find-cheat-sheet) 命令备忘录对于我不想花大量时间在目录中徘徊的时候特别有帮助。
* [wget](https://opensource.com/downloads/linux-wget-cheat-sheet) 备忘录对于那些你需要从互联网上获取东西的时候是很方便的。


### 以回顾 2021 年开始 2022 年


2021 年是备忘录的辉煌之年，其中许多是关于 Linux 的，但也有一些备忘录甚至让你从一种全新的语言开始。我强烈建议你打印出这些备忘录，在 2022 年开始学习新东西。我们欢迎各种经验水平的作者，请通过 [给我们发送文章或备忘录](https://opensource.com/how-submit-article) 告诉我们你是如何学习新技能的。




---


via: <https://opensource.com/article/22/1/open-source-cheat-sheets>


作者：[Jessica Cherry](https://opensource.com/users/cherrybomb) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
You can't remember every command or shortcut you need to use. We are all human. Usually, I keep notes on separate bits of paper and in notebooks. This has led to some serious dysfunction on my desk. There is some five years' worth of clutter in scribbled bits everywhere. 2021's cheat sheets will bring that clutter down a notch. From JavaScript to Linux, there's something in this list for you.

## How to write your first JavaScript code

This [article](https://opensource.com/article/21/7/javascript-cheat-sheet) is for those first-timers out there who want to try learning a new language this year. [Seth Kenlon](https://opensource.com/users/seth) covers installing JavaScript and getting started making a simple HTML page. While Seth explains that JavaScript isn't only for websites, all major web browsers do have a JavaScript engine to run your code. Throughout this walkthrough, Seth covers syntax, variables, and functions to get you started on your way to creating a new app. Finally, Seth covers the ability to go cross-platform with JavaScript before sharing the [cheat sheet](https://opensource.com/downloads/javascript-cheat-sheet).

## Linux Package management


In [Chris Hermansen's](https://opensource.com/users/clhermansen) [article](https://opensource.com/article/21/6/apt-linux), we get a brief preview for using `apt`

before he shares his [cheat sheet](https://opensource.com/downloads/apt-cheat-sheet). Many people use Debian-based Linux daily at home and in the office. In this starter article, we get a sneak peek at what we can use `apt`

for, starting with using `apt`

to find software within the packaging system and also look into those packages' metadata with another command. Next, Chris covers if a package includes a file or package dependencies required during the install. Finally, Chris covers how to remove packages with the `apt`

command. This thorough cheat sheet can give you more than your day-to-day package management with Linux. If `apt`

isn't for you, you can check out the `dnf`

[cheat sheet](https://opensource.com/downloads/dnf-cheat-sheet).

## Get started programming with DOS conio

Are you looking to get into DOS next year? If so, you're ready to create exciting new applications and [Jim Hall](https://opensource.com/users/jim-hall) has a [cheat sheet](https://opensource.com/downloads/dos-conio-cheat-sheet) for you. While defining `conio`

in this [article](https://opensource.com/article/21/9/programming-dos-conio), Jim covers how to make your very own colorful text-based user interface before sharing the cheat sheet. Jim explains that you can do so much more with your apps that are more interactive and exciting. Now that you have this cheat sheet, you can create your own app using DOS `conio`

.

## Learn SQLite3

Work with this common database? Here's how you can be a power user with this [cheat sheet](https://opensource.com/downloads/sqlite-cheat-sheet). In this [hands-on tutorial](https://opensource.com/article/21/2/sqlite3-cheat-sheet), [Klaatu](https://opensource.com/users/klaatu) starts with installing and interacting with SQLite3, then creates a database with a table before sharing the cheat sheet. Klaatu also explains data types and the date timestamp function in a nice simple paragraph. Klaatu adds more detailed functions to this tutorial, including viewing tables, altering tables, and so much more. If you want to go forth and be powerful with your SQLite3 database or just want to learn how to use it, this cheat sheet is for you.

## More Linux cheat sheets

While I've only scratched the surface with these cheat sheets, I would like to mention some honorable mentions that include cheat sheets for Linux by [Seth Kenlon](https://opensource.com/users/seth):

- Seth's powerful use of
[grep](https://opensource.com/downloads/grep-cheat-sheet)is useful for every occasion. - The
[find](https://opensource.com/downloads/linux-find-cheat-sheet)command cheat sheet is especially helpful for when I don't want to spend a ton of time wandering around directories. - The
[wget](https://opensource.com/downloads/linux-wget-cheat-sheet)cheat sheet is handy for those times you really need something from the internet.

## Start 2022 with a look back on 2021

2021 was a stellar year for cheat sheets, many of which were about Linux, but others have taken it so far as to start you off with a brand new language. I urge you to print out these cheat sheets and start learning something new in 2022. We welcome authors of all experience levels, so tell us how you learned your new skills by [sending us an article or cheat sheet idea](https://opensource.com/how-submit-article).

## 1 Comment