Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
JavaDevTeam
notes
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
notes
/
CentOS
/
Linux-网络命令.java
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
69 lines (54 loc) · 1.43 KB
master
Breadcrumbs
notes
/
CentOS
/
Linux-网络命令.java
Copy path
Top
File metadata and controls
Code
Blame
69 lines (54 loc) · 1.43 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---------------------------
Linux
-
网络命令
|
---------------------------
---------------------------
Linux
-
网络命令
|
---------------------------
write
[
用户名
]
#
给指定的用户发送信息
,
以ctrl
+
d
保存结束
#
输入指令后
,
回车开始输入聊天信息
#
用户必须是登录在服务器上才可以
wall
#
直接给所有用户发送消息
ping
[
ip
]
#
你懂
#
默认是64字节数据包
#
选项
-
c
[
次数
]
//设置发送数据包的次数
ifconfig
#
执行全选是root
#
最主要的作用就是
,
查看当前计算机的网络信息
mail
[
用户名
]
#
发邮件
...
其实就是使用的本地内存
,
并没有邮件服务器
#
输入数据后
,
ctrl
+
d直接发送
last
#
列出目前与过去登录过系统的用户信息
#
统计所有的登录信息
lastlog
#
列出所有的用户
(
包括被限制了系统不能登录的用户
),
的登录情况
#
选项
-
u
[
用户UID
]
//仅仅查询指定用户的登录信息
traceroute
[
网站
]
#
显示数据包
,
到达指定地址的之间的路径
netsta
#
显示网络相关的信息
#
选项
-
t
//查询tcp协议的网络信息
-
u
//查询udp协议的网络信息
-
l
//监听
-
r
//路由
-
n
//显示IP地址和端口
-
p
//显示出程序信息
netstat
-
tlun
//查看本机监听端口
netstat
-
an
//查看本机所有的网络连接
netstat
-
rn
//查看本机路由列表
setup
#
redhat开发的一个管理工具集合
(
redhat系列专属
)
#
用于配置一些网络信息
#
记得操作完毕后执行
:
service
network
restart
//重启服务生效
#
该配置操作
,
永久生效
mount
-
t
[
文件系统
] [
设备文件名
] [
挂载点
]
#
挂载点在Linux中可以当作目录来解释
# [
文件系统
]
是固定的
umount
[
挂载目录
]
#
卸载挂载点
You can’t perform that action at this time.