Linux 常用命令一

来源:互联网 发布:软件的应用价值 编辑:程序博客网 时间:2024/06/05 16:52

最新常用的命令

启动网络服务

systemctl start network.service

停止网络服务

systemctl stop network.service

重启网络服务

systemctl restart network.service

查看网络服务状态

systemctl status network.serivce

============================================================

删除文件夹

rm -rf /var/log/httpd/access将会删除/var/log/httpd/access目录以及其下所有文件、文件夹

删除文件

rm -f /var/log/httpd/access.log

将会强制删除/var/log/httpd/access.log这个文件

删除zip 包

当前目录下

rm *.zip

不在当前目录下

find . -name *.zip -exec rm -f {} \;

创建文件夹

mkdir webappsNews1

创建文件

mkdir

上传文件与下载文件:

上传方式一: 直接拖拽,选择x/y/Zmodem,即可;

上传方式二: Options>>>>SessionOptions>>>X/YZomdem>>>>upload,即可;

上传方式三: FileZilla

上传方式三: Xshell

下载的方式:Options>>>>SessionOptions>>>X/YZomdem>>>>download,即可;

更多文章,请关注http://blog.csdn.net/qq_37022150