【Linux】计算机教育中缺失的一课
梦开始的地方
| 分类 | 必备指令 |
|---|---|
| Documentation|Searching | tldr|find, grep, ag |
| File | pwd, cd, ls, mkdir, touch, cp, mv, rm|chmod, type, tee|scp |
| Text | cat, head, tail, more|awk, sed |
(base) durui@Zephyrus:~$ pwd /home/durui (base) durui@Zephyrus:~$ cd /sys/class/backlight/ (base) durui@Zephyrus:/sys/class/backlight$ ls amdgpu_bl0 (base) durui@Zephyrus:/sys/class/backlight$ cd amdgpu_bl0 (base) durui@Zephyrus:/sys/class/backlight/amdgpu_bl0$ ls actual_brightness brightness max_brightness scale type bl_power device power subsystem uevent (base) durui@Zephyrus:/sys/class/backlight/amdgpu_bl0$ echo 100 | sudo tee brightness [sudo] password for durui: 100 (base) durui@Zephyrus:/sys/class/backlight/amdgpu_bl0$
梦觉醒却又放弃的地方
计算机专业学生必须具备的核心素质:
- 会
STFW/RTFM自己动手解决问题 - 不怕使用任何命令行工具:
vim, tmux,git,grep,gcc,binutils ... - 能管理一定规模 (
数千行) 的代码(不需要讲语言特性、设计模式,自然而然会需要它们的) - 能在出 bug 时默念
机器永远是对的、没有测试的代码永远是错的,我肯定能调出来的,然后开始用正确的现代的工具/方法调试
命令行工具还是给人用的,它不是用了刁难的你……有了命令行后,你就有了整个世界。——蒋炎岩
(base) durui@Zephyrus:~$ ipython3
Python 3.9.13 (main, Aug 25 2022, 23:26:10)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.31.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: from sympy import *
In [2]: x = var('x')
In [3]: init_printing()
In [4]: integrate(atan(x)/x**2/(1+x**2))
Out[4]:
⎛ 2 ⎞ 2
log⎝x + 1⎠ atan (x) atan(x)
log(x) - ─────────── - ──────── - ───────
2 2 x
In [5]: exit()
梦再萌芽的地方
找回初恋的感觉:.bashrc(.zshrc)、.vimrc、.tmux.conf
(base) durui@Zephyrus:~$ ssh django
* Tutorial: https://www.acwing.com/activity/content/57/
__ __________ __ ______ ___ _______
/ \ / ______/ / \ \| || \ | |/ _____|
/ /\ \ | | | | /\ | || || \ \| || / ___
/ /__\ \| | | | / \ | || || |\ \ || | |_ |
/ ______ \ \_____\ \/ /\ \/ /| || | \ || \____| |
/_/ \_\_______\__/ \__/ |_||_| \_|\________/
durui@0efa3cda5ef7:~$ logout
Connection to 123.249.114.69 closed.

浙公网安备 33010602011771号