Wednesday, July 17, 2013

Re: [LINUX_Newbies] Re: Grep questions

 

On 17Jul2013 17:02, highskywhy@yahoo.de <highskywhy@yahoo.de> wrote:
| > | Is it better for not confuse myself to name it mybin
| > | ?
| >
| > Your call.
| *
| OK
| The idea is
| doing update or start a new Linux at new computer:
|
| bin is looking like Linux created
| mybin is looking: Oh, Sophie created it You have to backup this.

Well, your whole home directory should be backed up.
(Possibly excluding scratch areas like caches of temp files.)

| But since it is in your home directory, it should already
| > be obvious that it is for you.
| >*
| OK

You should perhaps think of it more like a naming convention: "bin"
does not mean "Linux created it"; "bin" means a directory of program
files. Putting a "bin" in you home directory implies you made it;
"bin" says it is for programs.

Aside: historicly these were "binary" executables (like Windows
.exe files), which is why the directory is named "bin" (the name
is short so as to be easy to type, like "ls" instead of "list").
These days executable scripts go in the same place; there is little
reason to distinguish the two.

| > No. It searches for an executable file named "dothisnow".
| *
| Ok.
| But where?
| In the path directories or the whole hd?

Only in the directories named in $PATH.
That gives you control. Not to mention being much faster.

Cheers,
--
Cameron Simpson <cs@zip.com.au>

What do _you_ care what other people think? - Arlene Feynman

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (24)
Recent Activity:
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
.

__,_._,___

No comments:

Post a Comment