LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-19-2020, 02:55 PM   #1
neca
LQ Newbie
 
Registered: Dec 2020
Posts: 3

Rep: Reputation: Disabled
Exclamation 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?
 
Old 12-19-2020, 04:20 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by neca View Post
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.

Last edited by berndbausch; 12-19-2020 at 04:22 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HOSTNAME = hostname -> HOSTNAME: command not found ? thomas2004ch Linux - Software 2 08-26-2013 08:25 PM
Hostname issue - showing "localhost" instead of actual hostname. ryes31 Linux - Server 9 12-12-2012 08:19 PM
hostname -f error hostname :unknownhost prnkho Linux - Newbie 1 11-26-2008 09:12 AM
hostname vs. HOSTNAME ? sirius56 Linux - Newbie 2 02-16-2007 08:16 AM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration