forked from palashGit/kb8-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLetsdoit
126 lines (114 loc) · 2.89 KB
/
Letsdoit
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
30th Jan 2019
===============
1. How can we upgrade java from 1.7 to 1.8 ?
http://bhargavamin.com/how-to-do/setting-up-java-environment-variable-on-ec2/
1. How to Set the default region on AWS.
Create a role with s3 fullaccess and assign the same to ec2 instance
create a user give admin access use his Access Key & Secret Access Key for setting default region on EC2
=====================================
[root@ip-172-31-25-172 ~]# aws configure
AWS Access Key ID [None]: AKIAI7HRVOZ4NKTQ
AWS Secret Access Key [None]: 0omB/abqnotosMicO/KgXjKa//OYJpjYW/qL
Default region name [None]: ap-south-1
Default output format [None]: json
[root@ip-172-31-25-172 ~]#
[root@ip-172-31-25-172 ~]#
[root@ip-172-31-25-172 ~]# aws s3 mb s3://satyam2051
make_bucket: satyam2051
[root@ip-172-31-25-172 ~]#
Chmod, Chown,Stickty bit, suid, sgid and Umask
#ps -ef
#top
#ps -ef | grep java
Changing the priorty of PID from 0 to -10
==========================================
[root@ip-172-31-21-137 ec2-user]# renice -10 3726
3726 (process ID) old priority 0, new priority -10
What is INODE in Linux and how to check INode
# df -iH
Filesystem Inodes IUsed IFree IUse% Mounted on
devtmpfs 122k 281 122k 1% /dev
tmpfs 127k 1 127k 1% /dev/shm
tmpfs 127k 374 126k 1% /run
tmpfs 127k 16 127k 1% /sys/fs/cgroup
/dev/xvda1 4.2M 40k 4.2M 1% /
tmpfs 127k 1 127k 1% /run/user/1000
tmpfs 127k 1 127k 1% /run/user/0
https://www.tecmint.com/screen-command-examples-to-manage-linux-terminals/
https://tecadmin.net/understanding-linux-top-command-results-uses/
Comamnds from terminal
=====================
[root@ip-172-31-21-137 /]# history
1 clear
2 date
3 top
4 ps -ef
5 date &
6 ps -ef | grep 3429
7 date
8 date &
9 top &
10 ps -ef |grep 3434
11 kill -9 3434
12 ps -ef |grep 3434
13 top &
14 ps -ef | grep 3442
15 bg %3442
16 bg
17 man bg
18 bg
19 bg
20 ps -ef | grep ping
21 bg
22 kill -9 3469
23 bg
24 bg
25 exit
26 yum install httpd
27 ls -ltr
28 service httpd start &
29 jobs -l
30 ping google.com > satyam.txt
31 ping google.com > satyam.txt &
32 jobs -l
33 ps -ef | grep 3804
34 fg %3804
35 jobs
36 jobs -l
37 fg
38 fg 3804
39 jobs -l
40 man fg
41 ping google.com > satyam.txt &
42 jobs -l
43 fg 3834
44 fg %3834
45 jobs -l
46 yum install fg
47 ps -ef
48 ps -ef | grep 3834
49 top | grep 3834
50 renice -10 3726
51 df -h
52 df -Th
53 df -ThH
54 df -iH
55 c
56 cd
57 cd /
58 ls -ltr
59 #What is the differance bwt bin and sbin
60 ps -ef | grep httpd
61 ps 1
62 ps -ef
63 ps -ef | grep TTY
64 top
65 histroy
66 history
31st jan
1st Feb
4th Feb
5th Feb
6th Feb
7th Feb
8th Feb