Berkeley Software Distribution is a Unix operating system

learn more… | top users | synonyms

0
votes
2answers
35 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
19 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 ...
0
votes
0answers
21 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
64 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 ...
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. ...
0
votes
1answer
49 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
2answers
57 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 ...
3
votes
1answer
33 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.
5
votes
1answer
60 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?
1
vote
1answer
26 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
21 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
54 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 ...
2
votes
1answer
104 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
2answers
27 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?
1
vote
3answers
57 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 ...
2
votes
1answer
45 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
0answers
39 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
56 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
0answers
16 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
69 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
130 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
35 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
42 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 ...
0
votes
2answers
394 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?
0
votes
0answers
76 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 ...
2
votes
1answer
268 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 ...
1
vote
1answer
168 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> ...
1
vote
4answers
87 views

Sed substitution grouping is appending in OSX rather than the expected sub in Linux

I've got three comma separated columns. Last name, First name, social. I'm trying to capitalize all characters in the last name column using sed 's/\([^,]*\)/\U\1/' foo.file In osx this command ...
0
votes
0answers
21 views

OS X USB installer utilities, cannot ssh any host

I booted my mac from a OS X USB key installer. I cannot boot it from the internal HD because OS is damaged. I want to copy some files from my Mac to another computer with scp. The problem is that ...
1
vote
1answer
60 views

How to prepare for a BSD certification? [closed]

I couldn't find much information on the topic of "BSD certification". I would like to know how to prepare for it besides reading BSD handbook and using PCBSD.
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?
2
votes
1answer
70 views

Portable wrappers for GNU, BSD, etc. versions of tools

Is there any script that provides a compatibility layer to a subset (a rich subset would be best of course) of BSD and GNU commands? As an example, possible cases handled could include: dd and its ...
1
vote
1answer
345 views

BSD box running PFSense reports weird disk capacity

So I have a BSD box running PFSense. I was alerted to some potential problems when using the web interface, where a warning appeared saying: Warning: fopen(/tmp/config.lock): failed to open stream: ...
3
votes
1answer
105 views

BSD Net/1 was a free fully operating system?

I think that the old BSD Net/1 was not a fully operating system, but an add-on to 4.3BSD for VAX, as I realize from http://gunkies.org/wiki/Net/1 and http://gunkies.org/wiki/Net/2 Is it right? In ...
0
votes
1answer
276 views

Recommended Linux Distro for 'MMO' Server [closed]

Given its UNIX ancestry (the de facto standard for mainframes, back in the days when I first learned programming), using Linux as the OS for an experimental MMO is something of a no-brainer. That ...
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 ...
5
votes
2answers
5k 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 ...
4
votes
2answers
753 views

What is the TTY major number of your Unix?

I'm currently working on a serial port library which already uses special frameworks to get information about serial ports on the system. Though serial ports are a fundamental design in Unix—as ...
5
votes
2answers
180 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
1answer
898 views

Find out if files in a folder exist under other name in other folder

Possibly a little incorrect English ahead: There are at least 2 folders. For this, A contains files without extension, usually usernames, and B contains similar files, with '.yml' extension or ...
10
votes
2answers
7k views

BSD Kernel Vs. Linux kernel? [closed]

I wanted to know in technical terms; what is the difference between BSD Kernel and Linux Kernel. In Linux, we can download the source kernel then patch it and make and make modules it. Even we have ...
12
votes
3answers
3k views

Why there are many BSD systems but only one Linux kernel?

Why there are many BSD systems but only one Linux kernel? I wonder why BSD was forked many times, but no such thing with Linux.
0
votes
2answers
84 views

How do you check the support for a specific CPU in the Linux or BSD kernel?

Assuming that I have the sources for my kernel and I know the name of a SoC or a CPU, how I can check that the hardware is supported without compiling and running ?
2
votes
3answers
2k views

HowTo Chroot to BSD

I recently tried FreeBSD [9.2]. I installed it but as i found out it doesn't install any bootloader by default. So now i want to find out HOW it is possible to chroot to the installed BSD via a ...
2
votes
2answers
1k views

How to run PC-BSD iso from GRUB with only Linux installed

I'm working on Ubuntu, and I wanted to try BSD. I downloaded a PC-BSD iso (PCBSD9.2-RELEASE-x64-DVD-USB-latest.iso). I wanted to know if it is possible to use "loopback" to run that image even if I ...
-1
votes
2answers
5k views

What is the difference between Unix, Linux, BSD and GNU? [closed]

What is the very fundamental difference between Unix, Linux, BSD and GNU? Unix was the earliest OS, so the term 'Unix like' is understandable, since they have kernel, file system structure, most of ...
7
votes
3answers
269 views

In shell config scripts, how can I account for differences between coreutils on BSD compared to GNU?

Up until this month, my shell configs have been pretty simple (just a .bashrc or .bash_profile with some aliases mainly), but I have been refactoring it so I can get different behavior depending on ...
3
votes
1answer
184 views

Does any OS support ZFS on MIPS?

Does there exist an operating system supporting ZFS under the MIPS architecture? If so, which operating system(s)? I am especially interested in: Support for ZFS on Loongson. OSes free from binary ...
22
votes
4answers
12k views

What are the differences between bsdtar and GNU tar?

I've always used GNU tar. However, all GNU/Linux distributions that I've seen ship bsdtar in their repositories. I've even seen it installed by default in some, IIRC. I know for sure that Arch ...