Skip to main content

Questions tagged [bsd]

Berkeley Software Distribution is a Unix operating system

0 votes
1 answer
64 views

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,420
0 votes
0 answers
33 views

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
0 votes
0 answers
62 views

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
0 votes
0 answers
93 views

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
3 votes
1 answer
609 views

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
  • 133
1 vote
1 answer
123 views

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
2 votes
1 answer
160 views

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
  • 431
2 votes
1 answer
69 views

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
2 votes
1 answer
2k views

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
0 votes
0 answers
34 views

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
  • 167
4 votes
0 answers
371 views

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
0 votes
2 answers
330 views

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
1 vote
0 answers
64 views

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
2 votes
1 answer
75 views

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
  • 133
5 votes
1 answer
303 views

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

15 30 50 per page
1
2 3 4 5
18