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 06-22-2006, 03:34 PM   #1
MikeyI258
LQ Newbie
 
Registered: Jun 2006
Posts: 9

Rep: Reputation: 0
Linux commands...


Hello all,

I tried to man some of this but putting it together is kinda new to me. Could someone tell me what these commands do?

su lpd -c nc -k -l

nc -k -l

Note: I think that if there is a number behind this then these commands could be going through that numbered port right?

Thank you for your help.
 
Old 06-22-2006, 03:56 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,681
Blog Entries: 14

Rep: Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022
"su lpd -c" means switch user to "lpd" and run what follows -c as a command as the user lpd. Note that since you don't have "su - lpd" it will NOT invoke the environment of user, lpd. Typically you'd want to do the "su - lpd" instead to be sure it has the correct environment.

"nc -k -l" then is the command being run as the user, lpd.

"nc -k -l" according to the man page tells nc to "listen". Listen in network terms means to wait for traffic to come to it rather than initiating the traffic itself.

I've not seen this command before. On testing it I found I did have to specify a port for it to work. (e.g. nc -k -l 23 would tell it to listen for telnet traffic).
 
  


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
Help with Linux Commands Kjell Persson Linux - Newbie 4 02-10-2006 12:38 PM
Suse Linux Commands For These Aix Commands? Vaskar Guha Linux - Software 2 12-19-2005 01:45 AM
help with linux commands parvu83 Linux - General 3 12-10-2004 03:44 PM
All linux commands bolinux Linux - General 10 10-17-2003 02:34 AM
Help Linux Commands emmanuelmathew Linux - General 5 02-06-2003 07:14 AM


All times are GMT -5. The time now is 05:22 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration