New answers tagged

1

While installing from pkg is probably what you really want, it is possible to work with a partial ports tree (In the old CVSup days it was even possible to download only certain categories) You probably have to checkout from svn. You will need the Mk/ Directory plus the directories you are interested in plus all ports they are depending on. So this will ...


1

For ZVOLs use this one: # zfs get volsize


1

pkg is your friend here. man pkg for more info. You may already have some binary packages installed on your system. pkg info will tell you what packages (if any) are installed. On a freshly-installed system, pkg info will tell you that pkg is not yet installed, and ask whether you would like to install it: root@test:/root # pkg info The package ...


5

zfs list Use the list option on the zfs command built into FreeBSD. zfs list Example: $ zfs list NAME USED AVAIL REFER MOUNTPOINT zroot 4.41G 17.4G 88K none zroot/ROOT 3.49G 17.4G 88K none zroot/ROOT/default 3.49G 17.4G 3.15G legacy zroot/tmp 112K 17.4G 112K /tmp zroot/usr ...


4

So many downvotes stimulated me to install FreeBSD (TrueOS) on my 6-core desktop computer to test it myself. (NOTE: I do not recommend trying to install TrueOS alongside other operating systems, because this installation wiped one of my hard drives, even though I tried to install it on a USB drive... Not a user-friendly experience.) As a result, after ...


1

Since you want "Z" (GMT) you can do it simply with a format string and the literal T and Z characters % TZ=GMT date +"%Y-%m-%dT%H:%M:%SZ" 2019-07-13T02:04:16Z If you don't want to type that each time, you can make it a function or a script eg % isotime() { TZ=GMT date +"%Y-%m-%dT%H:%M:%SZ" } % isotime 2019-07-13T02:06:42Z


2

I see, the benchmark involves using OpenMP. This is where difference may come from. Check what OpenMP runtime library is being used. Another thing worth looking at - disassembly code or intermediate representation. It can allow you to quickly find differences in instructions being executed. To sum this up, there is no quick and definitive answer to this, ...


4

id If you just need to identify your username from within the terminal session, use id(1) For example: id -p uid freebsd groups freebsd wheel This command complies with POSIX, and supplants the whoami utility.


3

Two easy ways are with the w or who command. They will tell you who is logged in and what terminal device they are using. $ w 11:46PM up 3:23, 2 users, load averages: 1.45, 0.94, 0.71 USER TTY FROM LOGIN@ IDLE WHAT user1 p0 :0.0 9:01PM 0 -ksh user2 p1 :0.0 11:42PM 0 w $ who user1 ttyp0 ...


0

sshd can be run as a stand-alone service, or from inetd. If you run it from inetd you can write a simple wrapper around the /usr/bin/sshd binary to do whatever you'd like when an ssh connection is made: # cat /root/bin/sshd.sh #!/bin/sh logger -i -p auth.info "Someone is trying to ssh in" exec /usr/sbin/sshd "$@" # ls -l /root/bin/sshd.sh -rwx------ 1 ...


1

The offset and nbytes arguments are not describing the same thing. On the contrary, they're describing where to start and where to end copying bytes from the file, respectively. If your file is 131,072 bytes in size (128KiB) and you use an offset of 16,384 and nbytes of 32,768, then sendfile() will copy from position 16,384 to position 49,152 on the file, ...


0

You have overwritten the value of the ifconfig_bridge0 by using: ifconfig_bridge0="addm lagg0" ifconfig_bridge0="inet 172.16.0.11 netmask 255.255.255.0 up" Either convert it into a single line: ifconfig_bridge0="inet 172.16.0.11 netmask 255.255.255.0 addm lagg0" I don't think you need to up the bridge interface. Or use an append syntax: ...


0

It is in the firmware package # pkg install bhyve-firmware


0

Doing some more experimenting today with different data, I believe I may have found the problem: by default, sort (BSD) will only open 16 files at once (the man page seems to imply this includes both input and temporary files). The --batch-size= switch will allow this count to be increased. Using pre-sorted files of 100MB in size: sort -u -m <...15 ...


0

This is a rather unsatisfying answer, and one that can hardly be considered a "proof". I went ahead and enabled TLS 1.2 on my web server, and SSL Labs not only increased my site's grade from an A to an A+, but it also shows that session resumption is on. It still doesn't show 0-RTT as enabled. I tested a couple of other sites that have TLS 1.3 enabled like ...


Top 50 recent answers are included