-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathTRADEOFFS
58 lines (42 loc) · 2.11 KB
/
TRADEOFFS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Using bsdutils in place of GNU coreutils does come with some
tradeoffs. The list below highlights some of these that you should
consider before making the switch:
Some commands do not exist
--------------------------
The following commands are specific to GNU coreutils and are not part
of a BSD base system but have alternatives:
COMMAND DESCRIPTION ALTERNATIVE
dir list directory contents ls
dircolors color setup for ls ls supports color (-G)
vdir vertical 'dir' command ls
hostid print numeric host identifier none - dropped in 4.4BSD
The following commands are specific to GNU coreutils and have no
alternative provided by a BSD system:
COMMAND DESCRIPTION
nproc print number of processing units available
pinky lightweight finger
Lack of long options
--------------------
This is a usability thing, but if you have a lot of scripts that use
the long options for GNU coreutils commands, you will have to change
those to short options with bsdutils. Keep in mind the short options
often vary between GNU and BSD commands. See each command's man page
for more details.
No support for SELinux
----------------------
The ls(1) command from GNU coreutils can display SELinux information
in file listings. Since this is Linux-specific, the bsdutils do not
have support for it. If you don't need this or don't care about
SELinux, then the bsdutils should be functionally equivalent for you.
Some commands have FreeBSD mac.h functionality which is sort of like
SELinux on Linux. Those commands have had the mac.h functionality
removed, but they would be an ideal starting point for flipping that
over to SELinux on Linux systems.
No translations
---------------
The bsdutils commands come with very simple untranslated help output
and an English language man page. There may be translated man pages
in the FreeBSD source tree (we should look for those), but the
commands themselves don't output text in other languages. However,
text manipulation commands and things like ls(1) do work with UTF-8
encodings and wide characters.