
本文共 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.���
发表评论
最新留言
关于作者
