几个实用的linux命令

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值