-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expand file tree
/
Copy path9. linux commands.txt
More file actions
43 lines (43 loc) · 1.29 KB
/
9. linux commands.txt
File metadata and controls
43 lines (43 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
370 tree /var/log
371 curl https://rpmfind.net/linux/centos/7.9.2009/os/x86_64/Packages/tree-1.6.0-10.el7.x86_64.rpm -o tree-1.6.0-10.el7.x86_64.rpm
372 ls
373 rpm -ivh tree-1.6.0-10.el7.x86_64.rpm
374 tree /var/log/
375 clear
376 curl https://rpmfind.net/linux/centos/7.9.2009/os/x86_64/Packages/httpd-2.4.6-95.el7.centos.x86_64.rpm -o httpd-2.4.6-95.el7.centos.x86_64.rpm
377 ls
378 rpm -ivh httpd-2.4.6-95.el7.centos.x86_64.rpm
379 clear
380 rpm --help
381 clear
382 rpm -qa
383 clear
384 rpm -qa | grep tree
385 rpm -e tree-1.6.0-10.el7.x86_64
386 rpm -qa | grep tree
387 tree
388 clear
389 cd /etc/yum.repos.d/
390 ls
391 cat CentOS-Base.repo
392 clear
393 yum search httpd
394 cd
395 clear
396 yum install httpd
397 clear
398 yum remove httpd
399 yum install httpd
400 clear
401 yum search nginx
402 yum install nginx
403 clear
404 yum install jenkins
405 ls /etc/yum.repos.d/
406 clear
407 yum install wget -y
408 sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
409 cat /etc/yum.repos.d/jenkins.repo
410 rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
411 yum install jenkins java-1.8.0-openjdk-devel -y
412 yum upgrade