[LINUX] How to know the port number of the xinetd service

I didn't know the port number of a certain service, and I knew that it was started with xinetd, so even if I look at / etc / xinetd, there is nothing like a port.

See the xinetd service item

xinetd conf can also be written with the service name.

An example of a service called time to try.

# cat /etc/xinetd.d/time-stream
service time               <---------------The port number is actually defined here

The port number is written in / etc / services

You can find the port number in * / etc / services *

# cat /etc/services  | grep time | head -5
daytime         13/tcp
daytime         13/udp
time            37/tcp          timserver              <----------there were!
time            37/udp          timserver              <----------there were!
utime           519/tcp         unixtime

Always forget / etc / services

Bonus How to know which port is listening netstat -nltpa

# netstat -nltpa
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp6       0      0 :::21                  :::*                    LISTEN      3247/xinetd       <-------You can see that this port is xinetd
tcp6       0      0 :::873                 :::*                    LISTEN      3247/xinetd

in conclusion

Recommended Posts

How to know the port number of the xinetd service
How to get the number of digits in Python
How to find the optimal number of clusters in k-means
How to increase the number of machine learning dataset images
How to know the internal structure of an object in Python
How to check the version of Django
How to know the number of GPUs from python ~ Notes on using multiprocessing with pytorch ~
How to find out the number of CPUs without using the sar command
How to put a line number at the beginning of a CSV file
How to play a video while watching the number of frames (Mac)
How to calculate the volatility of a brand
How to find the area of the Voronoi diagram
How to identify the system call number ausyscall
How to count the number of elements in Django and output to a template
python beginners tried to predict the number of criminals
The wall of changing the Django service from Python 2.7 to Python 3
How to know the current directory in Python in Blender
How to visualize the decision tree model of scikit-learn
Try to estimate the number of likes on Twitter
Get to know the feelings of gradient boosting trees
[Blender] How to dynamically set the selection of EnumProperty
[Python] Summary of how to specify the color of the figure
How to hit the document of Magic Function (Line Magic)
How to access the global variable of the imported module
How much do you know the basics of Python?
[Selenium] How to specify the relative path of chromedriver?
How to identify the element with the smallest number of characters in a Python list?
How to count the number of occurrences of each element in the list in Python with weight
10. Counting the number of lines
How to use the generator
Get the number of digits
Calculate the number of changes
How to use the decorator
How to increase the axis
How to start the program
[Ubuntu] How to delete the entire contents of a directory
How to test the attributes added by add_request_method of pyramid
How to calculate the amount of calculation learned from ABC134-D
(Note) How to pass the path of your own module
Try to improve the accuracy of Twitter like number estimation
How to summarize the results of FreeSurfer ~ aparc, aseg, wmparc ~
How to run the Export function of GCP Datastore automatically
I didn't know how to use the [python] for statement
How to see the contents of the Jupyter notebook ipynb file
How to find the scaling factor of a biorthogonal wavelet
I want to know the features of Python and pip
I want to know the legend of the IT technology world
How to connect the contents of a list into a string
How to specify an infinite number of tolerances in the numeric argument validation check of argparse
How to calculate the autocorrelation coefficient
How to use the zip function
How to handle multiple versions of CUDA in the same environment
EP5 Know How to Slice Sequences
How to determine the existence of a selenium element in Python
How to change the log level of Azure SDK for Python
How to use the optparse module
How to implement Java code in the background of RedHat (LinuxONE)
Get the number of views of Qiita
A note on how to check the connection to the license server port
Summary of how to use pandas.DataFrame.loc
How to change the color of just the button pressed in Tkinter