Berkeley Software Distribution is a Unix operating system

learn more… | top users | synonyms

2
votes
4answers
93 views

How long might it take to build NetBSD userland and kernel?

I am interested to use NetBSD as the operating system on my server. I have not used a system where security updates are performed by source, but have read enough in the guide to feel comfortable ...
1
vote
0answers
21 views

Why kernel may be throttled?

My MBR start freezing up for over hour and I've found that my kernel reported being throttled, e.g. (this is just a sample for 2 seconds) $ sudo fs_usage | | grep -i throttled 12:26:45 THROTTLED ...
1
vote
0answers
34 views

External Fragmentation in FreeBSD due to unmovable Kernel pages

Is external fragmentation an issue in FreeBSD due to unmovable Kernel pages similar to what Linux (1) (2) faces?
4
votes
1answer
48 views

Why grepping with color doesn't return anything?

I've got the following foo.txt file: This is the first line. This is the middle line. This is the last line. And I'm trying to grep the middle line just by the word middle and return the ...
0
votes
1answer
30 views

FreeBSD ports collection under PC-BSD?

I'm toying with the idea of installing FreeBSD or PC-BSD... as it looks now, I'll probably go for PC-BSD. However, one thing I really would like, is the FreeBSD ports collection. So I was wondering ...
-1
votes
0answers
12 views

what does @ in file access block mean? [duplicate]

When i type ls -l i got a strange @ symbol right after the file access list in this case webshop4.sql What does the @ sign mean? I use OSX and zsh.
3
votes
2answers
272 views

Are there any good tutorials for NetBSD and daemontools?

I'm looking for some good resources on running daemontools on a NetBSD box. I've installed the binary package via pkg_add, but I can't seem to find an rc script for starting, e.g., svscan. I'm mostly ...
7
votes
1answer
4k views

FreeBSD or PC-BSD?

After years of Linux I would like to give *BSD a try, but I'm uncertain if I should use FreeBSD or PC-BSD. With KDE out-of-the-box and graphical package-manager and such, PC-BSD strikes me as ...
6
votes
3answers
209 views

What is the preferred way to build software in the BSDs?

I was wondering what the preferred way of building software in the BSDs is and if they are actively using and encouraging the use of GNU autotools. I found the following section about GNU autoconf in ...
2
votes
4answers
55 views

How to know which ports are listened by certain PID?

I have a PID of certain process listening some port(s) on my OS X and I need to know which port(s) is listened by this process. How can I do it? I know I can use lsof to know which process is ...
42
votes
9answers
15k views

Easy incremental backups to an external hard drive

For a while I used Dirvish to do incremental backups of my machines, but it is slightly cumbersome to configure, and if you do not carry a copy of your configuration it can be hard to reproduce ...
0
votes
1answer
52 views

List hidden files only (not just dot files) using an ls alias

I would like to use an ls alias (like l.) to output a colored list, consisting of only hidden files & directories, whether or not they begin with a dot. Any suggestions? Example of desired ...
3
votes
1answer
44 views

Change password with kpasswd via command line?

I want to use kpasswd to change my password. Since I have to do it for multiple realms, I'd like to automate it passing on the password. I want to set a variable in bash and pass that on to kpasswd, ...
1
vote
2answers
57 views

Why was shar written if tar already existed?

According to the BSD man pages, tar first appeared in Version 7 UNIX in 1979, but shar first appeared in 4.4BSD, which was released in 1994. What were the perceived advantages to shar at the time? ...
1
vote
0answers
45 views

Is the (Free)BSD Codebase ANSI Compliant?

Google does not seem to shed any light on this topic - But the question is quite simple: Is the FreeBSD (Or any BSD) CodeBase ANSI (c89) Compliant, or does it use c99, c11 or non-standard features ...
6
votes
0answers
137 views

State of ZFS xattr support in FreeBSD

I'm trying to work out whether or not, or rather to what extend, xattrs are supported in FreeBSD using ZFS. I've read some conflicting information. zfs get xattr lists it as on (default) for /, /usr ...
0
votes
1answer
38 views

Understanding scriptreplay timing file

I am trying to understand the timing files produced by the script command (which are supposed to be read by scriptreplay while running typescript files). The timing file is always made of two columns, ...
0
votes
1answer
41 views

ERROR: make sure the Makefile and checksum file (/usr/pkgsrc/x11/gtk3/distinfo) are up to date

To install Gnome on NetBSD, I did so: #cd /usr/pkgsrc/meta-pkgs/gnome #make fetch-list|sh And waited until all dependencies downloaded, then typed: #make install clean Build started, and after a ...
0
votes
1answer
108 views

Which version of split supports flag -p?

This command does not work in GNU Coreutils split, split of Cern Linux 5 (Redhat) and BSD (Apple Yosemite 10.10.3): split -p'\0' input.txt where input.txt is masi\0hello\0world. Some comments ...
35
votes
3answers
18k 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 ...
0
votes
2answers
85 views

NetBSD install, configure network, stuck at the command /sbin/ifconfig fwip0 media error: ifconfig SIOCGIFMEDIA: inappropriate ioctl for device

I'm in NetBSD installation process, when configuring network, I'm stuck in this command and there is no way out of it: Status: Command failed Command: /sbin/ifconfig fwip0 media Hi enter to continue ...
1
vote
0answers
27 views

apply proper security labels during filesystem restore

When restoring a filesystem on a separate system (i.e., possibly a different system than the one where the filesystem was originally mounted and in use), I would like to apply the correct security ...
2
votes
1answer
70 views

How to mount /boot from LiveCD (FreeBSD 11 ZFS)

FreeBSD 11 (current) with ZFS I can mount zroot with zpool import -fR /mnt zroot but /mnt/boot is empty (and it's even not a directory) I need to edit loader.conf, how can I do it?
5
votes
1answer
78 views

Does FreeBSD contain non-free software in its base?

I mean binary blobs compiled by third parties. Additionally if you do pkg install, are there non-free packages considered by default?
0
votes
0answers
36 views

I have a stable release with OpenBSD 5.8 built. I'd like to upgrade OpenBSD 5.8 now on stable!

The new kernel bsd I just copy with scp on the root server /bsd. scp /usr/rel/bsd base58.tgz man58.tgz vim@10.10.10.10:/ && ssh -l vim 10.10.10.10 && cd / && tar -xzvphf ...
4
votes
2answers
89 views

BSD sed: Replace only the Nth occurrence of a pattern

Using BSD sed; How can I perform the following substitution?: Before: hello hello hello hello hello hello After: hello world hello hello hello hello In other words; how can I replace only the ...
2
votes
1answer
118 views

Why do I have 9 bash processes, why does one of them take up so much CPU and how do I stop them?

I have 9 different bash processes running at all times (I sometimes get more, for example, I have 37 bash processes now.). I found this question, where OP had a similar issue. But I don't see this as ...
0
votes
1answer
10 views

dump with old 43BSD,question about tape size

On old 43bsd i want to dump /usr This command works dump 0uf /dev/rmt12 /dev/ra0a dump is command 0u mean full and update /etc/dumpdates f mean use /dev/rmt12 and /dev/ra0a is the root partition. ...
3
votes
2answers
68 views

Replace only on the first matching line with sed

Using BSD sed (no GNU extensions), how can I perform an operation similar to the example provided below, but where instead of the line number, the replacement is performed on the first line in which a ...
0
votes
1answer
91 views

How to read the man page for a bash builtin? [duplicate]

So, I needed to figure out how "exec" works. However, doing man exec brings me to a 99% useless man page describing what bash builtins are. It of course also does this with many other man pages such ...
3
votes
1answer
55 views

How to I convert month name to number in BSD date?

I have found solutions for GNU date, but not for BSD date. I would rather not make an if, etc. before I know if there's a built in way.
1
vote
1answer
29 views

Does the fact that MacOS runs on a BSD core mean that it is a better choice for that hardware? [closed]

Of the different distributions of Unix/Linux available for my Mac hardware, does BSD have an advantage because it's what is run under the GUI for MacOS, or does the Mach kernel abstraction keep any ...
1
vote
1answer
26 views

Use both a variable and newline in BSD sed?

I can do this for example sed 's/\>\</\>\ </g' To replace >< with > < However, say I want a variable, like this: sed 's/\>\</\>\ <$1/g' It will interpret ...
3
votes
1answer
117 views

How to install portmaster on FreeBSD?

I'm trying to install portmaster on FreeBSD but I get an error about the port format: root@freebsd:/usr/ports/ports-mgmt/portmaster # make install clean ===> portmaster-3.17.8_1 pkg(8) must be ...
0
votes
2answers
42 views

Unix equivalent of `du -sb` to get summarized size in bytes

On Linux using GNU du to calculate the size of directory recursively in bytes I can run: du -sb /etc What is equivalent syntax for BSD du based on the fact that -b parameter is not available?
2
votes
2answers
141 views

BSD Virtual Private Servers

I know of a couple of VPS providers that support BSD distros (rootbsd and prgmr), but I'm wondering if anyone has any other solutions they'd recommend? Moreover, I'm very curious why BSD support in ...
1
vote
3answers
76 views

Sed entire word with when replacing single letters, with BSD sed?

I think I found some GNU solutions but I need BSD sed solutions. What I want to do is replace the entire word at once. If the word is "clayii", and my code is sed ...
5
votes
0answers
79 views

enable external display on FreeBSD console

tl;dr, I'd like to use the external display with FreeBSD 10.0 on an HP Pavilion g7-2270us. Don't care if it's mirrored or I have to select one or the other. Here's the symptoms: When a display is ...
1
vote
0answers
128 views

iowait monitoring in top on OSX/iMac

I'm trying to monitor the performance of a process on OSX 10 (iMac), specifically whether I/O is currently a bottleneck or not. I don't use the machine, hence I need something simple that the user can ...
1
vote
2answers
2k views

How to change the output color of the ls command in terminal in OS X and iTerm2?

I know that a similar question has been asked in: How to colorize output of ls ? although I didn't really understand the answer and couldn't really make it work. However, I have tried something ...
0
votes
2answers
581 views

Convert .fnt to .ttf?

In FreeBSD's /usr/share/syscons/fonts one finds the syscons-fonts in .fnt-format. Is there a way to convert them to .ttf format?
1
vote
0answers
18 views

Creating inter-terminal applications for Linux systems

On a Debian machine, I have the BSD games installed, but I wanted to know if it was possible for the monop game to be played with other users on the server. This type of inter-terminal play is a ...
2
votes
2answers
84 views

What Port is Squid Running on in OS X/BSD

I've recently starting playing around with the Squid caching server on my OS X based computer. I'm curious if there's a way to tell which port Squid is running on using netstat or other standard unix ...
3
votes
2answers
133 views

Why does deleting directories generate error messages with find -exec?

Why is it that: find . -type d -name test -exec rm -r {} \; generates error messages: find: ./foo/test: No such file or directory find: ./bar/test: No such file or directory find: ./blech/test: No ...
0
votes
2answers
42 views

Is the mdoc macro set available on non-BSD systems by default?

Are the MDoc macros, commonly used to create BSD manpages, commonly available on non-BSD systems (such as Ubuntu and other GNU Linux distros)? Is it safe to design manpages using them when writing ...
1
vote
0answers
33 views

How can I easily deal with differences between BSD and GNU sed? [duplicate]

BSD and GNU sed have some small differences in what arguments they accept. I just learned that I have to use different command lines when using -i: sed -i '' # BSD sed -i # GNU I solved this ...
0
votes
1answer
43 views

Init system with dependency handling and service file format on *BSD

I'd like to know whether there are any Systemd equivalents for *BSD distributions, basically something that can handle dependencies between services (service A requires B to be started, so until B is ...
2
votes
1answer
286 views

sudo ls not showing hidden files on Linux

Today I discovered that sudo ls shows hidden files (that is, those that have names starting with .) on OS X. This surprised me so much that I asked a question about this behaviour, which I still find ...
36
votes
1answer
3k views

What allows BSD to run Linux binaries, but not vice versa?

What allows BSD to run Linux (and other Unix-like) binaries, but Linux (and other Unix-like for the most part) cannot run BSD binaries?
1
vote
1answer
200 views

Shell read script for sftp

I have this working: % cat read.sh !/bin/sh file=list.txt while read line do echo "$line" cut -d' ' -f27 | sed -n '$p' > file2 done < "$file" % cat list.txt sftp> #!/bin/sh sftp> ...