Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-21-2015, 09:22 PM   #1
LQ Newbie
Registered: Sep 2015
Posts: 2

Rep: Reputation: Disabled
Kali Linux: Using CLI to capture network connections and create a file

Hello everyone,

I am performing a school exercise and really stumped. I have used the CLI to create an ftp connection to a site. Once i established the connection i have opened another CLI where i intend to use a command to capture the current network connections to a file. I used the command netsat however is is saying the command cannot be found. I then used the command ss and i can see the actual ftp connection i established. Is there a command to capture the data into a file and would anyone be able to be of assistance or tell me why the netsat command will not work?

Any help is appreciated

thank you
Old 09-22-2015, 08:08 AM   #2
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
The most common reason a command cannot be found is "path" issues however Kali is kind of a script kiddie tool so who really knows what they forgot to stick in there...
No worries though... lots of really kewl ascii line art to look at....

You can capture the connection data from any command that provides it on the CLI via redirection.
Old 09-22-2015, 11:18 AM   #3
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
whereis netstat
Old 09-22-2015, 09:02 PM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,873

Rep: Reputation: 2600Reputation: 2600Reputation: 2600Reputation: 2600Reputation: 2600Reputation: 2600Reputation: 2600Reputation: 2600Reputation: 2600Reputation: 2600Reputation: 2600
As Habitual hints, 'netstat' != 'netsat'.
Also, if you want to capture the data flow, try tcpdump.
Old 09-26-2015, 06:49 PM   #5
LQ Newbie
Registered: Sep 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Realized i was being an OOF netstat cs


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
Cannot access Network in Kali Linux!!!!!!!!! KillahBeez Debian 9 08-20-2015 04:37 AM
Create Mobile JAVA Applications On Netbeans under Linux Kali Mr.Drax Programming 5 08-08-2015 03:49 PM
network manager kali linux 1.1.0 not work lethuan Linux - Newbie 6 06-02-2015 01:20 AM
Create Network Share via Samba on Linux machine via CLI Bindu19 Linux - Newbie 5 01-15-2014 02:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:37 PM.

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