Questions tagged [freebsd]

FreeBSD is a free Unix-based operating system descended from AT&T UNIX via BSD UNIX.

FreeBSD® is an advanced operating system for modern server, desktop, and embedded computer platforms. FreeBSD's code base has undergone over thirty years of continuous development, improvement, and optimization. It is developed and maintained by a large team of individuals. FreeBSD provides advanced networking, impressive security features, and world class performance and is used by some of the world's busiest web sites and most pervasive embedded networking and storage devices.

Further reading

1702 questions
252
votes
4 answers

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 the net so far, Clang/LLVM is a fairly ambitious…
NlightNFotis
  • 7,525
  • 7
  • 32
  • 38
191
votes
9 answers

Why would someone choose FreeBSD over Linux?

Why would someone choose FreeBSD over Linux? What are the advantages of FreeBSD compared to Linux? (My shared hosting provider uses FreeBSD.)
ilhan
  • 2,233
  • 4
  • 16
  • 14
163
votes
4 answers

Get the chmod numerical value for a file

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.
stefan.at.kotlin
  • 3,007
  • 7
  • 32
  • 35
76
votes
1 answer

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.
Philipp Claßen
  • 4,689
  • 7
  • 29
  • 41
59
votes
7 answers

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 way, but with sed I see no way to do that. Part of…
Red
  • 1,422
  • 1
  • 15
  • 18
52
votes
4 answers

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 first link, but doesn't seams so according to the…
Sandra Schlichting
  • 810
  • 1
  • 10
  • 13
43
votes
3 answers

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 the utilities above that makes it an OS being Mac…
Didier Trosset
  • 1,251
  • 1
  • 11
  • 13
40
votes
6 answers

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 MOUNTPOINT /dev/sda 8:0 0 465.8G 0 disk…
Alexej Magura
  • 4,356
  • 7
  • 26
  • 39
37
votes
3 answers

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 shell builtins are, and then a list that looks…
DisplayName
  • 11,468
  • 20
  • 73
  • 115
34
votes
7 answers

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 CentOS & FreeBSD boxes at work, and it seems this…
Stefan Lasiewski
  • 19,264
  • 24
  • 70
  • 85
32
votes
3 answers

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 inconvenient. Is there a make flag for accepting the…
JCCyC
  • 686
  • 1
  • 9
  • 19
32
votes
1 answer

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 ?
user2485710
  • 1,403
  • 4
  • 15
  • 26
31
votes
3 answers

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, but am failing to understand the very basic…
hari
  • 2,400
  • 4
  • 21
  • 22
27
votes
1 answer

FreeBSD: How to fix "ping: sendto: No buffer space available"?

I'm trying to ping a remote host, but I get an error. # ping 192.168.80.1 PING 192.168.80.1 (192.168.80.1): 56 data bytes ping: sendto: No buffer space available ping: sendto: No buffer space available ^C --- 192.168.80.1 ping statistics --- 2…
Stefan Lasiewski
  • 19,264
  • 24
  • 70
  • 85
26
votes
7 answers

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 the system, is this possible?
WWW
  • 363
  • 1
  • 3
  • 6
1
2 3
99 100