linux命令的使用

来源:互联网 发布:印刷厂排版软件 编辑:程序博客网 时间:2024/06/05 17:44
1. Nslookup是一个检测网络中DNS服务器是否能正确实现域名解析的命令行工具。在windows/Linux下均可使用;

2. 查看内存使用情况:free -m 

3. 查看磁盘空间使用情况:df -h

4. 
启动一个服务:systemctl start firewalld.service
关闭一个服务:systemctl stop firewalld.service 
重启一个服务:systemctl restart firewalld.service
显示一个服务的状态:systemctl status firewalld.service
在开机时启用一个服务:systemctl enable firewalld.service
在开机时禁用一个服务:systemctl disable firewalld.service
查看服务是否开机启动:systemctl is-enabled firewalld.service;echo $?
查看已启动的服务列表:systemctl list-unit-files|grep enabled 

5. 从一台Linux主机复制文件或文件夹到另一台主机
scp -r /home/test  root@10.0.1.111:/home

6. top查看运行的进程占用的内存













原创粉丝点击