cut -d: -f1 /etc/passwd
查看当前登录的账户 who am i
Free 显示内存状态
用法 free -m -s (-m 表示内存的状态用 M 为单位来表示, -s 表示刷新的时间间隔,秒为单位)
示例: free -m -s 3
mount -a
-a Mount allfilesystems (of the given types) mentioned in fstab.
man ls
查看命令帮助文档
挂载就是要把分区挂到目录上这样你才能访问/var/log/messages
该日志文件,很有用,可用于排错
ll |grep "^d" cp cp install.log Desktop/ cp install.log Desktop/new_install.log cp -R /etc Desktop/ cp install* Desktop/ cp -l install.log hardlink.install.log cp -s install.log symlink.install.log mv rm Desktop/* -rf mv Desktop/hardlink.install.log . mv hardlink.install.log my.log rmdir rmdir mydir mkdir -p a/b/c rmdir -p a/b/c chgrp chgrp test100 mydir chgrp -R test100 mydir/ chgrp -R 0 mydir/ chmod chmod u=rwx,g=rw,o=rw install.log chmod u-x install.log chmod a=r install.log chmod 644 install.log chown chown test100 install.log chown test100:test100 install.log chown root.root install.log find find / -name passwd find /root -name mylinux -exec rm {} \; whereis whereis ls which which ls ehco $PATH file file install.log file /sbin/fdisk touch file{1,2,3} locate locate passwd updatedb