1.查看文件夹属性 ls -ld test 2.文件夹的rwx --x:可以cd进去 r-x:可以cd进去并ls -wx:可以cd进去并touch,rm自己的文件,并且可以vi其他用户的文件 -wt:可以cd进去并touch,rm自己的文件 ls -ld /tmp drwxrwxrwt的权限值是1777(sticky)
添加一个tom用户,设置它属于users组,并添加注释信息 分步完成:useradd tom usermod -g users tom usermod -c "hr tom" tom 一步完成:useradd -g users -c "hr tom" tom 设置tom用户的密码 passwd tom 修改tom用户的登陆名为tomcat usermod -l
1.内部命令:echo 查看内部命令帮助:help echo 或者 man echo 2.外部命令:ls 查看外部命令帮助:ls --help 或者 man ls 或者 info ls 3.man文档的类型(1~9) man 7 man man 5 passwd 4.快捷键: ctrl + c:停止进程 ctrl + l:清屏 ctrl + r:搜索历史命令 ctrl +