Questions tagged [freebsd]

FreeBSD is an advanced operating system for a variety of architectures. It is derived from BSD, the version of UNIX® developed at the University of California, Berkeley; and is developed and maintained by a large team of individuals. It is a complete Operating System, including the kernel, drivers, and userland utilities such as shells.

FreeBSD includes many modern OS features including advanced IP stacks and networking, Virtualization, hardened security, and high availability techniques.
For more information about FreeBSD, see their website (FreeBSD.org).

Questions are welcome here on Server Fault, the Unix and Linux Stack Exchange or the FreeBSD Forums.

Additionally Wikipedia has en entry on FreeBSD and the original BSD OS.

1526 questions
132
votes
4 answers

FreeBSD performance tuning: Sysctl parameter, loader.conf, kernel

I wanted to share knowledge of tuning FreeBSD via sysctl.conf / loader.conf / KENCONF / etc. It was initially based on Igor Sysoev's (author of nginx) presentation about FreeBSD tuning up to 100,000-200,000 active connections. Newer versions of…
SaveTheRbtz
  • 5,621
  • 4
  • 29
  • 45
128
votes
11 answers

FreeBSD: Directory called ^C (really!) - how to remove?

I made a typo: $ history 169 9:34 la /usr/local/etc/ 170 9:35 sudo mkdir ^C 171 9:36 sudo mkdir /usr/local/etc/dnsmasq.d Now I have a file that is called ^C (ctrl+C)!! When I use ls I just see a questionmark (probably due to the locale?) %…
Mausy5043
  • 1,327
  • 3
  • 9
  • 13
63
votes
4 answers

Check OpenSSH version and update instructions on FreeBSD system

On a FreeBSD system (8.1), I am looking for instructions on how to check the running version of OpenSSH and also instructions on the best way to download install an update of OpenSSH
ICTdesk.net
  • 1,143
  • 4
  • 12
  • 18
47
votes
6 answers

ZFS on FreeBSD: recovery from data corruption

I have several TBs of very valuable personal data in a zpool which I can not access due to data corruption. The pool was originally set up back in 2009 or so on a FreeBSD 7.2 system running inside a VMWare virtual machine on top of a Ubuntu 8.04…
ssc
  • 1,129
  • 3
  • 16
  • 30
41
votes
1 answer

I am going to chop the FreeBSD automounter into little pieces and boil them in oil

I am trying to expose a hierarchy of home directories to a number of FreeBSD jails. The home directories are configured such that each is a unique ZFS dataset. The jails are used for development work and hence are created and destroyed on a…
larsks
  • 41,276
  • 13
  • 117
  • 170
38
votes
8 answers

Delete 10M+ files from ZFS, effectively

I have written a buggy program that has accidentally created about 30M files under /tmp. (The bug was introduced some weeks ago, and it was creating a couple of subdirectories per second.) I could rename /tmp to /tmp2, and now I need to delete the…
nagylzs
  • 657
  • 2
  • 8
  • 21
31
votes
5 answers

Getting ;5D when hitting ctrl + arrow key in a Terminal on FreeBSD

On centos I can skip a word by hitting ctrl + arrow (left or right) in a terminal. When I ssh into a FreeBSD box and I try the same pattern I get: $ tail -f 20120412.log;5D;5D;5D (each try = ;5D) Is there a way to fix this? I am using Ubuntu…
jdorfman
  • 413
  • 4
  • 7
31
votes
9 answers

Why is Linux more popular than BSD?

Some would argue that BSD/Unix has always been more reliable and stable than Linux (not me, of course, don't hurt me!). Why does Linux always seem to beat BSD? Is it the romance of the Linux story? I don't intend to offend anyone, please don't take…
Aaron Watters
29
votes
10 answers

I just did a chmod -x chmod

So I did a chmod -x chmod. How I can fix this problem? How do I give execute rights back to chmod?
Rook
  • 2,615
  • 5
  • 26
  • 34
25
votes
4 answers

Should I create ZFS zpools with whole disks or partitions?

I am making zpools on FreeBSD machine. While creating zpools I observe these two cases: If I take raw disks and create zpool then I am able to form zpools and they are working perfectly. If I format disks using gpart in freebsd-zfs format and then…
shivams
  • 439
  • 1
  • 7
  • 15
25
votes
6 answers

FreeBSD vs Linux performance?

I know that FreeBSD is famous for being highly stable, secure and of course open source. So I am going to try it on one of my servers. However, I am wondering what are the pros and cons of Using FreeBSD instead of Ubuntu or other Linux flavors? I am…
alfish
  • 3,027
  • 15
  • 45
  • 68
24
votes
6 answers

How can I tell how much RAM is installed on a FreeBSD server?

As per the title: How can I tell how much RAM is installed on a FreeBSD server? Thanks!
Ben
  • 395
  • 1
  • 4
  • 7
23
votes
3 answers

FreeBSD: How to know real file size on zfs with compression on?

I'm using zfs on my FreeBSD 9.0 x64 and pretty happy with it, but I find it hard to count directory real, not compressed, size. Surely I can walk over the directory and count every file size with ls, but I'd expect some extra key for du for that…
Alexander
  • 724
  • 2
  • 11
  • 19
22
votes
1 answer

FreeBSD Jails or Docker instances

What are the main differences between jails on FreeBSD and Docker on Linux? Is one considerably more secure or more performant than the other? Jails are way older than Docker instances so the code itself could be considered more secure. But Jails…
Simba
  • 335
  • 1
  • 2
  • 12
22
votes
6 answers

How bad is it to have multiple devices with the same SSH server keys?

I am working on an embedded device that runs FreeBSD and SSH. As you know, sshd likes to randomly generate a set of server keys when it first boots up. The problem is that we will be shipping the product with a read-only sd-card filesystem…
NXT
  • 371
  • 2
  • 7
1
2 3
99 100