I am looking around FreeBSD and i found a directory named 9 in /usr/local directory.
ls reveals subdirectories: bin etc lib share
I see some command handling apps like awk, cat, date, echo et cetera. I also see a program named pbd. I searched for pbd and couldn't find anything. I serached more and found it associated with pwd:
man.freebsd.org
pbd - prints the base name of the working (current) directory
I played around with the console to see if i could get pbd to do something without an error and i got it to print the basename in front of my username. see pbd.jpg attachment.
fine. so it printed the wd basename but i have to invoke it as a full path: /usr/local/9/bin/pbd
I guess 9 is not in my path and pbd doesn't have an environment variable.
However, i played around some more and found a strange glitch in the console. I meant to type /home && .usr/local/9/bin/pbd but i only typed /h, yet the command worked. see pbd2.jpeg attachment
so my questions are:
why is the directory named 9?
I wonder why i cannot use pbd directly (no such file or directory error).
How is pbd to be used?
I also wonder how /h worked in the first place. Perhaps the system code has a glitch.
does anyone have an explanation?
Thanks for reading,
John (= new to Unix and FreeBSD)
ls reveals subdirectories: bin etc lib share
I see some command handling apps like awk, cat, date, echo et cetera. I also see a program named pbd. I searched for pbd and couldn't find anything. I serached more and found it associated with pwd:
pwd(1)
I played around with the console to see if i could get pbd to do something without an error and i got it to print the basename in front of my username. see pbd.jpg attachment.
fine. so it printed the wd basename but i have to invoke it as a full path: /usr/local/9/bin/pbd
I guess 9 is not in my path and pbd doesn't have an environment variable.
However, i played around some more and found a strange glitch in the console. I meant to type /home && .usr/local/9/bin/pbd but i only typed /h, yet the command worked. see pbd2.jpeg attachment
so my questions are:
why is the directory named 9?
I wonder why i cannot use pbd directly (no such file or directory error).
How is pbd to be used?
I also wonder how /h worked in the first place. Perhaps the system code has a glitch.
does anyone have an explanation?
Thanks for reading,
John (= new to Unix and FreeBSD)