|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
|
Thread Tools | Display Modes |
|
|||
cd /usr
ls -la What does it tell you? |
|
||||
PatrickBaer.
output from ls -la $ cd /usr $ ls -la total 58 drwxr-xr-x 17 root wheel 512 May 22 11:12 . drwxr-xr-x 20 root wheel 512 May 23 20:12 .. drwxrwxr-x 2 root operator 512 May 22 15:36 .snap lrwxr-xr-x 1 root wheel 10 May 22 10:35 X11R6 -> /usr/local drwxr-xr-x 2 root wheel 7168 May 22 10:36 bin drwxr-xr-x 3 root wheel 512 May 22 10:48 compat drwxr-xr-x 2 root wheel 512 May 22 10:31 games drwxr-xr-x 3 root wheel 512 May 22 11:12 home drwxr-xr-x 47 root wheel 4608 Feb 24 21:18 include drwxr-xr-x 6 root wheel 10752 Feb 24 21:18 lib drwxr-xr-x 5 root wheel 512 Feb 24 21:18 libdata drwxr-xr-x 5 root wheel 1536 Feb 24 21:18 libexec drwxr-xr-x 13 root wheel 512 May 22 10:34 local drwxr-xr-x 2 root wheel 512 May 22 10:41 obj drwxr-xr-x 69 root wheel 1536 May 22 10:32 ports drwxr-xr-x 2 root wheel 5120 May 22 10:29 sbin drwxr-xr-x 26 root wheel 512 May 22 10:31 share drwxr-xr-x 23 root wheel 512 May 22 10:32 src |
|
||||
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. |
|
||||
Quote:
__________________
The power of plain text? It can control an entire OS |
|
||||
zsh can and afaik does by default, never knew tcsh had an implicitcd option but i never bothered to customize it that much (tcsh/zsh == my most used shells).
it's bad practice imho to rely on it but it is a nice feature if you forget to type the command -- assuming you meant to change directories in the first place.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
||||
Quote:
In any case, I don't see why it's bad practice ... One disadvantage would be: Code:
% mkdir vi % vi % pwd /home/carpetsmoker/vi |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
/tmp on ram write denied | gosha | OpenBSD General | 8 | 29th March 2009 04:46 PM |
FFS permission issue | marc | OpenBSD General | 2 | 2nd February 2009 07:31 PM |
Permission denied (publickey). Help pls | rex | FreeBSD General | 13 | 14th October 2008 08:54 PM |
Tightvnc startup script not loading fonts - permission denied | master-richie | FreeBSD Ports and Packages | 2 | 3rd August 2008 09:29 PM |
FTPD User Access Denied | wastedbreath | FreeBSD General | 7 | 21st May 2008 03:44 AM |