摘要: 1.locate 从资料库直接找 很快 不是遍历 locate 文件名: locate inittab updatedb更新资料库 如想找刚建的文件 注意locate不收录tmp临时文件 所以找不到 locate -i teacher不区分大小写 可找到Teacher 2.which 查找命令文件 阅读全文
posted @ 2021-03-07 23:44 liv_vil 阅读(104) 评论(0) 推荐(0)
摘要: find 查找范围 find 【查找范围】 【查找条件】 1.按名字搜索 -name find /etc -name init find /etc -name init* 查找以init开头的 *匹配任意字符 find /etc -name *init*查找含init的 find /etc -nam 阅读全文
posted @ 2021-03-07 21:45 liv_vil 阅读(66) 评论(0) 推荐(0)
摘要: 1.chown change file ownership改变所有者 chown 用户名 文件 只有管理员root能改chown root abcd 2.chgrp 改所属组 同上 groupadd lampbrother chgrp 用户组 文件或目录 chgrp lampbrother abcd 阅读全文
posted @ 2021-03-07 14:59 liv_vil 阅读(58) 评论(0) 推荐(0)
摘要: linux命令格式 命令【-选项(分配命令功能)】【参数(作用对象)】 1.ls -a all 显示隐藏文件 -l long -h human人性化 -d direct只查看目录本身 -i inode 看i节点 2.mkdir 创建文件夹(目录) -p 递归创建 mkdir -p /tmp/Asia 阅读全文
posted @ 2021-03-07 14:06 liv_vil 阅读(71) 评论(0) 推荐(0)
摘要: 1.chmod change the permissions mod of a file 只有root 和所有者可更改 chmod g+w,o-r /tmp/Asia chmod g=rwx /tmp/Asia r--4 w--2 x--1 532= r-x-wx-w-所有者 所属组 其他人ugo 阅读全文
posted @ 2021-03-07 13:43 liv_vil 阅读(79) 评论(0) 推荐(0)
摘要: 1. 虚拟机选择桥接的话 分配地址到计算机子网下 如果选择host only 或NAT 就连vmnet1 8的地址 ifconfig eth0 192.168.1.120 2. Emulation改linux appearence 改traaditional 宋体 utf8 $符表示普通用户 # c 阅读全文
posted @ 2021-03-07 11:07 liv_vil 阅读(51) 评论(0) 推荐(0)