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

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 ...
23
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 ...
14
votes
11answers
14k 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 ...
14
votes
4answers
2k views

Why aren't all Mac applications easily portable to Linux?

Since the Apple OS-X operating system is a UNIX derivative (BSD), and the underlying (Intel) Mac architecture is the same, why isn't it very straightforward to get Apple-specific applications running ...
14
votes
1answer
22k 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 ...
14
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 ...
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?
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, ...
7
votes
1answer
191 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 ...
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.
5
votes
1answer
448 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 ...
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 ...
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
4
votes
1answer
1k views

DragonFlyBSD and VirtualBox

Has anybody tried to run DragonFlyBSD (32-bit) over VirtualBox on a Windows (64-bit) host?
4
votes
1answer
617 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 ...
4
votes
1answer
201 views

Create a file whose size in bytes is the percentage of free space on a disk

I needed a command-line method of creating a file whose size in bytes is the percentage of free space on a disk. I intend to run it via cron every five minutes, but first a shell script will do. The ...
4
votes
3answers
309 views

Linux or BSD “smart” watch?

Many many years ago (2001) IBM were working on a Linux watch with Bluetooth (if memory serves). I wonder if anything like it is available now? Specifically, I'd want a watch that tells time and runs ...
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?
3
votes
3answers
320 views

compare cygwin to bsd

I have a Windows 7 laptop and I need UNIX/LINUX for an application. I have run across Cygwin which creates a UNIX 'shell' so that you can run software that requires this on your PC. One of the ...
3
votes
0answers
488 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 ...
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 ...
2
votes
1answer
2k views

What to you use as a “fuser -v -n tcp” alternative on Mac OS X

The fuser command on Mac OS X is rather primitive and can't check for processes listening on a specific port. Does anybody know a good alternative? It it enough to know which process listening on that ...
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 ...
2
votes
2answers
2k views

FreeBSD password file

What would be FreeBSD password file equivalent of linux /etc/shadow and /etc/passwd? Is it the same? According to what I heard /etc/passwd exists in FreeBSD, but not sure in case of /etc/shadow.
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 ...
2
votes
1answer
551 views

How do you create virtual folders from saved search

I would like to have on unix-like platforms, the same functionality as to Windows 7 Library folders (aka virtual folders) you see in Windows Explorer. Gnome Nautilus do that kind of virtual folders ...
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 ...
2
votes
1answer
128 views

Linux distribution with preference for permissive licenses

Is there a Linux distribution with a preference for permissive free software licenses (such as the BSD license), or, in other words, for avoiding GPL and other copyleft licenses? I do know about the ...
2
votes
1answer
2k views

No interfaces defined in new Linux installs after installing BSD

A few months back, I attempted an install of PCBSD on my laptop (EDIT: Thinkpad T420). Before installation, my partitions consisted of /swap, /, and /home for an Arch Linux install, and one ...
2
votes
0answers
314 views

Hibernating/Saving state of a gnu-screen, to resume after reboot? [duplicate]

Possible Duplicate: Make GNU screen survive reboot Is it possible to hibernate or save the current state of a gnu-screen to resume after reboot?
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 ...
2
votes
1answer
908 views

Is there an equivalent for AnyDVD on Unix?

What would be the equivalent to AnyDVD on Unix (linux,*bsd etc)?
1
vote
1answer
281 views

ZFS & Deduplicating FLAC Data

I'm experimenting with using ZFS to deduplicate a large library of FLAC files. The purpose of this is twofold: Reduce storage utilization Reduce bandwidth needed to sync the library with cloud ...
1
vote
2answers
445 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
1
vote
1answer
77 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). ...
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 ...
1
vote
1answer
2k views

How much BSD is in OSX Lion? [closed]

OSX is commonly seen as the graphical shell on top of BSD. Lately, it seems as though Apple is adding more and more to 'core' OS functionality (sandboxing, versioning). Is there a steady progression ...
1
vote
1answer
306 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 ...
1
vote
1answer
141 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) + ...
1
vote
1answer
2k views

update file in tar

for Linux tar command: tar uf test.tar test.txt but for *BSD bsdtar command option u = r = append,that is can't update file ,only can append file and also ,I try compiled libarchive , proved ...
1
vote
1answer
168 views

What value do I pass to `xrandr --output`?

I wish to add a new modeline using xrandr, however when I want to switch to the new modeline, I am asked to provide --output. The manual page doesn't explain where I can get my options from. So how ...
1
vote
1answer
3k views

How to connect to Cisco W3550 with FreeBSD

There is a pfsense 2.0.1 (FreeBSD) and the command cu for access to the serial console, there is a Cisco W3550 attached but I can't get a connection. I try following Command: cu /dev/cuau0 -speed ...
1
vote
1answer
383 views

Questions about installing BSD on a *technically* external HDD

A little bit of background: 1) I have a 160 GB hard drive from a netbook 2) I also have a SATA->USB enclosure that the drive fits in perfectly Now, I'd like to install some flavor of BSD (probably ...
1
vote
0answers
27 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 ...
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
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
141 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
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 ...
1
vote
2answers
154 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 ...
0
votes
2answers
1k views

What BSD is the most friendly to a laptop? [closed]

Don't get me wrong here, I'm just probing opinions. I'd like to try BSD on my laptop, to learn more, to have fun with:) I'm currently choosing between NetBSD and OpenBSD, just a whim. What I'm ...