码迷,mamicode.com
首页 >  
搜索关键字:cento 7.1 userai userdel passwd    ( 5274个结果
马哥Linux网络班作业(5)
1、显示当前系统上root、fedora或user1用户的默认shell;答:[root@mageeduCT7~]#egrep‘^(root|user1)\>‘/etc/passwd|cut-d:-f7 /bin/bash /bin/bash2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();答:[root@mageeduCT7~]#grep‘\<[[..
分类:系统相关   时间:2016-09-04 17:51:27    阅读次数:286
第五周作业
1、显示当前系统上root、fedora或user1用户的默认shell;#useraddfedora#useradduser1#grep-E"^(root|fedora|user1)\>"/etc/passwd|cut-d:-f1,7(注意是使用扩展正则表达式)^:行首|:或者():将一个或多个字符捆绑在一起,当作一个整体进行处理cut-d分隔符-fN,M:指定分隔..
分类:其他好文   时间:2016-09-04 17:48:12    阅读次数:193
2016-9-4第五周作业
1、显示当前系统上root、fedora或user1用户的默认shell;#grep--color-E"^(root|fedora|user1).*‘/etc/passwd|cut-d:-f1,72、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();grep--color-E"[[:alnum:]]+\(\)"/etc/rc.d/init.d/functionsgrep..
分类:其他好文   时间:2016-09-04 17:47:10    阅读次数:197
第五周作业
本周作业内容:1、显示当前系统上root、fedora或user1用户的默认shell;答:[root@localhost~]#cat/etc/passwd|egrep‘^(root|fedora|user1)‘ root:x:0:0:root:/root:/bin/bash [root@localhost~]#2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:he..
分类:其他好文   时间:2016-09-04 17:46:47    阅读次数:210
homework week05
本周作业内容:1、显示当前系统上root、fedora或user1用户的默认shell;[root@captain~]#grep-wE‘^(root|fedora|user1)‘/etc/passwd|>awk-F‘[:]‘‘BEGIN{printf("username\tshell\n")}>{printf("%-15s\t%s\n",$1,$NF)}‘ usernameshell root/bin/bash2、找出/etc/rc.d/..
分类:其他好文   时间:2016-09-04 00:17:17    阅读次数:173
xshell 密钥登陆
在shell工具-新建用户密钥向导,生成公钥和私钥对,私钥可以设置密码,也可以空密码。登陆服务器,查看/root下是否有.ssh目录,若没有,就建一个将生成的公钥上传到服务器.ssh目录下,并改名authorized_keys修改配置文件,将密钥认证和路径开启,将passwd认证关闭通过xshell登..
分类:系统相关   时间:2016-09-04 00:17:00    阅读次数:434
01 Linux安装(转)
1、准备安装 1.1 系统简介 CentOS 是什么? CentOS是一个基于Red Hat 企业级 Linux 提供的可自由使用的源代码企业级的 Linux 发行版本。每个版本的 CentOS 都会获得七年的支持(通过安全更新方式)。新版本的 CentOS 每两年发行一次,而每个版本的 CentO ...
分类:系统相关   时间:2016-09-03 16:21:51    阅读次数:270
linux svn 用户配置
1:创建存放仓库的目录 mkdir -p /home/svn/ 2:创建svn仓库 svnadmin create /home/svn/evansource 3:配置仓库(一共三个文件夹auzhz、passwd、svnserve.conf) 上述三个文件保存在ecansource/conf文件夹下 ...
分类:系统相关   时间:2016-09-03 13:46:03    阅读次数:238
腾讯云,激活ubuntu root登录,设置ssh
http://bbs.qcloud.com/thread-11554-1-1.html ubuntu 默认没有激活root 要激活比较简单,就是在root权限下为root设置一下密码 sudo passwd root 设置密码即可 如果要ssh远程登录,则更改配置 sudo vi /etc/ssh/ ...
分类:系统相关   时间:2016-09-03 13:44:24    阅读次数:343
第五周作业
第五周作业1、显示当前系统上root、fedora或user1用户的默认shell;[root@STCO6~]#grep-E‘^(root|fedora|user1)\>‘/etc/passwd|cut-d:-f1,7 root:/bin/bash fedora:/bin/bash user1:/bin/bash2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hel..
分类:其他好文   时间:2016-09-03 07:31:17    阅读次数:158
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!