黑马程序员C语言基础(一)第二天
发布日期:2021-05-10 09:17:14 浏览次数:23 分类:精选文章

本文共 2421 字,大约阅读时间需要 8 分钟。

���������������������������������������������������������������������������������

��� Unix/Linux ������������������������������������������������������������������������������������������������������������������������

1. ������������������

��� Unix/Linux ��������������������������������������������������������� whoami���

������������������

������ cat /etc/passwd ���������������������������������������������������

������

whoami

2. ������������������

������������������������

������ who ���������������������������������������������������������������

������������

  • -m ��� --count������������������������������������������������
  • -u���������������������������������������������������������������������

������

������������������������

who

������������������������

who -u

3. ������������������

������������������

������ ps ���������������������������������������������������

������������

  • -a������������������������������������������������
  • -u���������������������������������
  • -x���������������������������������������

������

ps -aux

4. ������������

������������

������ su ������������������������������������������������������������������������ exit ���������

������

��������� root ������

su -

���������������������

exit

5. ������������������

������������������

������ chmod ������������������������������������������������������������������������������������

���������

chmod u/g/o/a +-/= rwx file
  • u, g, o, a���������������������������������������������������������������������
  • +/-=������������������������������������������������������

������

���������������������������������������

chmod u=rw237 file

���������������

���������������������������������������������������

  • r ������ 4
  • w ������ 2
  • x ������ 1
  • 0 ������������������

������

chmod 751 file

���������

  • ���������������������������������
  • ���������������������������
  • ������������������������

6. ���������������������

���������������������

������ chown ������������������������������������������

������

��������������������������� john

chown john file

7. ���������������������

���������������������

������ chgrp ������������������������������������������

������

��������������������������� webgroup

chgrp webgroup file

8. ������������������

������������������������������������������������������������������������ logout ��� exit���

������

logout

9. ������������

������������������������

������ ifconfig ������������������������������������������

������

ifconfig eth0

10.���

上一篇:ubuntu为什么每次用apt安装软件前都要更新(apt-get update)一下?
下一篇:linux 中~$和/$的区别?

发表评论

最新留言

路过,博主的博客真漂亮。。
[***.116.15.85]2025年04月21日 04时42分28秒