LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-20-2008, 07:03 PM   #1
JBailey742
Member
 
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338

Rep: Reputation: 30
What code in the terminal shows you the list of sockets?


How do you find all files that contain sockets; using the konsole?
I imagine all distros have the same code, but just in case,

I use Mandriva 2007 Spring
 
Old 02-20-2008, 07:22 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
The command is netstat, for the details read man netstat

The list is usually longer the one screen so type something like;
/bin/netstat > netstat.txt
less netstat.txt
 
Old 02-20-2008, 07:25 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I'm assuming you mean files of type socket:
Code:
sudo find / -type s

Last edited by gilead; 02-20-2008 at 07:28 PM.
 
Old 02-20-2008, 09:16 PM   #4
JBailey742
Member
 
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338

Original Poster
Rep: Reputation: 30
looked like it worked, the second command anyway. but I don't have sudo. I guess su works enough.
Some say sudo is better than su, but other than password checks, I don't think I notice anything different.

well anyway,thanks!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant send a whole struct with sockets (c code) alaios Programming 9 04-12-2020 09:52 AM
the terminal shows -bash-3.2 tapan_chugh Linux From Scratch 10 10-19-2013 10:18 AM
LXer: Ubuntu mobile shows off its code LXer Syndicated Linux News 0 05-14-2007 02:01 PM
[FC4] how to list sockets? polemon Linux - Newbie 2 08-20-2005 06:21 PM
httpd default page shows code tommytomato Linux - General 3 03-09-2005 08:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:57 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