what is usr/bin ???


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers what is usr/bin ???
# 1  
Old 02-29-2004
Computer what is usr/bin ???

Even as a newly born newbie, I know it sounds as if I'm asking how many shoes in a pair, but such is life. I'm trying to discover java programming with osx and have only previously done simple programming with basic. I have had shell experience with the amiga years ago so I get the idea of using a cli in an otherwise visual enviorment but I digress.

What is this thing called the usr/bin? When I bring the up terminal it says "Welcome to Darwin" and then [mac:~] mark%

If I - for no particular reason and just taking random stabs - type cd \ I get a ? to which I answer / and then it leads me to what seems to be the root of my hard drive. [mac:/] mark% (I'm mark, btw) I know I'm there because I can mkdir and see the folder pop up on the hard drive.

anyway, I then cd to this thing called usr/bin and get [mac:/usr/bin] mark%

but I can't find any real thing called usr/bin on my hard drive. Any experience I've had with unix-like interfaces have always navigated around known files and directories. All I know about usr/bin is it's where my java compiler - javac is.

The hopeful end result of all this frustration is being able to use java with the Quicktime for Java feature so I can program some basic video editing routines with java. Can't get java to recognize my QT for java zip file (not that I understand how to do it in the first place) It seems to use java you have to deal with all kinds of different elements, zip files, jar files, commands and whatnot.

All I've been able to do - after way too much effort - is finally compile and run "hello world" and get java to do some basic-like variable stuff.

Can anyone point me to a good reference on how to set classpath, add libraries and commands, and get me pointed in a good direction? Hopefully I've reavealed enough of my level of newness and confusion
# 2  
Old 02-29-2004
It is
Code:
/usr/bin

the "/" slanty-character is like the "\" slanty character in windows, it is the top or root directory.

Code:
cd /usr/bin

will take you to where most of the "commands" are - things like sed, grep, awk, vi. These are executable images (ELF format in linux)

Code:
cd <- note trailing space

takes you back home to your login directory.
# 3  
Old 02-29-2004
also since when you are in your home directory it shows ~ instead of /home/marc , you can use cd ~ to cd to your home directory.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. BSD

FreeBSD: /usr/bin/ld not looking in /usr/local/lib

I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries. I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble: $ ./autogen.sh checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies

2. Solaris

How to link sed from /usr/bin/sed to /usr/local/bin/sed?

Hi Guys, OS:- Solaris 10 64Bit I have a small query. On one server a user is facing sed command issue. He gets error regarding sed for this location /users/hoy/2999/batch5/bin/internal.sh: /usr/local/bin/sed: not found How ever the sed is actually present at this location on server:-... (13 Replies)
Discussion started by: manalisharmabe
13 Replies

3. Solaris

What is the difference between xpg4/bin and usr/bin?

Hi Experts, I found that the same commands(sort, du, df, find, grep etc.) exists in both dir. What is the difference to use them? i.e: to use xpg4/bin/grep and usr/bin/grep My OS version is SunOS 5.10 Regards, Saps (7 Replies)
Discussion started by: saps19
7 Replies

4. OS X (Apple)

When to use /Users/m/bin instead of /usr/local/bin (& whats the diff?)?

Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself. But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies

5. Red Hat

/usr/bin/find && -exec /bin/rm never work as expected

hi there, Would you able to advise that why the syntax or statement below couldn't work as expected ? /usr/bin/find /backup -name "*tar*" -mtime +2 -exec /bin/rm -f {} \; 1> /dev/null 2>&1 In fact, I was initially located it as in crontab job, but it doesn't work at all. So, I was... (9 Replies)
Discussion started by: rauphelhunter
9 Replies

6. UNIX for Dummies Questions & Answers

Alias /usr/bin to /bin in profile

Hi! All the basic linux commands, ie. echo, find, etc, are located in /bin. I have a couple of programs that have these commands pointed towards /usr/bin, ie, /usr/bin/echo (even though the actual 'echo' command is in /bin). How can I alias or redirect or link the /usr/bin to /bin just for this... (6 Replies)
Discussion started by: dancerat
6 Replies

7. Solaris

How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all, below is the problem details: ora10g@CNORACLE1>which ld /usr/ucb/ld ora10g@CNORACLE1>cd /usr/ccs/bin ora10g@CNORACLE1>ln -s /usr/ucb/ld ld ln: cannot create ld: File exists ora10g@CNORACLE1> how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies

8. UNIX for Dummies Questions & Answers

Difference between /bin, /usr/bin, /sbin ?

Hi All, Can somebody tell me the difference between /bin, /usr/bin, /sbin ? Thanx in advance, Saneesh Joseph (3 Replies)
Discussion started by: saneeshjose
3 Replies

9. UNIX for Dummies Questions & Answers

/bin/sh: /usr/bin/vi: No such file or directory when doing crontab

I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies
Login or Register to Ask a Question