Skip to main content

Questions tagged [bsd]

Berkeley Software Distribution is a Unix operating system

0votes
1answer
64views

How to delete multipath (disk) device?

This is on TrueNAS 13.0U6.3 (FreeBSD 13.1-RELEASE-p9) I had a disk in my ZFS pool die. I replaced it, but I updated TrueNAS (Core) first - I think I was on U6.0 or U6.1 before the update. When I try ...
Harv's user avatar
  • 2,432
0votes
0answers
33views

Need help for a manual calculation of MBR after /bin/dd of Virtualbox flat hard disk image to actual HDD on 32-bit P4 laptop (2003)

I have an old laptop which I am trying to install OpenStep 4.2 with Patch 3 pack (Which supports over 8GB and has a VESA driver) on to a 2003 laptop which is a 32-bit pentium 4 with 512MB RAM and a ...
Puha Technologies's user avatar
0votes
0answers
62views

To copy using cp non-recursively if the '-a' option is already used

BSD cp: -a Archive mode. Same as -RpP options. Preserves structure and attributes of files but not directory structure. -P No symbolic links are followed. This is the ...
jsx97's user avatar
  • 1,347
0votes
0answers
93views

Trailing slash in GNU and BSD cp and find commands [duplicate]

What might be a reason that BSD cp and find don't "like" a trailing slash for directory names? | | cp | mv | |-----|--------------------------|...
jsx97's user avatar
  • 1,347
3votes
1answer
618views

Use underscore or hyphen for a CLI utility name? [closed]

I'm creating a CLI utility which is aimed at *nix OS:es. Let's call it 'Super CLI Project'. Looking at the latest POSIX Issue 7, 2018 edition - https://pubs.opengroup.org/onlinepubs/9699919799/ - ...
Beamie's user avatar
1vote
1answer
123views

How to find file names with non-printable characters using BSD `find -regex`?

Some folders on macOS have custom icons that are stored in a file named Icon?, where the ? is actually a CR character, and only prints as "?" in most cases (in Terminal and Finder). But when ...
Thomas Tempelmann's user avatar
2votes
1answer
163views

How to disable logical processors in OpenBSD?

It is well known that OpenBSD disables hyper-threading by default. However, htop shows 16 CPUs: 8 online and 8 offline, which takes extra space on the screen and is not very informative. Moreover, ...
nalzok's user avatar
2votes
1answer
69views

Old 43BSD and netstat output

On old 43BSD... netstat -f unix Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr 801ca38c dgram 0 0 8008b5c0 0 0 0 /dev/...
elbarna's user avatar
  • 13.6k
2votes
1answer
2kviews

Is there a way to install docker on freeBSD?

Is there any way to install docker on FreeBSD? I tried following the official freeBSD handbook but from what i have found the version of docker on FreeBSD is broken (i read that on docker page). i ...
Crazegi Contact's user avatar
0votes
0answers
34views

What should be done when a terminal application does not recognise some keyboard inputs? [duplicate]

I'm trying to play a very old Star Trek BSD game. It recognises characters that I type, but I occasionally make an error and want to use the arrow keys to correct it. This always fails. The pressing ...
J. Mini's user avatar
4votes
0answers
375views

Installing BSD tools on linux

I wrote a bash script to simplify some boring task in my codebase. As most of my coworkers are using MacOS, I aimed at POSIX complience and tried to stay away from bashisms. When it was time to ...
RaK's user avatar
  • 41
0votes
2answers
330views

tar alternative to bsdtar --include

I'm trying to adapt a script that uses bsdtar, which is not available on my Linux distribution. bsdtar -x -f <file> --include="SOME/FOLDER/" What is the alternative of --include in ...
mkrasowski's user avatar
1vote
0answers
64views

Second router can't access addresses when a main router routes over it

I have a main BSD router (A) routing some subnets via a second Linux router (B) and everything works fine. But when I try to access those subnets from the second router, it doesn't work. It sounds ...
sergeymakinen's user avatar
2votes
1answer
75views

Is there a better way to replace the actual shell in a script on a macOS/BSD-like OS?

I am using macOS. I have a shell script that doesn't work with bash but requires zsh. If I accidentally call it with sh (which is a very old bash on macOS) or bash I want it to replace sh or bash with ...
gctwnl's user avatar
5votes
1answer
303views

Is there a *BSD equivalent of MacOS renameatx_np, atomic swap file renaming?

I am looking to create a *BSD compatible C function like the one below: int fs_ext__swap (const char *from, const char *to) { int res = renameatx_np(AT_FDCWD, from, AT_FDCWD, to, RENAME_SWAP); ...
Lee's user avatar
  • 549

153050per page
close