
系统使用技巧
文章平均质量分 66
Linux、Windows、MacOS的系统配置、常用命令、shell脚本等内容
yyyayo
互联网行业工作者
展开
-
Linux 文本处理 grep、sed、awk (Text-processing Utilities)
教程三者的区别(Difference Between grep, sed, and awk):grep is only good for simple text matching and printing.In addition to match and print text, sed offers additional text transformation commands like substitution.awk, being the most powerful of these tool原创 2021-09-13 14:43:54 · 211 阅读 · 0 评论 -
通过 SSH 连接 GitHub
Step 1: Generate SSH Key Pairs# Check if there are any shh key pairs you can usels -al ~/.ssh# Or generate SSH key on your own local systemssh-keygen -t rsa -b 4096 -C "your comments of this key pairs"Step 2: Add SSH Key to SSH Agenteval "$(ssh-agen原创 2021-09-10 14:31:36 · 239 阅读 · 0 评论 -
配置 SSH 服务器以及管理 SSH keys
Install SSH serverHow to Enable SSH on Ubuntu 20.04Install ssh:sudo apt updatesudo apt install openssh-serversudo systemctl status sshIf the firewall on Ubuntu is enabled:sudo ufw allow sshEnable and disable ssh:sudo systemctl enable --now ssh原创 2021-07-09 10:57:42 · 367 阅读 · 0 评论 -
macOS 下 Java SE SDK 版本切换
查看 Java SDK 在 macOS 上的安装情况:通过上面这个命令可以看到已经安装的 JDK 版本。然后是通过修改环境变量切换 JDK 版本。先查看当前版本:将以下命令写在中然后用命令执行使立即生效:注:在全局的中增加变量,永久且对全部用户有效;在用户目录下的文件中增加变量,改变量仅会对当前用户有效,并且是“永久的”;命令可新增,修改或删除环境变量,供后续执行的程序使用;命令可强制影响环境立即生效。...原创 2021-03-30 09:26:04 · 566 阅读 · 2 评论