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

推荐订阅源

T
Tor Project blog
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 【当耐特】
G
Google Developers Blog
J
Java Code Geeks
The Cloudflare Blog
Attack and Defense Labs
Attack and Defense Labs
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
Cisco Talos Blog
Cisco Talos Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
I
Intezer
Jina AI
Jina AI
T
Tenable Blog
P
Palo Alto Networks Blog
Project Zero
Project Zero
D
DataBreaches.Net
Hugging Face - Blog
Hugging Face - Blog
The Hacker News
The Hacker News
F
Full Disclosure
Cloudbric
Cloudbric
量子位
H
Heimdal Security Blog
K
Kaspersky official blog
有赞技术团队
有赞技术团队
罗磊的独立博客
V
Vulnerabilities – Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
阮一峰的网络日志
阮一峰的网络日志
Vercel News
Vercel News
Recent Announcements
Recent Announcements
WordPress大学
WordPress大学
GbyAI
GbyAI
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
Recorded Future
Recorded Future
Security Archives - TechRepublic
Security Archives - TechRepublic
AI
AI
Webroot Blog
Webroot Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
爱范儿
爱范儿
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
The Exploit Database - CXSecurity.com
Apple Machine Learning Research
Apple Machine Learning Research
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hacker News: Front Page
Latest news
Latest news

博客园 - 拓子

.net编码规则 tensorflow mnist The tensorflow simplest calculate python opencv english opencv 图片识别 随机概率 从excel 导入数据绘制 散点图 tensor flow 线性回归 一些搞笑,但有意义的图片 基于python玩转人工智能最火框架之TensorFlow人工智能&深度学习介绍 win10 64下anaconda4.2.0(python3.5) PYTHON 爬虫 baidu美女图片 falkonry python hadoop wordcout测试 CENTOS重新安装JDK 搭建Hadoop的环境 目录和权限
centos基本命令
拓子 · 2018-12-30 · via 博客园 - 拓子

$>ls
$>ls --help //查看命令帮助
$>man ls //查看命令帮助

$>clear //清屏
$>cd /home //切换目录
$>cd . //进入当前目录
$>cd .. //进入上级目录
$>cd /home/admin//进入绝对路径

$>pwd //显式当前目录
$>whoami //显式当前用户名

$>su root //切换用户,输入密码,swith user
$>passwd //修改当前用户的密码

$>ifconfig //查看ip地址
$>ping localhost //查看网络连通情况
$>ping www.163.com //查看网络连通情况


$>su admin //切换用户
$>cd /home/admin //到用户目录
$>cd ~ //回到主目录
$>cd - //回到上次的目录
$>ll //别名,ls -l --autocolor...
$>alias //查看所有的别名
$>ls -a -l -h //查看当前目录-h:人性化 -l:列表 -a:显式.开头
$>mkdir ~/Downloads/a //创建目录
$>touch ~/Downloads/a/1.txt //创建文件
$>echo helloworld > 1.txt //重定向输出(覆盖)
$>echo helloworld >> 1.txt //重定向输出(追加模式)
$>cat 1.txt //查看文件
$>cp 1.txt 2.txt //复制文件
$>rm 1.txt //删除文件
$>rm -rf / //强行递归删除
$>mv a.txt tmp/ //强行递归删除


[centos client中切换模式]
ctrl + alt + f6 //切换到文本模式
ctrl + alt //切换鼠标
ctrl + alt + f1 //切换桌面模式.
ctrl + alt + f5 //切换到新的文本模式


$>more a.txt //分屏显式
q:退出
h:帮助
$>more -5 a.txt //显式前5行内容
$>tail a.txt //最后10行内容

$>find . | more // | 是管道符,前面的命令的输出作为后面命令输入。
$>find ~
$>ls -aR ~ //递归显式主目录所有的文件.(a表示包含.开头的文件)
$>head a.txt //显式前10行
$>head -n 10 a.txt //显式前10行
$>head -10 a.txt //显式前10行

$>tail a.txt
$>tail -n 20 a.txt
$>tail -20 a.txt
$>tail --lines=20 a.txt

$>wc -c -l -w a.txt //统计文本信息,
//显式统计信息-c:字节 -l:line -w:word

$>hostname //查看主机名称
$>uname -a //查看系统内核

$>file xxx.xx //查看文件类型
$>gzip a.txt //原地压缩
$>gzip -d a.txt //原地压缩
$>gzip -dr tmp //递归操纵文件夹下的文件
$>gunzip a.txt.gz //等价于gzip -d a.txt

$>tar -cvf my.tar 1.txt tmp //创建归档文件
$>tar -vxf my.tar //解档文件
$>find . | grep txt | cp `xargs` temp //xargs是多行变单行,使用空格替换回车换行符.
//`` : 是强制命令解析。
$>ping `cat a.txt` //命令嵌套
$>which echo //查看命令的文件路径