Questions tagged [bsd]

Berkeley Software Distribution is a Unix operating system

Filter by
Sorted by
Tagged with
1
vote
1answer
26 views

finding a package and what version is in various distributions (stable release) [duplicate]

I am looking to know about a package and what version is it across various distributions. I thought distrowatch might be the answer, but I found it tracks only 224 packages at the most. See https://...
0
votes
0answers
41 views

Using tr to convert newline to null stops stream output

I'm using the saw and jq plus some filtering to get pretty-printed JSON log streams, but what I have below has no output. It just hangs. saw watch /aws/ecs/container-log \ | sed -e 's/^\[.*\] \(.*\)(....
1
vote
0answers
17 views

Tuntap interface odd behavior

I have a program that uses tapcfg to set up a tuntap interface and the interface seems to get setup correctly on the endpoint address I specify which is 169.253.2.100. I also set up the src address to ...
1
vote
1answer
39 views

What are BSDs' equivalents to /proc and /sys?

The amount of information that can be gathered in linux using the procfs and sysfs which are normally mounted at /proc and /sys is quite substantial. Being not on a FreeBSD install I am amazed to ...
0
votes
0answers
38 views

Hardware requirements for BSD 4.4 Lite?

I am trying to track down the hardware requirements for BSD 4.4 Lite. I have a custom CPU, and I am currently looking at porting an OS to one as an afterthought. I picked BSD 4.4 because the ...
0
votes
0answers
51 views

polkit on OpenBSD

I use xfce which came with a polkit action org.xfce.thunar.policy in /usr/local/share/polkit-1/actions/. This action allow to run thunar as root if you can give the root password. On debian with ...
0
votes
1answer
24 views

Omitting one particular nested folder while copying a folder

I know how to use the cp command to recursively (-r) copy nested folders while preserving (-p) file meta-data such as modification times: cp -pr "/path/from" "path/to" ➥ Is there a way to omit one ...
2
votes
2answers
71 views

What is “BSD-style memory management”?

I'm running Arch Linux. In /usr/include/sys/mman.h, it says: /* Definitions for BSD-style memory management. Copyright (C) 1994-2019 Free Software Foundation, Inc. . . . What does this mean? What ...
1
vote
0answers
31 views

BSD netcat how to terminate after sending command?

echo "test" | nc -N -U example.soc How can I have this terminate once it has successfully sent the message over? According to the man page: There should now be a connection between the ports. ...
5
votes
1answer
955 views

What happens on pressing Ctrl-T in a terminal when a program is running?

When I press Ctrl+T while some program is running in a terminal, I get some extra output, e.g.: $ ping -q -c 100 google.com PING google.com (172.217.16.46): 56 data bytes load: 2.39 cmd: ping 5374 ...
1
vote
1answer
142 views

What does “ln -t” do [duplicate]

What does ln -T do? I know the flag does not exist in the BSD version of ln, and it only exists in the GNU version, and I have read the documentation that it will make ln "treat LINK_NAME as a normal ...
1
vote
0answers
128 views

cross-compiling for 32-bit architecture on 64-bit (FreeBSD)

I'm having problems cross-compiling a library for 32bit FreeBSD architecture on a 64bit FreeBSD-system. I'm happy about any hint/advice. Compiling for same architecture (64bit) works fine. I built ...
0
votes
0answers
751 views

What's the equivalent to objcopy on macOS?

I would expect llvm-objcopy to be installed on macOS, since its counterpart llvm-objdump is installed toghether with other LLVM tools like clang. What is the llvm-objcopy-equivalent tool to use on ...
1
vote
3answers
61 views

How to compile fIcy for BSD?

I'm trying to compile fIcy (https://gitlab.com/wavexx/fIcy) for NetBSD/FreeBSD. When I'm executing the make command nothing happens. Even no error message. The same source package compiles without ...
3
votes
2answers
247 views

Test suites for utilities (cat, cp etc) Linux or BSD?

Are there any test suites available for the small programs usually shipped with the operating system? Specifically, programs like cp, cat, dd etc (anything in /bin/) on Linux or BSD; OpenBSD being the ...
0
votes
1answer
76 views

Install Postgres database on FreeBSD

How does one go about discovering and installing the Postgres database system onto a FreeBSD machine? Must one install the entire gig of data for the entire Ports tree, and then compile from source? ...
2
votes
1answer
46 views

Install only a portion of the Ports tree in FreeBSD

I know how to install and update the entire Ports tree in FreeBSD. portsnap fetch extract portsnap update This brings down all the meta-data (and source code?) for some 30,000 apps. This bloats my ...
6
votes
2answers
177 views

Report how much space is used and available in storage in ZFS on FreeBSD

When using ZFS on FreeBSD, how can we see how much space is used and how much is available in storage drives (hard disk, SSD, etc.)? For example, spinning up a virtual machine instance of FreeBSD on ...
1
vote
1answer
159 views

Get current date and time in standard ISO 8601 format on console in FreeBSD

I would like to get the current date-time conveniently on the console in standard ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ For example: 2019-07-13T01:09:35Z I know the date command displays the current ...
2
votes
3answers
128 views

wc -l to count lines all txt files in folders and subfolders

I have a few hundred txt files in several subfolders and I would like the count the lines in each txt file. I can do this for all txt files in the current directory by using: for f in *.txt; do wc -l ...
0
votes
2answers
39 views

Forgot correct syntax to mv millions of files around on the same partition

I had a command line instruction to move a 100k’s of jpgs to the correct directory on the same disk/volume/partition and without using xargs. The quirk is that the jpgs have spaces and multiple ...
0
votes
1answer
190 views

How does route-to work in the BSD pf firewall?

I've recently learned about the route-to functionality in the pf firewall, and I wonder how it works. Is it similar to the "policy-based routing" system in linux? How does route-to allow the ...
0
votes
1answer
231 views

how to make my sed command work in GNU works in BSD

I have a block content in my ~/.ssh/config. begin with a line '# BEGIN AUTO GENERATED CONTENT' and end with a line '# END AUTO GENERATED CONTENT' I have a command replacing content between this two ...
1
vote
1answer
156 views

Translating Linux stat(1) command into BSD stat(1) command

Background CLion's remote project feature currently doesn't support FreeBSD as a remote host OS, but I want to do some hacking and see if it works. By reading the log file, I think I have spotted (...
7
votes
1answer
461 views

Newlines in BSD sed vs gsed

The sed, which comes with FreeBSD 11.2 p7, gives: $ seq 10 | sed 'N; l; D; p' 1$ 2$ 2$ 3$ 3$ 4$ 4$ 5$ 5$ 6$ 6$ 7$ 7$ 8$ 8$ 9$ 9$ 10$ While gsed (GNU sed 4.7) gives for the same script: $ seq 10 | ...
0
votes
2answers
127 views

Are there multiple flavors of the GNU tools?

I think that the BSD tools have different flavors, for example the BSD ls tool is not the same tool on FreeBSD and OpenBSD and NetBSD (and even on macOS). Note that by "different flavors" I mean that ...
1
vote
1answer
243 views

Does Apple modify the GNU and BSD tools that comes with macOS? [duplicate]

macOS comes with bash (which is a GNU tool), macOS also comes with tools like ls and chmod (which are BSD tools, even though I don't know from which BSD flavor they come from). Now does the GNU and ...
26
votes
5answers
4k views

Do the common programs (for example: “ls”, “cat”) in Linux and BSD come from the same source code? [duplicate]

Both Linux and BSD have common programs like ls and cat and echo and kill. Do they come from the same source code, or do both and Linux and BSD own their own unique source code for these programs?
0
votes
1answer
234 views

blacklistd not blocking addresses

I've enabled the PF(4) firewall and blacklistd(8). Although IP addresses are being added to to blacklist, I can still see multiple failed attempts from a single IP address. Yet when I test it myself, ...
0
votes
1answer
818 views

how to use logger to write info to log

I want to use the logger command in order to write logs to /var/log/server.log NOTE: These examples use the FreeBSD version of logger. Your system may have different options, so read your local ...
0
votes
1answer
164 views

Does BSD have priveleges or capabilities?

In Solaris, I believe that you can assign privileges to users, and in Linux you can assign capabilities to executable files. Does some or all BSD flavors have privileges or capabilities, or something ...
1
vote
1answer
64 views

rc scripts for multiple Zope instances in FreeBSD

I'm trying to configure multiple Zope-Instances as daemons in FreeBSD. Each instance gets a start script in /usr/local/etc/rc.d. Starting works fine, but invoking status or stop is problematic because ...
0
votes
1answer
301 views

How to install man pages for certain libc functions?

In the past, from time to time, while developing Linux software, I have noticed that some man pages which deal with developer documentation are missing on my systems. This happens mainly on Debian ...
2
votes
0answers
80 views

Enabling dual boot in grub: debian and graphical *BSD

After installing TrueOS to unallocated disk space, my computer didn't boot properly any more. With choosing a boot image, my screen froze. So I ran the rescue mode of a debian install medium and ...
-1
votes
1answer
48 views

How many packages can one pc contain (without conflicts)? [closed]

I'm talking about one architecture, one distribution "at a time" (no multi-boot) and only packages in official repositories. If repos from different distros can be mixed, I'd like to distinguish ...
1
vote
1answer
80 views

What's the content of license that AT&T licensed Unix to third-party vendors?

Initially intended for use inside the Bell System, AT&T licensed Unix to outside parties in the late 1970s, leading to a variety of both academic and commercial Unix variants from vendors ...
0
votes
0answers
126 views

Does anyone remember “wow”?

Is there anyone out there who remembers the "wow" command? This is my recollection: Back in the days- oh, probably around or before BSD 4.3 (circa 1984-88 or so)- you could type in "wow" at the ...
2
votes
0answers
126 views

No such process (3) when not connected to a network (AF_ROUTE)

When I am connected to a network, I can send a struct rt_msghdr* to the kernel and receive a corresponding route. However, when I disconnect from the network and try to send the same route message ...
1
vote
1answer
117 views

On FreeBSD, or other BSDs, what directory is commonly used for data folder storing the content of a database such as Postgres

I am wondering if there is a convention on where to store the data folder containing all the files for the tables and rows of a relational database system such as Postgres.
0
votes
1answer
438 views

Differences between forwarding and redirect in net.inet.ip

What are the differences between sysctl variables net.inet.ip.forwarding and net.inet.ip.redirect?
1
vote
2answers
101 views

Sort the files by size retrieved from a series of folders

I retrieved all the pdfs in $HOME directory $ find -E ~ -regex ".*/[^/].*.pdf" It print more than 1000 files; I intent to sort them by size and searched $ stat -f '%z' draft.sh 184 I drafts the ...
0
votes
1answer
80 views

FreeBSD Ethernet Port Bonding

After reading about FreeBSD aggregation we think we are set but it's still not clear to me. Switch is a Cisco 2960S (software 15.x), Client is a Mac Pro running Mavericks. I don't know if the BSD ...
0
votes
1answer
123 views

how convert linux sed command to bsd [duplicate]

How can I make this work on macOS terminal? sed -i 's/config.action_mailer.default_url_options =.*$/config.action_mailer.default_url_options = {:host => "localhost:3000"}/g' config/environments/...
12
votes
1answer
5k views

What are the relations between processes, kernel threads, lightweight processes and user threads in Unix? [closed]

Unix Internal by Vahalia have figures showing the relations between processes, kernel threads, lightweight processes, and user threads. This book gives most attention to SVR4.2, and it also explores ...
0
votes
1answer
188 views

Are there any Keryx offline repository manager alternatives for NetBSD?

I want to install Xfce offline on another computer but I don't know. I searched in internet and found Keryx offline repository manager for Debian-based package management but not NetBSD. I want to ...
1
vote
2answers
471 views

How to change the font size in NetBSD (TTY no GUI)

NetBSD 7.1 (GENERIC.201703111743Z) amd64 In TTY without gui , the better screen resolution is set at boot time but the font is really to small. So how to change that On debian dpkg-reconfigure ...
4
votes
2answers
118 views

BSD sed vs GNU - is it capable of nested matches?

This works perfectly well on any Linux : $ echo foo bar | sed -n '/foo/{/bar/{;p;}}' foo bar But fails on OSXs ancient BSD variant : ❯ echo foo bar | sed -n '/foo/{/bar/{;p;}}' sed: 1: "/foo/{/...
0
votes
1answer
65 views

Move/transform everything from pwd into subdirectory while archiving with tar

I am on a MacOS machine (I think tar command is BSD). From I have read the -s switch on BSD tar, is the same thing as the --transform switch for GNU tar. I have this command: tar -zcf foo.tgz -s /^"$...
-3
votes
1answer
190 views

Are there any resources for learn making BSD-like systems like NetBSD and OpenBSD? [closed]

Don't tell me learn LFS (Linux from scratch) and make your Linux distribution. I interested on BSD-like systems. I want to become like Theo de Raadt (founder and leader of the OpenBSD and NetBSD) and ...
2
votes
3answers
364 views

Why isn't there a /usr/include/GL directory on OpenBSD?

I have just recently made the switched for Linux to OpenBSD. So far, I am really liking the philosophy of including the bare minimum needed to run the system, and the emphasis for clean and simple ...

1
2 3 4 5