人力资源课件-薪酬设计实施方案.ppt
《人力资源课件-薪酬设计实施方案.ppt》由会员分享,可在线阅读,更多相关《人力资源课件-薪酬设计实施方案.ppt(36页珍藏版)》请在文库网上搜索。
1、r mv vi rm cp 3.2.1 创建文件和文件夹 命令之:touch ; touch tt 触摸;接触; 作用:常用来创建空文件,如果文件存在,则修改这个文件的时间 语法:touch 文件名 rootxuegod63 # cd /opt/ rootxuegod63 opt# touch a.txt rootxuegod63 opt# touch file1 file2 rootxuegod63 opt# touch file6.20 #创建 file6 到 file20 的文件 rootxuegod63 opt# ls a.txt file10 file12 file14 file16
2、 file18 file2 file6 file8 rh file1 file11 file13 file15 file17 file19 file20 file7 file9 rootxuegod63 # touch a.txt rootxuegod63 # ll a.txt -rw-r-r-. 1 root root 0 8 月 10 21:13 a.txt #这个时间是文件的修改时间。 rootxuegod63 # stat a.txt #查看文件属性(其中包括文件时间属性) 文件:a.txt 大小:4 块:8 IO 块:4096 普通文件 设备:803h/2051d Inode:182
3、17320 硬链接:1 权限:(0755/-rwxr-xr-x) Uid:( 0/ root) Gid:( 0/ root) 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神 IT 教育官方 QQ 群:1072932914 或唐老师 QQ:3340273106 领取更多资料 学神 IT 教育官方 QQ 群:1072932914 或唐老师 QQ:3340273106 领取更多资料 最近访问:2021-0
4、3-09 23:03:19.747577494 +0800 最近更改:2021-03-09 23:03:58.216892266 +0800 最近改动:2021-03-09 23:04:12.116010166 +0800 注: 访问时间:atime 查看内容 cat a.txt 修改时间:mtime 修改内容 vim a.txt 改变时间:ctime 文件属性,比如权限 change time。 chmod +w a.txt rootxuegod64 # echo $LANG #查看当前语言设置 zh_CN.UTF-8 rootxuegod64 # LANG=en_US.UTF-8 #切换为
5、英文 rootxuegod63 # stat a.txt rootxuegod64 # LANG=zh_CN.UTF-8 #切换为中文 3.2.2 使用 vim 和重定向创建一个新文件 用 vim 命令创建一个新文件 rootxuegod63 mnt# vim xuegod-1.txt 用重定向创建一新文件 rootxuegod63 mnt#echo aaa xuegod.txt 3.2.3 命令之:mkdir 作用:创建目录 语法:mkdir (选项) 文件夹名子 例: rootxuegod63 opt# mkdir dir1 rootxuegod63 opt# mkdir dir2 dir
6、3 /home/dir4 rootxuegod63 opt# ls /home/ dir4 user1 rootxuegod63 opt# mkdir /tmp/a/b/c mkdir: 无法创建目录/tmp/a/b/c: 没有那个文件或目录 rootxuegod63 opt# mkdir -p /tmp/a/b/c #在创建一个目录的时候,如果这个目录的上一 级不存在的话,要加参数-p rootxuegod63 opt# tree /tmp/a/b/c 互动:在当前目录下,已经存在一个文件后,可以创建同名的目录文件吗? rootxuegod63 opt# touch aaa rootxueg
7、od63 opt# mkdir aaa #不可以创建成功,因为目录下不能存在两个同名的文件。 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神 IT 教育官方 QQ 群:1072932914 或唐老师 QQ:3340273106 领取更多资料 学神 IT 教育官方 QQ 群:1072932914 或唐老师 QQ:3340273106 领取更多资料 3.2.4 删除文件和目录 用到的命令:rm 作用:可
8、以删除一个目录中的一个或多个文件或目录,对于链接文件,只是删除整个链接文件,而原 文件保持不变的 语法:rm (选项) 处理对象 选项: -f 强制删除,没有提示 -r 删除目录,递归删除,把目录下的文件和文件夹也删除 例子: rootxuegod63 opt# rm -rf a.txt rootxuegod63 opt# rm -rf a.txt dir rootxuegod63 opt# rm -rf file* rm -rf (慎用,一定要在删除以前确定一下所在目录,防止误删除重要数据) 3.2.5 复制文件 命令:cp 源文件/目录 目标文件/目录 选项:-R/r:递归处理,将指定目录
9、下的所有文件与子目录一并处理。复制目录时会使用 r 参数 例子: rootxuegod63 # cp /etc/passwd /opt/ #复制文件 rootxuegod63 # cp -r /boot/grub2 /opt/ #复制目录 rootxuegod64 # cp -r /boot/grub2 /etc/passwd /opt #复制多个文件到目录 选项: :覆盖文件,不提示 例子: rootxuegod64 # cp -r /boot/grub2 /etc/passwd /opt #反斜杠,覆盖文件,不提示 选项:-p:复制文件会保留文件属性 例子: rootxuegod64 #
10、touch c.txt rootxuegod64 # chmod a+w c.txt #添加写权限 rootxuegod64 # ll c.txt #有写权限 rootxuegod64 # cp c.txt /opt/ #复制到目录 互动:复制到目录后,这个文件会带上 w 写权限吗? rootxuegod64 # ll /opt/c.txt #检查,没有写权限 rootxuegod64 # cp -p c.txt /opt #-p 选项会保留文件属性 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神
11、IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神 IT 教育官方 QQ 群:1072932914 或唐老师 QQ:3340273106 领取更多资料 学神 IT 教育官方 QQ 群:1072932914 或唐老师 QQ:3340273106 领取更多资料 rootxuegod64 # ll /opt/c.txt #检查,有写权限 rootxuegod63 opt# mkdir dir1 dir2 dir3 rootxuegod63 opt# cp -rp/opt/!(dir1 | dir2) /root/ #除了 dir1 或 dir2 以外
12、其他文件 都复制到 root 目录下 3.2.6 移动文件 rootxuegod63 # cd /opt rootxuegod63 opt# mv passwd bbbpasswd #重命名 rootxuegod63 opt# mv bbbpasswd /opt/passwd #在移动文件的时候支持改名操作 rootxuegod63 opt# touch file1 file2 file3 file4 rootxuegod63 opt# mv /opt/!(file1 | file2) /root/ #除了 file1 或 file2 以外其他文件都 移动到 root 目录下 3.3 查看文件
13、 3.3.1 命令之:cat 语法:cat 文件名 作用:查看文件内容,一次显示整个文件的内容 例子: rootxuegod63 # cat /etc/passwd 3.3.2 命令之:more 作用:以分页形式显示文件内容 语法:more + 文件名 说明: 按下回车刷新一行,按下空格刷新一屏,输入 q 键退出 例: rootxuegod63 # cat /proc/cpuinfo | more rootxuegod63 # ifconfig | more rootxuegod63 # more /proc/cpuinfo 3.3.3 命令之:less 作用:和 more 功能一样 语法:l
14、ess +文件名 说明:linux 中 more 与 less 的区别 more:不支持后退,但几乎不需要加参数,空格键是向下翻页,Enter 键是向下翻一行,在不需要后 退的情况下比较方便 less:支持前后翻滚,既可以向上翻页(pageup 按键) ,也可以向下翻页(pagedown 按键) 。 ,空 格键是向下翻页,Enter 键是向下翻一行 3.3.4 命令之:head 作用: 用于显示文件的开头的内容。在默认情况下,head 命令显示文件的头 10 行内容 语法:head(选项)文件名 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT
15、 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神IT 学神 IT 教育官方 QQ 群:1072932914 或唐老师 QQ:3340273106 领取更多资料 学神 IT 教育官方 QQ 群:1072932914 或唐老师 QQ:3340273106 领取更多资料 参数: -n 显示从文件头开始的行数 rootxuegod63 opt# head /etc/passwd rootxuegod63 opt# head -n 3 /etc/passwd #显示前 3 行 3.3.5 命令之:tail 作用: 用
16、于显示文件中的尾部内容。默认在屏幕上显示指定文件的末尾 10 行 语法:tail (选项)文件名 参数: -n 显示文件尾部多少行的内容(n 为数字) -f 动态显示数据(不关闭),常用来查看日志 rootxuegod63 # tail -n 3 /var/log/secure #查看最后 3 行记录 rootxuegod63 # tail -3 /var/log/secure #查看最后 3 行记录 rootxuegod63 # tail -f /var/log/secure #在一个终端执行此命令动态查看文件内容 rootxuegod63 # tailf /var/log/secure #
17、在一个终端执行此命令动态查看文件内容 rootxuegod63 # ssh root192.168.1.63 #在另一个终端远程登录 Linux,登录成功后 rootxuegod63 # tail -f /var/log/secure #可以动态查看到登录成功的日志 Nov 17 00:08:32 xuegod63 sshd2924: Accepted password for root from 192.168.1.63 port 39904 ssh2 3.4 实战:xfs 文件系统的备份和恢复 XFS 提供了 xfsdump 和 xfsrestore 工具协助备份 XFS 文件系统中的数据
18、。xfsdump 按 inode 顺序备份一个 XFS 文件系统。 centos7 开始选择 xfs 格式作为默认文件系统,而且不再使用以前的 ext,仍然支持 ext4,xfs 专 为大数据产生,每个单个文件系统最大可以支持 8EB(1EB=1024PB,1PB=1024TB,1TB=1024GB),单 个文件可以支持 16TB,不仅数据量大,而且扩展性高。还可以通过 xfsdump,xfsrestore 来备份和恢 复。 与传统的 UNIX 文件系统不同,XFS 不需要在备份前被卸载;对使用中的 XFS 文件系统做备份就可 以保证镜像的一致性。XFS 的备份和恢复的过程是可以被中断然后继续
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 人力资源 课件 薪酬 设计 实施方案