Welcome to the most active Linux Forum on the web.
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 06-22-2006, 02:34 PM   #1
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, 02:56 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,250
Blog Entries: 15

Rep: Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323
"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).


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

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

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