Linux创建
2.安装redhat linux系统7.2并详述安装过程。
3.管理员和普通用户修改密码时有什么不一样?
管理员可以修改本主机上所有用户的密码,而普通用户只可以修改自己的密码
4.写出**密码详细流程。
Mount -o /remount,rw /sysroot->chroot /sysroot->passwd root->REDHAT
5.查看当前内核版本号和系统版本号并介绍每个数值表示什么意思?
3.10.0-327.el7为例。3为主版本号,10为次版本号,一般偶数表示较为稳定的版本,0为修订版本号,327.el7为修改次数,表示已经被修改了327次
6.简述装好虚拟机如何获取ip地址
Open in terminal->dhlient->ip addr查询
7.描述ls -l 每个字符表示什么意思?
命令 参数
8.创建目录/test
要求:1.在当前目录下创建普通文件file,并将/etc/passwd文件中的内容写入file文件。
[[email protected] /]# mkdir /test
[[email protected] /]# cd /test
[[email protected] test]# touch /file
[[email protected] test]# nano /test/file
2.在/目录下创建file文件的软连接file.ln
[[email protected] test]# cd /
[[email protected] /]# ln -s /test/file /file.ln
3.分别在/mnt和/test目录创建file的硬链接文件为file.txt
[[email protected] /]# cd /mnt
[[email protected] mnt]# ln /test/file /file.txt
8.简述什么是软连接,什么是硬链接
硬链接是指通过索引节点进行链接,在Linux系统里保存在硬盘分区的文件不论是什么文件都会给他分配一个索引编号,称之为索引节点号,硬链接就是多个文件指向同一个索引号。
软连接是指类似于Windows系统下的快捷方式,软连接实际上是一个文本文件,里面包含着另一个文件的位置信息,,拥有自己的索引号
10.在/下创建dir目录。
1.将/etc/sysconfig/network-scripts目录复制到当前目录。
[[email protected] network-scripts]# cd /dir
[[email protected] dir]# cd /etc/sysconfig/network-scripts /dir
[[email protected] network-scripts]#
2.查找系统上所有的123文件并复制到当前目录。
[[email protected] /]# find /123
/123
[[email protected] /]#
[[email protected] /]# cd /dir
[[email protected] dir]# find /123
/123
[[email protected] dir]# cp /r /123 /dir
cp: cannot stat ‘/r’: No such file or directory
[[email protected] dir]# cp -r /123 /dir
cp: overwrite ‘/dir/123’? y
11.创建命令缓存可以实现chakan执行cat指令并查看指定命令别名。
[[email protected] dir]# alias chakan=‘cat’
[[email protected] dir]# hash -t cat
/usr/bin/cat
[[email protected] dir]#