Getting "permission denied" when I try as root to access /usr/ports.
During installation I said yes to installing The Ports Collection,and I want to see if the files are there.I think I am using the wrong code,could anyone tell me the right way.
Further reading of the BSD handbook says it is better to install the Ports Collection from the internet rather than the cd,which I did,any thoughts on that.

You need to type "cd", now you're trying to execute a directory ... Which doesn't work, this should work: %cd /usr/ports

If you are using tcsh you can use implicitcd option ("set implicitcd" in ~/.tcshrc) so you don't have to type "cd", from tcsh(1)

Code:

implicitcd (+)
If set, the shell treats a directory name typed as a command as
though it were a request to change to that directory. If set
to verbose, the change of directory is echoed to the standard
output. This behavior is inhibited in non-interactive shell
scripts, or for command strings with more than one word.
Changing directory takes precedence over executing a like-named
command, but it is done after alias substitutions. Tilde and
variable expansions work as expected.

__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.