摘要: 作业四: 1) 建立/etc/passwd的软连接文件,放在/tmp目录下 [root@localhost 桌面]# ln -s /etc/passwd/a.txt /tmp/aa.txt 2) 建立/etc/passwd的硬链接文件,放在/boot下,如果不成功,思考是为什么 [root@loca 阅读全文
posted @ 2017-03-16 22:10 qianxiamo 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 作业三: 1) 开启Linux系统前添加一块大小为20G的SCSI硬盘 2) 开启系统,右击桌面,打开终端 3) 为新加的硬盘分区,一个主分区大小为10G,剩余空间给扩展分区,在扩展分区上划分两个逻辑分区,大小各5G 4) 格式化主分区为ext3系统 h5) 格式化两个逻辑分区为ext4系统 阅读全文
posted @ 2017-03-16 22:06 qianxiamo 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 作业二: 1) 使用vi编辑器编辑文件/1.txt进入编辑模式写入内容“hello world” [root@localhost ~]# vi 1.txt 2) 进入命令行模式复制改行内容,在下方粘贴80行 Vim 1.txt 插入模式 yy80p [root@localhost ~]# vi 1. 阅读全文
posted @ 2017-03-16 22:01 qianxiamo 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 作业一: 1) 将用户信息数据库文件和组信息数据库文件纵向合并为一个文件/1.txt(覆盖) [root@localhost ~]# cat /etc/passwd /etc/group > 1.txt 2) 将用户信息数据库文件和用户密码数据库文件纵向合并为一个文件/2.txt(追加) [root 阅读全文
posted @ 2017-03-16 21:57 qianxiamo 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 作业三: 以操作文件的方式,新建一个用户alex echo "alex:x:1200:1200::/home/alex/:/bin/bash" >> /etc/passwd echo "alex:x:1200:" >> /etc/group echo "alex::17239:0:99999:7:: 阅读全文
posted @ 2017-03-16 08:31 qianxiamo 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 作业四: 1) 新建目录/test/dir,属主为tom,数组为group1,/test目录的权限为777 # useradd tom [root@localhost /]# groupadd group1 [root@localhost /]# chown tom.group1 /test/dir 阅读全文
posted @ 2017-03-16 08:29 qianxiamo 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 作业二: 1) 在用户的主目录下创建目录test,进入test创建空文件file1 # ls /home/test file 2) 以长格式形式显示文件信息,注意文件的权限和所属用户和组 # ls -l 总用量 0 -r--r-xr-x. 1 root root 0 3月 15 15:06 file 阅读全文
posted @ 2017-03-16 08:28 qianxiamo 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 作业一: 1) 新建用户natasha,uid为1000,gid为555,备注信息为“master” natasha:x:1004:555:master:/home/natasha:/bin/bash 2) 修改natasha用户的家目录为/Natasha usermod -d /Natasha n 阅读全文
posted @ 2017-03-16 08:27 qianxiamo 阅读(133) 评论(0) 推荐(0) 编辑