Linux 基本操作命令

我把最近搭建项目中常用的命令整理了一下

ftp xxx.xxx.xx.x

解压
unzip  xxx.zip

删除文件夹 没提示
rm -rf xxx

删除文件 没提示
rm -if xxxx.xxx

文件夹覆盖
/bin/cp -avpf   /root/xxx /usr/xxx
如果更改一个目录及目录下的所有子文件,命令如下
chmod -R 777 《文件或目录名》

防火墙
service network start
service network stop

查看
vi xxx/xxx.xx

rpm

find

查看服务器的状态

top
free -m
df -lh

当然还有
ls
pwd
kill -9 pid
等等

猜你喜欢

转载自network-eagle.iteye.com/blog/2028403