This is the third post of “Test Yourself Series“. This Series was aimed to make you learn, interactively and it has seen good response from the users part, so far. This post is aimed at making you aware of most of the Ports, and is very much useful for the Interview point of view. Before starting the Quiz, let me tell you some of the theoretical part of the section PORTS.
What is a Port
In computer networking, the term port is an application or process specific software that refer to either physical or virtual communications endpoint in a computer’s host operating system.
Range of Ports
0 to 65535, hence a total of 65536 ports are available. A port Number filed is 16 Bit, a limitation of TCP/IP stack. Hence available ports are 216 = 65536.
Can I change the Default port number to custom port Number? – YES!
How do I see open ports on Linux System?
# nmap
Moving ahead, here we brining the most 21 Questions on Ports. So, Post your Answers in Comment Section along with Reasons and do mention your Name and Email ID. You are supposed to provide Answer exactly in the format as shown.
Answer: 1(a) - xyz, 2(d) - xyz 3(c) - xyz ..... ..... .....
Answering in any other than the above said format will lead to rejection of your comment, without any consideration.
Based upon Lucky Contest we will post the Name and Photo of the WINNER on TecMint Homepage, who gets maximum right answer. This contest is open till Saturday September 14th, 2013, 1:00 PM IST. Hurry Up! Get Famous through us.
Please attention, WINNER will be announced on Monday 16th September 2013. Make sure you add correct Name and Email ID when you enter answers. Which will help us to contact you via email.
Quiz 3: 21 Basic Questions on Ports
Q1: The default Port number used by File Transfer Protocol?
- 20
- 21
- 22
- None of the Above
Q2: The Port number used by Secure Shell?
- 997
- 8080
- 22
- None of the Above
Q3: Port number 23 Used by?
- Default port for Telnet
- Reserved
- Default Port for Msp
- Default Port for Qotd
Q4: Simple Mail Transfer Protocol (SMTP) uses port Number
- 25
- 24
- 80
- 1
Q5: Host Name Server by default, is configured to use Port Number
- 41
- 42
- 43
- 44
Q6: Which of the following Service(s) use Port Number 80
- http
- apache
- www
- www-http
- All of the Above
Q7: SQL Services (sqlserv) is configured to use Port Number
- 115
- 116
- 117
- 118
- None of the Above
Q8: Hyper Text Transfer Protocol with Secure Socket Layer (https) run on Port?
- 80
- 8080
- 8443
- 443
- None of the Above
Q9: The Domain Name Sevrer uses Port Number
- 53
- 54
- 55
- 56
- None of the Above
Q10: Dynamic Host Configuration Protocol (DHCP) uses Port
- 67
- 68
- 69
- 70
Q11: POP3 is a Mail delivery Agent uses Port Number
- 110
- 111
- Both (a) and (b)
- None of the Above
Q12: NetBIOS (nmbd) is configured on Port Number
- 107
- 117
- 127
- 137
Q13: SMB-Samba (smbd) uses Port Number
- 139
- 149
- 159
- 169
Q14: Internet Message Access Protocol (IMAP) Uses Port
- 147
- 144
- 143
- 148
Q15: Lightweight Directory Access Protocol (LDAP), uses Port Number
- 388
- 389
- 470
- 10
Q16: ‘rsync’ uses Port Number
- 573
- 673
- 773
- 873
Q17: Mysql is Configured on Port Number
- 3306
- 27
- 29
- 30
Q18: Network File System (NFS) runs on Port
- 700
- 1899
- 2000
- 2049
Q19: Open Virtual Private Network (VPN) uses Port
- 1182
- 1192
- 1194
- 1195
Q20: X Window System Port Numbers Range
- 5000-5063
- 6000-6063
- 7000-7063
- 8000-8063
1.b
2.c
3.a
4.c
5.b
6.e
7.e
8.d
9.a
10.b
11.b
12.d
13.a
14.c
15.a
16.d
17.a
18.d
19.c
20.b
21. netstat -l
1(b) : 21
2(c) : 22
3(a) : Default port for Telnet
4(a) : 25
5(b) : 42
6(a) : http
7(d) : 118
8(d) : 443
9(a) : 53
10(a) : 68
11(a) : 110
12(d) : 137
13(a) : 139
14(c) : 143
15(b) : 389
16(d) : 873
17(a) : 3306
18(d) : 2049
19(c) : 1194
20(a) : 5000-5063
21 : netstat
1 (b)
2 (c)
3 (a)
4 (a)
5 (b)
6 (a)
7 (e)
8 (d)
9 (a)
10 (67)
11 (a)
12 (d)
13 (a)
14 (c)
15 (b)
16 (d)
17 (a)
18 (d)
19 (c)
20 (b)
Q3(1) – Default port for Telnet
1.(b)
2.(c)
3.(a)
4.(a)
5(a)
6.(a)
7.(e)
8.(d)
9.(a)
10.(a) 67 for server, (b) 68 for client
11.(a)
12.(d)
13.(a)
14.(c)
15.(b)
16.(d)
17.(a)
18.(d)
19.(c)
20.(b)
21.(netstat -tulpn)
Q1(b) – 21
Q2(c)-22
Q3(a)-default port for telnet
Q4(a)25
Q5(a)-41
Q6(a)-http
Q7(e)-none of these
Q8(d)-443
Q9(a)-53
Q10(a,b)-67 for server and 68 for client
Q11(a)-110
Q12(d)-137
Q13(a)-139
Q14(c)-143
Q15(b)-389
Q16(d)-873
Q17(a)-3306
Q18(d)-2049
Q19(c)-1194
Q20(b)-6000-6063
Q21- if you want to see all the used and listening ports on your computer, you’d use the NETSTAT command.
Hi Mandeep,
You did not get thge question 21 right, it say
Where can you find all the port information in Linux?
ans] cat /etc/services