Hi,
I'm an intermediate-level user of FreeBSD. I recently ran into a problem that I have been unable to solve. Basically, most (but not all) commands now return 'Command not found', even if I use the full path, which makes no sense to me whatsoever. The only thing I can think of that happened is that I accidentally pasted some code for Apache onto the command line. In any case, I've tried quite a few things and I don't see any reason why this is happening. I am using csh.
This is the code I accidentally pasted (in case any of these may have been interpreted by csh):
Here are some examples demonstrating the issue:
Thank you for any assistance you may be able to provide
I'm an intermediate-level user of FreeBSD. I recently ran into a problem that I have been unable to solve. Basically, most (but not all) commands now return 'Command not found', even if I use the full path, which makes no sense to me whatsoever. The only thing I can think of that happened is that I accidentally pasted some code for Apache onto the command line. In any case, I've tried quite a few things and I don't see any reason why this is happening. I am using csh.
This is the code I accidentally pasted (in case any of these may have been interpreted by csh):
Code:
curl -O < Directory "/usr/local/www/nedi/html" >
#+1445447621
AllowOverride None
#+1445447621
Require all granted
#+1445447621
Options +FollowSymLinks +ExecCGI +Indexes
#+1445447621
< /Directory >
#+1445447621
Alias /nedi /usr/local/www/nedi/html
Here are some examples demonstrating the issue:
Code:
jackd@Networks:~ % echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/jackd/bin
jackd@Networks:~ % which portversion
/usr/local/sbin/portversion
jackd@Networks:~ % portversion
portversion: Command not found.
jackd@Networks:~ % /usr/local/sbin/portversion
/usr/local/sbin/portversion: Command not found.
jackd@Networks:~ % sh /usr/local/sbin/portversion
/usr/local/sbin/portversion: 35: Syntax error: "(" unexpected
jackd@Networks:~ % which ls
/bin/ls
jackd@Networks:~ % ls
(RETURNS RESULTS OF LS)
jackd@Networks:~ % ls -al /usr/local/sbin/ | grep portversion
-r-xr-xr-x 1 root wheel 9825 Dec 9 2014 portversion
Thank you for any assistance you may be able to provide