Linked Questions

11
votes
2answers
12k views

Difference between /usr/bin and /usr/local/bin [duplicate]

What is the difference between /usr/bin and /usr/local/bin? Why are there both directories and why do some executable programs exist in both directories?
7
votes
2answers
361 views

Why there are multiple folders for executable files in Linux? [duplicate]

I'm trying to understand Linux file system, and one of the question is: 1- Why there are multiple folders for executable files: /usr/bin, /usr/sbin/ and /usr/local/bin? Is there any differences ...
37
votes
15answers
62k views

How to run Dropbox daemon in background?

I'm using Debian 6 and Dropbox. I followed these commands to install it. When I run ~/.dropbox-dist/dropboxd — Dropbox works and stuff. Problem is that when I close terminal or, even worse — reboot, ...
16
votes
3answers
2k views

How is install different from cp? [duplicate]

How is install different from a simple copy, cp or dd? I just compiled a little utility and want to add it to /usr/sbin so it becomes available via my PATH variable. Why use one vs the other?
4
votes
3answers
1k views

Merging /usr/bin and /usr/sbin into /bin (GNU/Linux)

I've read quite a number of discussions about people wanting to merge /bin and /sbin into /usr/bin. The same cannot be said for doing it the other way around. Is there any technical reason why one ...
3
votes
3answers
1k views

export script function

I am trying to implement the solution found here. However, a coworker suggested that instead of adding functions directly to a .bash_profile or .bashrc file that instead, the custom scripts be put in ...
1
vote
2answers
6k views

Which of /usr/bin/perl or /usr/local/bin/perl should be used?

If I have both /usr/bin/perl and /usr/local/bin/perl available on a system, which one should I use?
0
votes
1answer
1k views

“Clean” Filesystem Hierarchy

The Linux filesystem hierarchy is full of unused folders that only exist for historical reasons. Do any distros install with only the directories that are actually used?
3
votes
1answer
2k views

/usr/bin/vim vs. /bin/vim

I get that binaries can be in different places. What I don't understand is why when I run whereis, which and type it says vim is at /usr/bin/vim, but when I try to run it using sudo it says I can't ...
3
votes
2answers
1k views

How to save a function in bash for later use?

I have this function to get MAC address from IP: ip2arp() { local ip="$1" ping -c1 -w1 "$ip" >/dev/null arp -n "$ip" | awk '$1==ip {print $3}' ip="$ip" } What is the right way for ...
1
vote
2answers
33 views

What binaries are stored in /home/<username>/bin?

I have been reading an article from GeeksforGeeks that includes the following image of a unix filesystem layout: After some reading (mainly of this post) I was able to determine the difference ...