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 .

92 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,832
  • 2
  • 17
  • 22
27
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
  • 273
  • 1
  • 3
  • 5
23
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,088
  • 21
  • 70
  • 112
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
  • 9,746
  • 3
  • 21
  • 16
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,166
  • 8
  • 27
  • 42
17
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,166
  • 8
  • 27
  • 42
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?
Nick Pierpoint
  • 535
  • 1
  • 5
  • 14
15
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,620
  • 4
  • 18
  • 25
15
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
  • 161
  • 1
  • 6
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
  • 343
  • 3
  • 11
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,634
  • 7
  • 34
  • 54
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
  • 2
  • 6
9
votes
1 answer

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 "setting permissions vs setting a flag", what are the…
selbie
  • 313
  • 1
  • 9
9
votes
2 answers

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 course has a userland based on BSD. My locale on those…
kine
  • 1,809
  • 1
  • 17
  • 16
1
2 3 4 5 6 7