常用网络操作
SSH
FTP
FTP常用命令
ping 192.168.0.255 # 网络连通测试命令
ifconfig # 查看网络地址
ifconfig eth0 # 查看本机 IP 地址
ifconfig eth0 192.168.0.188 netmask 255.255.255.0 # 配置网络地址(临时)
ifup eth0 # 启用
ifdown eth0 # 禁用
service iptables stop/start # 关闭(开户)防火墙
SSH
service sshd start/stop/restart # 启动(停止/重启)服务
FTP
service vsftpd start/stop/restart # 启动(停止/重启)服务
FTP常用命令
get hello.c # 获取文件
dir # 显示目录
cd # 切换目录
pwd # 显示当前目录
mkdir dir1 # 创建目录
rm dir1 # 删除目录
rmdir dir1 # 删除目录
put hello.c # 发送文件