Questions tagged [bsd]

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

The Berkeley Software Distribution, usually known as BSD, is a UNIX operating system developed by University of California at Berkeley during the 1970s and 1980s. It lives on in several projects: the “big three” , , , as well as others such as , , …

Unless your question is about historic systems or about features shared by all BSDs, you should tag it with the proper specific tag (, …) instead of .

94 questions
161
votes
3 answers

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 a dot) when invoked by root and doesn’t show them…
kirelagin
  • 2,882
30
votes
2 answers

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/myfile of=~/myfile). I do see that they have some…
user232105
  • 303
  • 1
  • 3
  • 5
24
votes
11 answers

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 at 320, and if I do four at once, they will max…
23
votes
3 answers

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 the man page says sudo, sudoedit - execute a…
agz
  • 8,438
22
votes
1 answer

How to change virtual ttys in Linux and OpenBSD with console commands?

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 achieve this goal? Using key presses sometimes…
geek
  • 10,674
19
votes
3 answers

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.
Howard
  • 2,336
19
votes
4 answers

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?
Howard
  • 2,336
17
votes
2 answers

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. I'm trying with this: zip -r myarchive.zip . -x…
OMA
  • 1,800
17
votes
4 answers

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 on Linux?
16
votes
4 answers

What's the simplest way to display a browser-based interface on a computer without a GUI?

I am converting an old laptop into what will basically just be a terminal for some of my other computers. For the most part, I only need to ssh into my computers, and that I can do with any CLI-based OS. If that was all I needed, I would just…
Valiant
  • 191
13
votes
1 answer

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 one port.
Martin
  • 353
11
votes
2 answers

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 output you do ls --color=auto, but on BSD-likes…
Karu
  • 4,922
11
votes
8 answers

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, while using the shell (Bash, CSH, etc.) how do I…
Paolo B.
  • 221
10
votes
2 answers

Trying to understand UTF-8 locale portability (and SSH) on various Linux systems including OS X

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 course has a userland based on BSD. My locale on those…
kine
  • 1,849
8
votes
1 answer

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 access and is configured to use it. Plex is currently…
1
2 3 4 5 6 7