LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hostname -i vs hostname -I (https://www.linuxquestions.org/questions/linux-newbie-8/hostname-i-vs-hostname-i-4175687146/)

neca 12-19-2020 02:55 PM

hostname -i vs hostname -I
 
Question 1. : Hello, what is difference between hosts.txt vs hostname.txt file?

Question 2. : When i have kali@kali in terminal, first kali is name of the user, and the second kali is private ip address in lan?

berndbausch 12-19-2020 04:20 PM

Quote:

Originally Posted by neca (Post 6197476)
Question 1. : Hello, what is difference between hosts.txt vs hostname.txt file?

Personally I don't know these files, but it is easy to display their content:
Code:

more hosts.txt
more hostname.txt

Or, to literally show the difference:
Code:

diff hosts.txt hostname.txt
Quote:

Question 2. : When i have kali@kali in terminal, first kali is name of the user, and the second kali is private ip address in lan?
It depends how you configured it, but usually username on the left, hostname on the right. "kali" is definitely not an address.

Why do you want to use Kali? You don't seem to know enough about networking to be a penetration tester.


All times are GMT -5. The time now is 10:26 PM.