Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I tried to copy-paste your command and get a syntax error (command modified to reflect that my active network device is eth1):
tcpdump -i eth1 -W port 8080 MyTraceFile
tcpdump: syntax error
...which was corrected by quoting the last three arguments (back to your network interface for this one, so you can copy-paste if you wish):
tcpdump -i eth0 -W "port 8080 MyTraceFile"
I'm not sure this will do what you want though. No dumping to file here.
Assuming that's not the issue you're having, there is still scope for permissions problems: If the filesystem to which you are trying to write mounted read-only, not even root can write to it. You can find out by entering this command in the directory which you are trying to write to:
mount |fgrep $(df . |cut -d" " -f1 |tail -n 1)
Paste the output of that command here.
Last edited by matthewg42; 11-30-2006 at 07:59 PM.
Reason: because I messed up the post before :D
I am not mounting any file system guys. I am just logging on as root and in the home directory I am just using the commands.
I can use the append command which works fine. If I want to save a whois for later research:
whois xxx.xxx.xxx.xxx > myfile
I see you you used the command:
tcpdump -i eth0 -W port 8080 > myfile
I have tried the append sign and when I do I do not get an error however no data is recorded.
When I try just
tcpdump -i eth0 -W port 8080 myfile
I get permission denied.
I am sure that it is some sort of mount issue but not sure what to mount....
I am sorry that I am a bit confused. What do I mount to? I am not using any mountable media like a disk or anything. The file I would like to trace to resides on the file system. like the root directory /home...
This begins to listen and when something begins to show up in the terminal I control C and less the dump file however nothing is in it. So I guess for some reason the way I type it which seems to be the best way, I get a permission denied. And the way I type it as above it half works. hmmmmm.