COMMANSnewWord格式文档下载.docx
《COMMANSnewWord格式文档下载.docx》由会员分享,可在线阅读,更多相关《COMMANSnewWord格式文档下载.docx(10页珍藏版)》请在冰点文库上搜索。
![COMMANSnewWord格式文档下载.docx](https://file1.bingdoc.com/fileroot1/2023-5/6/21940c76-ab1e-46ef-ba69-ebff96b1d879/21940c76-ab1e-46ef-ba69-ebff96b1d8791.gif)
23clear
24manman
25manls
26ls–help
33clear
34mkdirtianjun
35ls
36rmdirtianjun
37ls
38mkdirtianjun/tianjun/tianjun/tianjun
39mkdir-ptianjun/tianjun/tianjun/tianjun
40lstianjun/tianjun/tianjun/tianjun/
41lstianjun/tianjun/tianjun/
42rmdirtianjun
43rm-rftianjun
44ls
46ls
47touchtest
48echo"
thisismyfirstfiles"
>
test
49lntestmy.hard
50ln-stestmy.soft
51ll
52filetest
53mkdirtianjun
54cptesttianjun/
55lstianjun/
56mymy.hardtianjun/
57mvmy.hardtianjun/
58lstianjun
59ls
60ll
61chmod777test
62ll
63chmodu=rwx,g=rx,o=rtest
64ll
65chmod752test
66ll
67chmodg+wtest
68ll
69chmodg-wtest
70ll
72ll
73useraddtianjun
74chowntianjun.roottest
75ll
76chowntianjun.tianjuntest
77ll
78chowntianjun.tianjuntianjun/
79ll
80lltianjun/
83chown-Rtianjun.tianjuntianjun/
84lltianjun/
86cp/etc/*.conf.
87ll
88catwebalizer.conf
89catwebalizer.conf
90morewebalizer.conf
91lesswebalizer.conf
92headwebalizer.conf
93tailwebalizer.conf
94head-15webalizer.conf
95tail-15webalizer.conf
96find/-nametianjun
102find/-nametianjun
103locatetianjun
104locate-u
105locatetianjun
106locateroot
108greproot/etc/passwd
109more/etc/passwd|greproot
110grep-vroot/etc/passwd
111more/etc/passwd|grep-vroot
114who
115whoami
116whoami
118fingerroot
119fingertianjun
123passwd
124passwdtianjun
125gpasswdtianjun
126date
127date-set=2010/10/18
128date--set=2010/10/18
129date--set=2010/10/1811:
31:
50
130date--set="
2010/10/1811:
50"
131date
133clear
134free
135free-k
136free-m
137free–g
Login
Logout
140shutdown
141shutdown-tsecs5"
thisserverwillbeshutdown,pleaselogout"
Shutdown–hnow
Shutdown–tsecs0
Init0–t0
Init0|1|2|3|5|6
关机单多多+网多+网+图形重启
143du
144du-k
145du-m
146df-k
147df-m
148df-m–a
151clear
152mount-tauto/dev/cdrom/mnt
153cd/mnt
154ls
155cdRedHat/
156ls
157cdRPMS/
158ls
159pwd
160mount
161umount/mnt
162pwd
163cd/
164umount/dev/cdrom
165mount
166umount/dev/cdrom
167mount
173cp/boot/*.
174ls
175ll
176tar-cvfmy.tarconfig-2.4.20-8initrd-2.4.20-8.img
177ll
178tar-czvfmy.tar.gzconfig-2.4.20-8initrd-2.4.20-8.img
179ll
180rmconfig-2.4.20-8initrd-2.4.20-8.img
181ls
182tar-xvfmy.tar
183ls
184rminitrd-2.4.20-8.imgconfig-2.4.20-8
185tar-xzvfmy.tar.gz
186ls
2ifconfigeth0192.168.3.250netmask255.255.255.0up
ifconfigeth0:
1192.168.3.251netmask255.255.255.0up
3ifconfig查看配置的IP地址
4ping192.168.3.250LINUX自己的地址
6ping192.168.3.2XP的IP地址
7clear
9serviceiptablesstop手动停止防火墙
10setup菜单选择停止防火墙
11routeadddefaultgw192.168.3.1添加网关
12netstat-antp|grepsshd查看指定服务状态
13netstat–antp查看全部的服务状态
DHCP服务
17mount-tauto/dev/cdrom/mnt/cdrom
18cd/mnt/cdrom/
19ls
20cdRedHat/RPMS/
23ls
24ls|grepdhcp
25cd/
26umount/mnt/cdrom/退光盘
28eject
29mount
30mount-tauto/dev/cdrom/mnt/cdrom第二张光盘
31cd/mnt/cdrom/
32cdRedHat/RPMS/
34ls
35ls|grepdhcp
37rpm-qa|grepdhcp
挂光盘和安装的过程
配置LINUX的网卡地址,保证在DHCP服务器服务的网段
[root@localhostroot]#cp/usr/share/doc/dhcp-3.0pl1/dhcpd.conf.sample/etc/dhcpd.conf
Vi/etc/dhcpd.conf
完成相关参数修改,保存退出
[root@localhostroot]#servicedhcpdstart
[root@localhostroot]#/etc/rc.d/init.d/dhcpdstart
DNS域名为:
IP:
192.168.3.250
配置过程与步骤
1、查看软件包的安装情况
rpm-qa|grepbind
rpm-qa|grepcaching
如果没有安装,进入第三张光盘安装
rmp–ivhbind*caching*--aid–force
2、修改主配置文件
[root@localhostroot]#vi/etc/named.conf添加如下:
zone"
"
IN{//正向区域配置文件指定
typemaster;
file"
teacher.zone"
;
allow-update{none;
};
};
3.168.192.in-addr.arpa"
IN{//反向区域配置文件指定
3.168.192.zone"
3、生成和修改正向区域和反向区域文件
cd/var/named
cplocalhost.zoneteacher.zone
cpnamed.local3.168.192.zone
[root@localhostnamed]#viteacher.zone修改正向配置文件
$TTL86400
@INSOA(
42;
serial(d.adams)
3H;
refresh
15M;
retry
1W;
expiry
1D);
minimum
INNS.
nsINA192.168.3.250
wwwINA192.168.3.250
gwINA192.168.3.1
[root@localhostnamed]#vi3.168.192.zone修改反向配置文件
@INSOA..(
1997022700;
Serial
28800;
Refresh
14400;
Retry
3600000;
Expire
86400);
Minimum
250INPTR.
1INPTR.
4、启动相关服务
servicenamedstart
5、测试
nslookup
nslookup192.168.3.250
nslookup192.168.3.1