Questions tagged [freebsd]
FreeBSD is a free Unix-based operating system descended from AT&T UNIX via BSD UNIX.
1,732
questions
254
votes
4
answers
96k
views
Why is FreeBSD deprecating GCC in favor of Clang/LLVM?
So I was surfing the net and stumbled upon this article. It basically states that FreeBSD, starting from Version 10 and above will deprecate GCC in favor of Clang/LLVM.
From what I have seen around ...
192
votes
9
answers
206k
views
Why would someone choose FreeBSD over Linux? [closed]
Why would someone choose FreeBSD over Linux? What are the advantages of FreeBSD compared to Linux? (My shared hosting provider uses FreeBSD.)
168
votes
4
answers
253k
views
Get the chmod numerical value for a file [duplicate]
In FreeBSD and also in Linux, how can I get the numerical chmod value of a file? For example, 644 instead of -rw-r--r--? I need an automatic way for a Bash script.
78
votes
1
answer
61k
views
Linux LXC vs FreeBSD jail
Are there any notable differences between LXC (Linux containers) and FreeBSD's jails in terms of security, stability & performance?
On first look, both approaches look very similar.
61
votes
7
answers
22k
views
How can I achieve portability with sed -i (in-place editing)?
I'm writing shell scripts for my server, which is a shared hosting running FreeBSD. I also want to be able to test them locally, on my PC running Linux. Hence, I'm trying to write them in a portable ...
53
votes
4
answers
43k
views
Where in "/" should extra permanent disks be mounted?
According to Wikipedia
http://en.wikipedia.org/wiki/Unix_directory_structure
http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
extra disks should not be mounted in /mnt/ according to the ...
44
votes
3
answers
30k
views
Where does Mac OS X come from?
Discussing with Mac owners, I got several versions of where Mac OS X comes from. It is known to have some root in BSD, but how much, and where?
Some say that Mac OS X has a FreeBSD kernel, with all ...
43
votes
6
answers
131k
views
List connected storage devices in FreeBSD
What's the FreeBSD variant of Linux's lsblk and blkid?
I want something that provides the same sort of information as lsblk does in the example below:
NAME MAJ:MIN RM SIZE RO TYPE ...
37
votes
3
answers
4k
views
Why don't shell builtins have proper man pages?
All shell builtins share the same manual page:
BUILTIN(1) BSD General Commands Manual BUILTIN(1)
NAME
builtin, !
etc.
Then there is a little text describing what ...
35
votes
7
answers
33k
views
How can I use DD to migrate data from an old drive to a new drive?
I am upgrading the internal SATA hard drive on my laptop from a 40G drive to a 160G drive. I have a Linux/Ubuntu desktop which has a SATA card. I would actually like to do the same thing for a couple ...
34
votes
3
answers
62k
views
ssh port forward to access my home machine from anywhere
I'm coming from this question: https://superuser.com/questions/359799/how-to-make-freebsd-box-accessible-from-internet
I want to understand this whole process of port forwarding.
I read so many things,...
34
votes
1
answer
54k
views
What's the sudo equivalent for FreeBSD?
In pretty much any GNU/Linux distribution you use sudo or su, What's the right choice for FreeBSD 10 ?
32
votes
3
answers
33k
views
How can I avoid the prompts when installing a FreeBSD port?
When I install a port, I am often presented with a menu screen to select configuration options. If I'm going to install a really big package with lots of dependencies, that will be extremely ...
27
votes
7
answers
287k
views
How can I change the default gateway?
Currently I'm running a FreeBSD 9.1 and the default gateway is already configured in the rc.conf.
rc.conf:
defaultrouter = "10.0.0.1"
But now I want to change the default gateway without rebooting ...
27
votes
2
answers
22k
views
Conceptual difference between Linux and (Free)BSD Kernel
(I've already noticed that this question was asked before but I think it has not been answered in a way I'd like to understand the topic.)
What are the conceptual and structural differences between a
...