The BSD (Berkeley Software Distribution) is a UNIX operating system developed by University of California at Berkeley during the 70s and 80s.

learn more… | top users | synonyms

5
votes
2answers
4k views

UTF-8 locale portability (and ssh)

I spend a lot of my time sshed into various machines, all of which are different (some are embedded, some run Linux, some run BSD, &c.). On my own local machines, however, i use OS X, which of ...
0
votes
0answers
28 views

What version of tar does 7-zip use?

Does anyone know what version of tar 7zip uses for archiving/extracting? Is it gnu tar or bsd tar... or something else? I've googled around for an answer but can't find anything.
14
votes
1answer
23k views

Console commands to change virtual ttys in Linux and OpenBSD

In Linux one presses Alt-F1, Alt-F2 etc to change virtual ttys. In OpenBSD one shall use Ctrl-Alt-F1 etc instead. Are there are console commands for these two operating systems that can be issued to ...
0
votes
1answer
15 views

Is there a native alternative to the `watch` command; for Darwin/OS X

I have a script that I'm trying to port from Linux to Darwin/OS X. The Linux version currently depends on the watch command, which doesn't appear to be installed on Darwin/OS X by default. What's the ...
1
vote
3answers
7k views

trying to install FreeBSD from a pen drive. Failed with error 19

I am trying to install FreeBSD from a pen drive. But it returns an error on boot. cd9660 :/dev/iso9660 error :/dev/iso9660/FREEBSD_INSTALL failed with error 19 and appears mountroot> command ?...
2
votes
3answers
1k views

Lenovo S20 workstation allergic to Linux?

I got a new Lenovo S20 and I am having trouble loading Linux. I've loaded these variants with no success: Ubuntu desktop Ubuntu server Linux Mint CentOS vmWare esxi The live CD's run, and very ...
0
votes
1answer
28 views

Using specific grep flags from BSD general commands version on a Mac

So I have been using a command piped through curl (on GNU/Linux's grep utility) to generate a random password string for tightening security on some of my accounts. curl -s https://www.grc.com/...
1
vote
0answers
29 views

bsd (osx) pf nat - change source port on outgoing UDP packets

I am running docker-machine on osx. docker-machine is running NAT so when my container send out a UDP packet on port 1812, NAT is translating it to some random port. I am playing around with pf nat (...
158
votes
3answers
7k views

On OS X, why does `sudo ls` show hidden (dot) files?

With OS X Yosemite, using the following commands, I get the following: $ touch .a $ touch b $ /bin/ls b $ /bin/ls -A .a b $ sudo /bin/ls .a b It shows hidden files (that have names starting with ...
1
vote
1answer
81 views

Why is Bash reporting “command not found” in some cases in the Terminal but not in others?

Often, but not always, when I start the Terminal on my computer and use pipe (|) in a command, pbpaste | wc as an example, bash gives -bash:  wc: command not found. (The double space is not a typo). ...
0
votes
1answer
79 views

Alternate location for GPT partition entry table

The GPT header (usually in LBA 1) has a PartitionEntryLBA field (see 5.3.2 GPT Header in the spec). There is language in various references (such as the wikipedia GPT entry) describing that field ...
7
votes
1answer
197 views

Forcing *BSD to accept both IPv4 and IPv6 traffic on a single socket

I have tried a ton of stuff and keep coming up entirely empty handed. Allow me to frame the situation: I have a *BSD Jail setup in FreeNAS that runs a Plex Media Server (Plexpass). It has IPv6 ...
15
votes
2answers
14k views

Why do we use cp to copy files and not dd? (in unix-derivatives)

For normal file copying in *nix, I've only ever seen people use cp (eg. cp /mnt/mydevice/myfile ~/myfile), but I eventually ran into dd, which appears to do the exact same thing (dd if=/mnt/mydevice/...
0
votes
0answers
194 views

Netstat VS Netstat (Gnu/Linux VS BSD/Mac OS X)

Why are there different versions of netstat for Gnu/Linux and BSD/Mac OS X? I'm trying to get the latter to respond & behave more like the former.
1
vote
0answers
156 views

mod_python won't “./configure” on BSD

I'm trying to install mod_python 3.3.1 on Apache 2.4.3 and whenever I try to run ./configure (with apxs etc), instead of configuring correctly, it says that Apache 2.x is required and my current ...
0
votes
1answer
702 views

Recursively compress files in a directory and subdirectories using command line “zip” tool in Mac OS X and exclude .DS_Store files from ALL subfolders

I'm trying to create a ZIP file using the command line zip tool that comes with the Mac OS X Terminal. I want to recursively compress the contents of the current folder but excluding .DS_Store files. ...
0
votes
0answers
73 views

OSX: PF 'antifspoof' rule blocks ntalk packets…

I'm trying to get to work ntalk between my two macs inside my local network and found a problem with my pf firewall configuration. When I do $ talk user@macbookpro.local gettng: [No connection ...
0
votes
0answers
37 views

How to make a PF filter by packet size?

I am looking for a PF option that can filter UDP packets according to their packet sizes. iptables has an option --length, but I could not find an equivalent option for PF.
14
votes
11answers
15k views

Inverse multiplexing to speed up file transfer

I have send a large amount of data from one machine to another. If I send with rsync (or any other method), it will go at a steady 320kb/sec. If I initiate two or three transfers at once, each will go ...
5
votes
3answers
4k views

What is the BSD equivalent of Linux `netstat -lptun`?

In Linux, netstat -lptun gives a list of servers with the following details: protocol local and foreign address state PID and program name What is the command's equivalent in FreeBSD? Thanks.
1
vote
2answers
26 views

Compare list of files from a database using find to locate missing files

I have a list of 2000 files from a database that looks like this: ./aa/0f/unique-string/IMG_0987.JPG ./ab/cf/unique-string/IMG_0987.JPG I want to compare that list to the actual directory contents ...
1
vote
1answer
348 views

Why can't I use my newly created user with chown?

So I am attempting to create a new user and group, and then change ownership of a directory to that new user/group. However, when I do, chown comes back with an "illegal user name" message. Here's a ...
0
votes
1answer
64 views

How can I make this SED command more portable?

I'm using the following sed command: cat version | sed -e 's/[0-9][0-9][0-9][0-9][0-9:M]*-[abp]/Ver\n/' Which normalizes like this: 4330M-p -> Ver<newline> This works fine with GNU ...
1
vote
0answers
20 views

BSD Packet Filter Redirect Internal traffic

I'm using OSX Yosemite with Packet Filter (BSD). Is there a way to redirect internal originating traffic (let's say from en1) to lo0 on a specific port for specific destinations? rdr from what I ...
1
vote
0answers
148 views

PF rule using return-rst on Mac OS X does not reply with TCP reset

I'm trying to add a simple PF rule: block return-rst out proto tcp from any to any port 33128 to filter all outgoing traffic to TCP port 33128, and I'd like it to respond with a reset. However, ...
1
vote
1answer
145 views

Interactive search of tmux sessions

When switching between tmux sessions with the interactive session menu (<prefix>-s), you can jump to a specific session by typing the session's numeric or alphabetical index, e.g. (0) + ...
0
votes
0answers
154 views

Can user-mode Linux be compiled and run on UNIX systems?

e.g. on NetBSD or Solaris? Or does it require exclusively Linux-specific system calls, virtual filesystems, etc.? Also, if it's currently limited to Linux, what changes would be required to port it ...
2
votes
2answers
82 views

How does an OS run before drivers are installed?

I am looking into hardware compatibility of BSD vs Linux vs Windows. One comment that keeps reoccurring is "check your hardware before installing any variant of BSD". This is also a (smaller) issue ...
0
votes
1answer
109 views

PC shutdown unexpectedly without blue screen

My PC is shutting down after few hours(?) without BSD, but keyboard lights, power LED, fans are running (it's not sleep mood or hibernating). To switch them off I have to switch off the UPS, holding ...
3
votes
0answers
507 views

Port forwarding outgoing request with PF

I'm trying to redirect all outgoing traffic from my local machine on port 843, to go to my local service on port 1234. So, when I make a request to e.g. 1.2.3.4:843, I want it to connect to 127.0.0.1:...
11
votes
4answers
4k views

What is the reason for rmdir(1) and rm(1) to co-exist?

I use BSD and Linux every day, I have never had a circumstance which I must use rmdir(1) rather than rm(1). What's the purpose of rmdir's existence?
0
votes
1answer
945 views

NetBSD as VMware workstation guest: `startx` hangs and maxes all CPUs utilization

I am using VMware workstation 8. I have attempted to install and run NetBSD 5.1.2 and 6.0. Installations all went OK and the system was usable until I install a window manager. After installed xfce4, ...
1
vote
2answers
446 views

Why doesn't ls -lh show the total size of all the files and directories in each directory?

For example, it shows the kernel as being 18M but the Applications folder as being 3.8K BSD/Darwin
0
votes
2answers
53 views

What is a better approach for ZFS?

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 ...
10
votes
8answers
3k views

Mass renaming, *nix version

I was looking for a way to rename a huge number of similarly-named files, much like this one (a Windows-related question) except that I'm using *nix (Ubuntu and FreeBSD, separately). Just to sum up, ...
2
votes
4answers
2k views

Is it possible to run a Linux / BSD app on a mac?

I don't care if I have to add libraries or build whatever on my end. I'm just hoping since OS X has the foundations of Unix that there's some way to run a Linux or BSD client. Specifically, we need ...
0
votes
2answers
115 views

Is there any Linux Distro based on BSD

I have hp probook 4530s. I have tried variety of OS on this but after using 10-15mins its screen flicks and the system hangs. Check the attached screenshot This screen flicks for all windows OSs, ...
4
votes
3answers
1k views

Is there a command line calendar calculator?

Is there a command line calendar calculation which provides these features? Date (plus|minus) date interval calculation User specified input and output format
1
vote
2answers
158 views

Keeping the wireless connected

I’m running OpenBSD on a computer which is connected via wireless to the network. It is a well supported NIC and I’ve had no problems with it from a hardware perspective. Unfortunately my wireless ...
2
votes
1answer
2k views

How to install GCC or a compiler on FreeNAS 7.2

I have a NAS, running FreeNAS 0.7.2 (FreeBSD 7.3). I have tried to install Flexget, but it requires some pysqlite dependency. I have python 2.6 and python-setuptools. Running pysqlite-2.6.0/setup....
5
votes
1answer
454 views

What's are the technical differences between “chmod -w file” and “chflags uchg file”

BSD/MacOS question. chmod -w file will remove all the write permissions from file chflags uchg file will set the user-immutable bit (aka "Locked" bit) on file Beyond the obvious statement of "...
0
votes
1answer
178 views

How do you determine if you're on a linux or BSD system inside a script?

I've got a rather extensive selection of dotfiles thats been kept in a git repo for the longest time - I just maintain a separate branch of code for bsd-isms (for instance, on Linux, to get colored ls ...
0
votes
2answers
3k views

Copy files off FreeBSD

I have a FreeBSD machine that I have to copy everything off the drive. The fielsystem is UFS and not readable by any other operating system. (great...) I have a USB flash drive (FAT32) I need to copy ...
3
votes
1answer
1k views

ssh terminal session times out, how can this be changed

It seems after about 5 minutes an inactive ssh session is terminated. The server is Ubuntu. How can I change this?
4
votes
1answer
626 views

FreeBSD compatibility layer on Linux

I am aware of Linux mode on FreeBSD, where Linux binaries can seamlessly be executed in FreeBSD. From the FreeBSD handbook: In effect, there is a Linux kernel in the FreeBSD kernel. The various ...
0
votes
1answer
630 views

Backup bootable USB flash in Mac OS X

I have a bootable USB. It runs Linux. The size of USB pen is 8Gb, and linux partitions take less than 200Mb. $ diskutil list /dev/disk0 #: TYPE NAME SIZE ...
0
votes
1answer
182 views

Install linux/bsd on compact flash using USB connector

How do I install linux/bsd on compact flash with usb compact flash adapter. The compact flash will boot on single board x86 computer as an IDE drive, but I'm doing the install on a regular computer ...
24
votes
3answers
2k views

Sudo su vs su linux

If I enter in the password to su when prompted, it doesnt work while sudo su does. Also, when a command is executed using sudo (command), does sudo automatically execute it by root by default (since ...
3
votes
0answers
136 views

“bad magic number” during fresh OpenBSD installation to a USB stick

Trying to install OpenBSD 5.2 onto disk sd0 (2GB USB storage connected to the computer). Burned install52.iso as image to a CD, loaded it into CD drive, and booted off it. After selecting [W]hole ...
0
votes
1answer
252 views

Can I Install Ghost BSD on an NTFS partition?

I have installed ubuntu 12.10 on my laptop. And decided to check out Ghost BSD. Two of my drives are formatted using NTFS so that Windows installation can access. So i have prepared one of drives ...