0% found this document useful (0 votes)
12 views15 pages

Linux Commands

The document contains a detailed command history from a session using SSH Secure Shell 3.2.9, primarily focused on system administration tasks. Commands include managing network configurations, installing software packages, and performing system updates. It also includes commands for managing Java installations and WildFly server operations.

Uploaded by

supriyo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views15 pages

Linux Commands

The document contains a detailed command history from a session using SSH Secure Shell 3.2.9, primarily focused on system administration tasks. Commands include managing network configurations, installing software packages, and performing system updates. It also includes commands for managing Java installations and WildFly server operations.

Uploaded by

supriyo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

SSH Secure Shell 3.2.

9 (Build 283)

Copyright (c) 2000-2003 SSH Communications Security Corp - http://www.ssh.com/

This copy of SSH Secure Shell is a non-commercial version.

This version does not include PKI and PKCS #11 functionality.

Last login: Tue Dec 10 12:16:39 2019

[root@localhost ~]# history | less

1 fdisk -l

2 df -h

3 cd /etc/

4 ls

5 cd sysconfig/

6 ls

7 cd network-scripts/

8 ls

9 vim ifcfg-eth0

10 service network restart

11 chkconfig network on

12 service sshd restart

13 chkconfig sshd on

14 cd

15 clear

16 mount /dev/cdrom /media/

17 exit

18 top

19 mysql -uroot -plibsys

20 cd df -h
21 df -h

22 cd /root/

23 ll

24 cd LS_HOME/

25 ll

26 init 0

27 mysql -uroot -plibsys

28 mysql -uroot -plibsys ls_search <schema_mysql.sql

29 df -h

30 ll

31 chmod -R jdk1.8.0_73_64\ bit_linux.zip

32 chmod -R 777 jdk1.8.0_73_64\ bit_linux.zip

33 unzip jdk1.8.0_73_64\ bit_linux.zip

34 ll

35 chmod -R 777 jdk1.8.0_73

36 chmod -R LS_HOME/

37 chmod -R 777 LS_HOME/

38 df -h

39 vi .bash_profile

40 ll

41 source .bash_profile

42 export JAVA_HOME=/root/jdk1.8.0_73/bin/

43 export LS_HOME=/root/LS_HOME/

44 ll

45 chmod -R 777 wildfly-10.0.0.Final/

46 cd wildfly-10.0.0.Final/bin/

47 ./standalone.sh -b=172.24.146.89

48 which java

49 cd ../../jdk1.8.0_73/bin/
50 cp -rf java /usr/bin/java

51 version -java

52 java -version

53 cd ~

54 vi .bash_profile

55 init 6

56 ll

57 cd jdk1.8.0_73/bin/

58 pwd

59 which java

60 cd /usr/bin/

61 mv java java_old

62 export JAVA_HOME=/root/jdk1.8.0_73/bin/

63 export LS_HOME=/root/LS_HOME/

64 which java

65 env

66 java -version

67 version -java

68 cd `

69 cd ~

70 java -version

71 which java

72 vi .bash_profile

73 export JAVA_HOME=/root/jdk1.8.0_73/bin/

74 export LS_HOME=/root/LS_HOME/

75 which java

76 version -java

77 java -version

78 cd wildfly-10.0.0.Final/bin/
79 ./standalone.sh -b=172.24.

80 cd ../../

81 pwd

82 cd jdk1.8.0_73

83 ll

84 cd bin/

85 ll

86 cd ../../

87 vi .bash_profile

88 cat /etc/redhat-release

89 uname -a

90 ll

91 which java

92 java -version

93 init 6

94 tail -f log/jboss.log

95 ps -ef | grep java

96 vi backuplibsys-2015

97 mkdir -p /var/data

98 chmod -R 777 /var/data/

99 service iptables save

100 service iptables stop

101 chkconfig iptables off

102 vi /etc/rc.local

103 mkdir log

104 chmod -R 777 log/

105 vi jboss

106 cp -rf jboss search

107 vi search
108 cp -rf search opac

109 vi opac

110 ll

111 chmod -R 777 jboss search opac

112 ll

113 cat /etc/rc.local

114 vi /etc/rc.local

115 cd /etc/rc.d/

116 ./rc.local

117 ps -ef | grep java

118 vi /etc/rc.local

119 ./rc.local

120 mysql -uroot -p

121 crontab -e

122 crontab -l

123 cd ~

124 ll

125 chmod -R 777 backuplibsys-2015

126 ./backuplibsys-2015

127 mysql -uroot -p

128 ./backuplibsys-2015

129 which java

130 java -version

131 cd wildfly-10.0.0.Final/bin/

132 ./standalone.sh -b=172.24.146.89

133 pwd

134 clear

135 exit

136 init 0
137 clear

138 date

139 date --set "2019-11-21 12:45:55"

140 clear

141 date

142 exit

143 crontab -l

144 clear

145 init 0

146 clear

147 date

148 exit

149 init 0

150 clear

151 date

152 exit

153 init 0

154 date

155 clear

156 exit

157 sudo apt-get install linux-headers-generic

158 apt-get install linux-headers-generic

159 ls

160 tar -xjf NVIDIA-Quadro-K2000-Linux-361.93.tar.gz

161 tar -xzf NVIDIA-Quadro-K2000-Linux-361.93.tar.gz

162 ls

163 ./configure

164 cd /root

165 make
166 sudo make install

167 cd NVIDIA-Linux-x86_64-361.93.03.run

168 rpm -ivh NVIDIA-Linux-x86_64-361.93.03.run

169 clear

170 sudo apt-get install NVIDIA-Linux-x86_64-361.93.03.run

171 clear

172 ls

173 ./configure

174 tar -xzf dell-nvidia-331.20-2dkms_rhel6.4.x86_64.rpm.tar.gz

175 ls

176 rpm -ivh dell-nvidia-331.20-2dkms_rhel6.4.x86_64.rpm

177 yum update

178 yum clean all

179 yum install dell-nvidia-331.20-2dkms_rhel6.4.x86_64.rpm

180 clear

181 rpm -ivh dell-nvidia-331.20-2dkms_rhel6.4.x86_64.rpm

182 rpm -ivh dkms*

183 rpm -ivh dkms

184 rpm -qa vsftpd-*

185 rpm -qa vsftpd*

186 cd /var/ftp/pub/

187 ls

188 cd Linux/

189 ls

190 cd

191 createrepo -v /var/ftp/pub/

192 cd /var/ftp/pub/

193 ls

194 cp -rf /var/ftp/pub/Linux/repodata/ /var/ftp/pub/repodata/


195 createrepo -g /var/ftp/pub/repodata/ /var/ftp/pub/

196 vim /etc/yum.repos.d/server.repo

197 yum clean all

198 yum update

199 vim /etc/yum.repos.d/server.repo

200 yum clean all

201 yum update

202 yum makecache

203 yum list all

204 cd

205 clear

206 cd /var/ftp/pub/

207 ls

208 cd Linux/

209 ls

210 cd Packages/

211 clear

212 rpm -ivh gcc-*

213 clear

214 date

215 clear

216 init 0

217 date

218 exit

219 cd /var/ftp/pub/

220 ls

221 rm -rf Linux/

222 ls

223 rm -rf repodata/


224 ls

225 clear

226 exit

227 fdisk -a

228 fdisk -l

229 fdisk /dev/sda

230 partprobe /dev/sda

231 fdisk -l

232 mkfs.ext3 /dev/sda5

233 partprobe /dev/sda

234 mkfs.ext3 /dev/sda5

235 fdisk -l

236 clear

237 mount -a

238 df -h

239 mkfs.ext3 /dev/sda5

240 clear

241 mount /dev/cdrom /media/

242 clear

243 cp -av /media/Packages/* /var/ftp/pub/

244 rpm -ivh --force /var/ftp/pub/createrepo-0.9.9-17.el6.noarch.rpm

245 rm -rf /var/ftp/pub/repodata

246 createrepo -v /var/ftp/pub/

247 service vsftpd restart

248 chkconfig vsftpd on

249 vim /etc/yum.repos.d/server.repo

250 yum clean all

251 yum update

252 yum install gcc*


253 vim /etc/yum.repos.d/server.repo

254 yum clean all

255 yum update

256 cd /var/ftp/pub/

257 ls

258 clear

259 rpm -ivh --force gnome-

260 rpm -ivh --force gnome-devel-docs-2.28.0-1.el6.noarch.rpm

261 rpm -ivh --force gcc-*

262 rpm -ivh --force libgcj-*

263 umount /media/

264 mount -o loop /dev/cdrom /mnt/

265 cp /mnt/media.repo /etc/yum.repos.d/rhel6dvd.repo

266 chmod 644 /etc/yum.repos.d/rhel6dvd.repo

267 vi /etc/yum.repos.d/rhel6dvd.repo

268 cd /mnt/

269 ls

270 vi /etc/yum.repos.d/rhel6dvd.repo

271 yum clean all

272 yum update

273 vi /etc/yum.repos.d/rhel6dvd.repo

274 yum clean all

275 yum update

276 cd /etc/yum.repos.d/

277 ls

278 vi server.repo

279 cd

280 yum clean all

281 yum update


282 yum install gcc*

283 yum install kernel-devel*

284 yum install dkms*

285 cd /var/ftp/pub/

286 rpm -ivh --force dkms*

287 yum install kde*

288 yum install gnome*

289 cd

290 ls

291 rpm -ivh --force dell-nvidia-331.20-2dkms_rhel6.4.x86_64.rpm

292 yum install dkms*

293 sudo apt-get install dkms

294 yum install dkms-*

295 clear

296 exit

297 startx

298 clear

299 X11

300 startx

301 crontab -l

302 cd /etc/

303 ls | less

304 vi cron.d

305 cd cron.d

306 ls

307 cd

308 vi /etc/crontab

309 crontab -l

310 vi /etc/crontab
311 service crond restart

312 chkconfig crond on

313 clear

314 vi /etc/crontab

315 crontab -e

316 service crond restart

317 chkconfig crond on

318 crontab -e

319 service crond restart

320 chkconfig crond on

321 startx

322 init 0

323 startx

324 init 0

325 startx

326 cat /etc/rc.local

327 tail -f /root/log/jboss.log

328 cd /usr/share/fonts/

329 ll

330 yum install arial*

331 yum install fonts*

332 yum install fonts-tweak-tool

333 cd /mnt/disc/

334 ll

335 cd /var/ftp/pub/

336 ll

337 tail -f /root/log/jboss.log

338 sudo apt-get install msttcorefonts

339 cd /etc/fonts/
340 cat conf.avail/

341 cd conf.avail/

342 ll

343 cd ../

344 ll

345 cat fonts.conf

346 cd ../

347 cd fonts/

348 ll

349 cd fonts.dtd

350 cd conf.d/

351 ll

352 cd ~

353 ll

354 cd jdk1.8.0_73

355 ll

356 cd db/

357 ll

358 cd ../

359 ll

360 cd jre/

361 ll

362 cd lib/]

363 cd lib/

364 cd font

365 cd fonts

366 ll

367 wget https://www.itzgeek.com/msttcore-fonts-2.0-3.noarch.rpm

368 cd ~
369 rpm -ivh --force msttcore-fonts-2.0-6.noarch.rpm

370 cd /etc/fonts/

371 ll

372 cd conf.avail/

373 ll

374 cd /var/

375 ll

376 cd /usr/share/fonts/

377 ll

378 cd default/

379 ll

380 cd Type1/

381 ll

382 cd ../ghostscript/

383 ll

384 cd ../../

385 ll

386 cd dejavu/

387 ll

388 cd ../

389 cd msttcore/

390 ll

391 fc-cache ~/.fonts/

392 man fc-cache

393 fc-cache -f /usr/share/fonts/

394 init 6

395 tail -f /root/log/jboss.log

396 startx

397 clear
398 ping 172.24.146.1

399 init 6

400 ping 172.24.146.1

401 clear

402 init 6

403 ping 172.24.146.1

404 clear

405 startx

406 clear

407 exit

408 df -h

409 cd wildfly-10.0.0.Final/standalone/

410 skill -kill java

411 ll

412 rm -rf data/ log/ tmp/

413 cd ../search/

414 rm -rf data/ log/ tmp/

415 cd ../opac

416 rm -rf data/ log/ tmp/

417 ps -ef | grep java

418 cd /etc/rc.d/

419 ./rc.local

420 cat /etc/rc.local

421 tail -f log/jboss.log

422 tail -f log/opac.log

423 clear

424 exit

425 history | less

(END)

You might also like