Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Trouble managing ports from the command line Post 302840185 by syregnar86 on Monday 5th of August 2013 01:23:04 AM
Old 08-05-2013
Trouble managing ports from the command line

What are the commands to manage ports from my command line.

Example:

Opening Ports, Closing Ports, Viewing their status, etc.

I am having a hard time finding this answer. I'm trying to trouble shoot some networking problems and it would be very helpful if I could just do this from the command line.
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

trouble using mailx command

Hi. I have been trying to send mail using the mailx command. I also tryed to use the mail command. The thing is that when I try to send the email, i receive automatically to my mailbox a DAEMON response sayng that the mailhost is unknown... The syntax I am using is this: $mailx -s "this... (2 Replies)
Discussion started by: ldrojasm
2 Replies

2. UNIX for Dummies Questions & Answers

command to view ports being used

Is there a command that will show me all ports being used? I thought maybe the "lsof" command would show me, but I'm not seeing anything. Thanks, Jeff (2 Replies)
Discussion started by: lawadm1
2 Replies

3. Shell Programming and Scripting

Command to set ports

Hi to everyone here, I have wrote a script to install and set up parental controls with dansguardian and tinyproxy,(fedora) it works quite well except that i have to manually set http proxy to 127.0.0.1 and port 8080 in firefox, is there a way to do this by command line/script? Id appeciate any... (2 Replies)
Discussion started by: dave123
2 Replies

4. Shell Programming and Scripting

sed multiple line trouble

Hello, im writing a script that validates a URL (the parameter) using http://validator.w3.org first it downloads the site (the output line I want is stored in the h2 field of the site's html. wget http://validator.w3.org/check?url=$1 2> /dev/null sed -n '/<h2/p' check?uri=$1 | sed 's/... (5 Replies)
Discussion started by: drareeg
5 Replies

5. Shell Programming and Scripting

Managing awk return code over SSH command

Hello all, This bellow code works. I'm just trying to find a simplified way to achieve this. I'm sure there is an easier way and it must be to simple for me to find. Verify that the OS version is 6.1. If not exit the script. Of course if i just put a && exit 1 at the end of the ssh... (11 Replies)
Discussion started by: maverick72
11 Replies

6. Homework & Coursework Questions

trouble understanding file option and command line arguments

Hi, I am creating a program with the C language that simulates the WC command in Unix. My program needs to count lines, bytes and words. I have not added the code to count bytes and words yet. I am having trouble understanding what the file option/flag '-' does. I can not visualize how it moves... (1 Reply)
Discussion started by: heywoodfloyd
1 Replies

7. Shell Programming and Scripting

Trouble with awk command

Hi, I need to read a string with ; separated using loop one filed by one field and perform some operation. Can you please check and let me know how to print command parameterised. key=phani;ravi;kiran number_of_keys=`echo $key|awk '{print NF}' FS=';'` for (( i = 1; i <= $number_of_keys;... (4 Replies)
Discussion started by: Ravindra Swan
4 Replies
PORTINDEX(5)						      BSD File Formats Manual						      PORTINDEX(5)

NAME
INDEX -- File containing information about the state of the ports tree DESCRIPTION
The port index file in /usr/ports contains various bits of information about the ports tree. Each major branch of FreeBSD has a separate index file, named ``INDEX-N'', where N is the major version number of the FreeBSD branch, i.e.: INDEX-7, or INDEX-8. name The name of the package. path The path to the port directory. install prefix The default install prefix. short description A short description. full description The path to the full description. maintainer email The email address of the maintainer. index The categories this port is part of. build dependencies Ports required to be installed prior to building this port. run dependencies Ports required to be installed for this port to run. website The project website for the port. e-deps Ports that may be required to extract this port. p-deps Ports that may be required to patch this port. f-deps Ports that may be required to fetch this port. FILES
/usr/ports/INDEX-N where N is the major version number of the FreeBSD branch. EXAMPLES
vim-6.3.15|/usr/ports/editors/vim|/usr/local|Vi "workalike", with many additional features|/usr/ports/editors/vim/pkg-descr|obrien@FreeBSD.org|editors|libiconv-1.9.2_1|libiconv-1.9.2_1|http://www.vim.org/||| SEE ALSO
build(7), ports(7) AUTHORS
This manual page was written by Paul Armstrong and Thomas Abthorpe <tabthorpe@FreeBSD.org>. BSD
October 14, 2012 BSD
All times are GMT -4. The time now is 02:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy