redhat linux 基本操作6

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了redhat linux 基本操作6相关的知识,希望对你有一定的参考价值。

vim /etc/ssh/sshd_config ##编辑允许登陆的配置文件

systemctl rstart sshd ##重起sshd服务

PermitRootLogin no ##不允许root用户被远程登陆

Allowusers linux westos ##允许那个用户可以被访问


压缩命令  压缩参数 压缩后文件名 待压缩的文件名(路径)

tar -cf etc.tar /etc/ ##创建etc.tar压缩文件,原文件为/etc/ create file

tar -xf etc.tar ##解压缩etc.tar文件 

tar -rf etc.tar file ##把file文件添加到etc.tar压缩文件中 readd file 

tar -f etc.tar --get file ##仅仅把压缩文件中的file文件解压缩出来

tar f etc.tar --delete file ##仅仅删掉压缩文件中的file文件


du -sh /etc/ ##查看文件大小

gzip etc.tar ##压缩

gunzip etc.tar.gz ##解压缩

bzip2 etc.tar##压缩

bunzip2 etc.tar.bz2##解压缩

xz etc.ta##压缩r

unxz etc.tar.xz##解压缩

zip -r etc.tar.zip etc.tar ##压缩

unzip etc.tar.zip##解压缩


rsync -rp /mnt [email protected]:/mnt/

cp -p

scp -r /etc/ [email protected]:/mnt/

ctl + 左右键 ##跳到另一个单词首部


本文出自 “12086672” 博客,请务必保留此出处http://12096672.blog.51cto.com/12086672/1859005

以上是关于redhat linux 基本操作6的主要内容,如果未能解决你的问题,请参考以下文章

redhat linux 基本操作6

HP C7000刀片服务器实战3:Redhat Linux 6.8操作系统安装

redhat基本操作

linux基本介绍与环境搭建

mongoDB在redhat下的安装

RedHat 6 安装配置Tomcat 7