欢迎光临散文网 会员登陆 & 注册

Linux常用命令: 网络管理

2023-03-06 21:32 作者:石城城  | 我要投稿

放心~被指到的人一定能学会的~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 



ping

向网络主机发送回显请求包,用来判断网络连通性

ifconfig

网卡配置工具

ssh

用于安全远程登录的SSH协议

可以用来登录远程主机或执行命令

wget

从网络服务下载文件

支持HTTP/HTTPS/FTP

 

1. ping

Send ICMP ECHO_REQUEST packets to network hosts.

向网络主机发送回显请求包,用来判断网络连通性

• Ping host(ping主机):

• Ping a host only a specific number of times(ping主机指定次数):

• Ping host, specifying the interval in seconds between requests (default is 1 second)(ping主机指定请求间隔):

• Also display a message if no response was received(显示未接收信息):

2. ifconfig

Network Interface Configurator.

网卡配置工具

• View network settings of an ethernet adapter(查看网卡驱动信息):

• Display details of all interfaces, including disabled interfaces(显示所有网卡信息,包括不可用):

• Disable eth0 interface(关闭指定网卡):

• Enable eth0 interface(启用指定网卡):

• Assign IP address to eth0 interface(给网卡设置IP地址,非永久):

3. ssh

Secure Shell is a protocol used to securely log onto remote systems.

用于安全远程登录的SSH协议

It can be used for logging or executing commands on a remote server.

可以用来登录远程主机或执行命令

• Connect to a remote server(连接远程主机):

• Connect to a remote server with a specific identity (private key)(使用私钥连接远程主机):

• Connect to a remote server using a specific port(远程登录时指定ssh服务端口):

• Run a command on a remote server(在远程主机上执行命令):

4. wget

Download files from the Web.

从网络服务下载文件

Supports HTTP, HTTPS, and FTP.

支持HTTP/HTTPS/FTP

• Download the contents of an URL to a file (named "foo" in this case)(下载指定文件):

• Download the contents of an URL to a file (named "bar" in this case)(下载指定文件,重命名):

• Continue an incomplete download(继续下载指定连接):

• Download all URLs stored in a text file to a specific directory(下载文件中的所有内容到指定目录):

 

自学笔记~

如果有错~

期待大佬指出~

感谢帮助提升~ 


Linux常用命令: 网络管理的评论 (共 条)

分享到微博请遵守国家法律