惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
D
Docker
GbyAI
GbyAI
B
Blog RSS Feed
博客园 - 司徒正美
博客园 - Franky
美团技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
aimingoo的专栏
aimingoo的专栏
C
Check Point Blog
IT之家
IT之家
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
www.infosecurity-magazine.com
www.infosecurity-magazine.com
AI
AI
O
OpenAI News
Attack and Defense Labs
Attack and Defense Labs
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
S
Secure Thoughts
博客园 - 聂微东
L
LINUX DO - 最新话题
U
Unit 42
SecWiki News
SecWiki News
A
Arctic Wolf
Schneier on Security
Schneier on Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
V
Visual Studio Blog
量子位
The Cloudflare Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
G
Google Developers Blog
T
Threat Research - Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
B
Blog
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
Scott Helme
Scott Helme
Last Week in AI
Last Week in AI
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Microsoft Security Blog
Microsoft Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
Latest news
Latest news

Posts on Changkun's Blog

Why High-Output Systems Are Often the First to Stop Growing Dark Forest Theory: A Formal Derivation Agents (or Humans) in Goal-Directed and Goalless Environments: On Pipelines, Priors, and the Rhythm Between Exploration and Exploitation At the Boundary of Self-Reference: From Stable Structures in Artificial Intelligence to the Self as a Recursive Model in an Open Dissipative System 2023 Reading List 2022 Reading List 2021 Reading List Are PSS/USS and RSS Actually the Same Thing? Performance Differences from Page Faults vs. Prefetching 2020 Year-End Review Migration with Zero Downtime 2020 Reading List The All in Go Stack Pointers Might Not Be Ideal for Parameters Eliminating A Source of Measurement Errors in Benchmarks Setup Wordpress in 10 Minutes 我为什么不再写博客了? 2019 年终总结 2018-2019 读书清单 Ten years of blogging Rethinking the Reflections on Communications and Trusts 2018 年终总结 Go source code study is open source Go source study: unsafe Pattern Go source study: sync.Pool Go runtime programming A Million WebSocket and Go Designing Asynchronous RESTful APIs 分布式杂谈01:CAP 理论的误解 Issues of Human-Bot Interaction 压缩法与深度网络的泛化性 Go in 1 Hour UMSLT04: The Past and Present of SGD UMSLT03: A Gentle Start of Learning Theory UMSLT02: A Breif History of Neural Networks UMSLT01: A Breif History of Regularization 不笑不足以为道 论文笔记:Generalization in Deep Learning 2017 年终总结 2017 读书清单 深度学习的泛化理论简介 删除 GitHub 上已经提交的敏感信息 硕士生涯的第一年就这样告一段落了 人肉计算(10): 系统参与激励 人肉计算(9): 陷阱的解法 别聊,一聊你就暴露 人肉计算(8): 人肉计算与数据科学中的陷阱 人肉计算(7): 社会行为分析 Hexo + GitHub + Travis CI + VPS 自动部署 人肉计算(6): 预测市场 人肉计算(5): 信用风险评级模型 读书与回报 瞎扯: 对现代企业理论与当下IT企业的商业模式和信息产业链的规律性的思考 人肉计算(4): 输入数据聚合与PageRank 又一次打整了一下博客 人肉计算(3): 输入数据聚合与链路预测 人肉计算(2): 意图博弈 GWAPs 人肉计算(1): 众包与群众智慧 对后辈同学在计算机专业上的答疑与解惑 在德国的医疗及住院体验 这可能不是一个技术博客了 实验楼楼赛第3期-Python-题解 迅速更换了 DISQUS Electron 深度实践总结 良好的编码体验的三个方面 2016 年终总结 2016 读书清单 最近在着手写的文章 微信小程序文档极致总结 谈谈过去三个月在实验楼的实习经历 Built a Desktop Client for My Blog Guacamole 源码分析与 VNC 中 RFB 协议的坑 《高速上手 C++11/14》正式发布 Docker 极速入门教程02 - 镜像与容器管理 Docker 极速入门教程01 - 基本概念和操作 阶段性沉默 ELK+Redis 最佳实践 终于全面启用了 HTTPS 苹果开源了LZFSE无损压缩 Hash 碰撞的一种思路 记一次完整的 Kaldi-TIMIT 示例运行 Kaldi 上的 TIMIT 例子 Kaldi 安装与部署 从科研写作谈起 Swift API 设计指南 有趣的人类 所以其实论文并没有什么鬼用 Githug 通关记录及指南 小结一下这学期的收获 2015 读书清单 2015 年终总结 负能量爆表 转眼就快两个月了 博客迁移记录 大三总结 这个世界,终究不会是我们的。 Linux 内核分析 之六:Linux 内核创建进程的过程 小说「泽缘」 Linux 内核分析 之五:system_call中断处理过程的简要分析 大创项目的标题真是每年都在考验同学们的想象力啊
Linux学习笔记 2 Linux常用必背命令
Changkun Ou · 2013-11-20 · via Posts on Changkun's Blog

Published at发布于:   |   PV/UV: /   |   Reading阅读: 2 min

日期时间

1
2
3
4
5
6
7
8
9
date
# 格式化显示时间  +%Y[任意格式]%m[任意格式]%d
# -s: 设置时间
hwclock/clock
# 用以显示硬件时钟时间
cal
# 查看日历
uptime
# 查看系统运行时间

输出、查看

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
    echo:
        用以显示输入的内容
    cat:
        显示纯文本文件的内容
    more:
        用于翻页显示文件内容(只能用于向下翻页)
    less:
        用于翻页显示文件内容(带上下翻页)
    head:
        显示文件的头几行(默认十行)
        -n: 显示行数
    tail:
        显示文件的末尾几行(默认十行)
        -n: 显示行数
        -f: 追踪显示文件更新(一般用于查看日志、命令不会退出)

查看硬件信息:**

1
2
3
4
5
6
7
8
    lspci:
        查看PCI设备
        -v: 查看详细信息
    lsusb:
        查看USB设备
        -v: 查看详细信息
    lsmod:
        查看加载的模块(驱动)

关机/重启

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
    shutdown [参数] 时间
        -h: 关机
        -r: 重启
        例如:
            shutdown -h now
            shutdown -h +10 (十分钟以后)
            shutdown -r 23:30 (23:30重启)
    poweroff:
        立即关机
    reboot:
        立即重启

归档和压缩

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
zip:
    zip myfile.zip unzip_file_name:
        压缩unzip_file_name为myfile.zip
unzip [压缩文件]:
    解压
gzip [压缩文件]:
    采用gzip压缩算法解压缩文件
    -d: 解压缩
tar [选项] [文件]:
    归档命令
    -c: 创建新的档案文件。如果用户想备份一个目录或是一些文件,就要选择这个选项
    -v 详细报告tar处理的文件信息。如无此选项,tar不报告文件信息
    -f 使用档案文件或设备,这个选项通常是必选的
    -z 用gzip来压缩/解压缩文件,加上该选项后可以将档案文件进行压缩,但还原时也一定要使用该选项进行解压缩
    -x 从档案文件中释放文件
    tar -cvf out.tar hello:
        归档hello文件夹
    tar -xvf out.tar:
        打开。释放归档文件
    tar -cvzf backuptar.gz /etc:
        使用-z参数将归档后再使用gzip进行压缩

tar cvf archive_name.tar direname/  # 创建新的 tar 文件
tar xvf archive_name.tar            # 解压 tar 文件
tar tvf archive_name.tar            # 查看 tar 文件

gzip test.txt                       # 创建一个 *.gz 压缩文件
gzip -d test.txt.gz                 # 解压 *.gz 文件
gzip -l *.gz                        # 显示压缩比率

bzip2 test.txt                      # 创建 *.bz2 压缩文件
bzip2 -d test.txt.bz2               # 解压 *.bz2 文件

unzip test.zip                      # 解压 *.zip 文件
unzip -l jasper.zip                 # 查看 *.zip 文件

查找

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
    locate [关键字]:
        快速查找文件或文件夹
        需要预先建立数据库,默认每天更新一次,或者也可以用updatedb手工建立/更新数据库
    find [查找位置] [查找参数] [关键字]:
        用以高级查找文件文件夹
        find . -name *hello*
        find / -name *.conf
        find / -perm 777
        find / -type d
        find . -name "[关键词]" -exec [命令] {} \;  // 可以返回结果
        -name: 以名称形式查找
        -perm: 以权限形式查找
        -user: 以所有者形式查找
        -group:以用户组形式查找
        -ctime:以修改时间形式查找
        -type: 以类型查找
        -size: 以大小查找