2022 Developer Survey is open! Take survey.

Questions tagged [standard]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
33 views

How to use one table (ods) file as a base for another table file?

I have an accounting ledger table (.ods) file which should be the base for other table files. This table file should be the base for other table files such as: 2023.ods 2024.ods 2025.ods These are ...
user avatar
0 votes
0 answers
89 views

When to clean up /var/tmp?

/var/tmp is not defined in POSIX, but is defined in FHS: 5.15. /var/tmp : Temporary files preserved between system reboots 5.15.1. Purpose The /var/tmp directory is made available for programs that ...
user avatar
  • 3,583
0 votes
0 answers
88 views

Why is unistd.h named the way it is?

Similar in spirit to this question about the etymology of linux commands, I'm curious about the origin of the name of unistd.h. From the Open Group's description of unistd.h (emphasis mine): unistd.h ...
user avatar
0 votes
1 answer
33 views

Single Unix Specification version 4 (Issue 7) moved bunch of Real-Time APIs to Base, What Next?

While reading the standard, I noticed that bunch of APIs were, Introduced in Issue 5 for alignment with POSIX realtime APIs, Marked for option group membership in Issue 6, and Moved to Base in ...
user avatar
  • 429
2 votes
2 answers
154 views

Cat alternatives for writing terminal input to file?

When I want to quickly write something to a file that either get's pasted or manually input from the terminal, a quick cat > something.txt and Ctrl+D to close, is a nice shortcut. However of course ...
user avatar
  • 129
0 votes
2 answers
99 views

Are there "non-standard" streams in Linux/Unix?

The so-called "standard streams" in Linux are stdin,stdout,stderr. But they must be called "standard" for a reason. Are there non-standard streams? And are these non-standard ...
user avatar
  • 121
0 votes
1 answer
82 views

How to understand the naming convention of IEEE standards?

I see some IEEE standards from https://pubs.opengroup.org/onlinepubs/9699919799/: POSIX.1-2017 is simultaneously IEEE Std 1003.1™-2017 and The Open Group Technical Standard Base Specifications, Issue ...
user avatar
  • 1,041
2 votes
0 answers
40 views

Does POSIX specify sed -E? [duplicate]

sed uses basic regular expressions (BRE) by default. Some implementations offer an option to switch to extended regular expressions instead. GNU sed introduced the -r option to do so in version 3.01 ...
user avatar
  • 561
1 vote
0 answers
74 views

Netflix and Linux and VM

I heard that Netflix needs PlayReady 3.0, Widevine, HEVC 10 bits de/encoder, HDCP 2.2... to play 4K/UHD contents So I want to know if Linux support these technologies, and if Netflix support those ...
user avatar
  • 83
2 votes
1 answer
80 views

Why does ISO C / POSIX time() have an optional pointer argument

ISO C / POSIX declare the time() function like this: time_t time(time_t *tloc); The documentation says: The time() function shall return the value of time in seconds since the Epoch. The tloc ...
user avatar
-1 votes
1 answer
53 views

Is Perl a standard for *nix hosting companies? [closed]

I never worked with Perl but in this community I bump time and again on recommendations to work with it, often as a "completion" for shell scripts. Is Perl a standard for *nix hosting ...
user avatar
0 votes
1 answer
45 views

Get the output of a remote ssh to local

I'm able to get the output of a failing lp command from a remotehost to my local script like below: until ssh -q root@remotehost 'lp -d Brother_HL_L2350DW_series /root/moht/Printed/`basename "$...
user avatar
  • 297
13 votes
2 answers
1k views

View POSIX draft standards

The GNU sed manpage says: The -E option switches to using extended regular expressions instead; it has been supported for years by GNU sed, and is now included in POSIX. However, POSIX Issue ...
user avatar
  • 24.6k
1 vote
2 answers
159 views

Is a NEWLINE character at line end required by LSB (Linux Standard Base)?

Both POSIX and SUS (Single UNIX Specification) define a line as A sequence of zero or more non-<newline> characters plus a terminating <newline> character. Many distributions are more ...
user avatar
13 votes
2 answers
782 views

What is POSIX awk's stance on null byte in variables/printf?

Is it legal to print null bytes using awk's printf function according to POSIX? The POSIX standard of awk does not seem to explicitly mention it either way. Real world implementations differ in how ...
user avatar
  • 861
1 vote
1 answer
50 views

Why is it legal to have white space before builtin function in awk?

I am trying to understand how busybox's awk works so I'm looking into the standard and hit weird thing which I do not fully understand why is legal. Standard ( https://pubs.opengroup.org/onlinepubs/...
user avatar
  • 861
2 votes
0 answers
23 views

RHEL based distros and FHS (and postgres)

Under CentOS, i see postgres config files are located in '/var/lib/...' (instead of '/etc'). In FHS specifications, under '/var/lib' (chapter 5, section 8.1) it is specified: This hierarchy holds ...
user avatar
2 votes
2 answers
94 views

Why does lvm2 use mixed case UUIDs?

I noticed that lvm2 objects use mixed case UUIDs: ~ # lvdisplay ...
user avatar
  • 1,268
-4 votes
2 answers
81 views

Utility dependence in shell

I know that the "layer" architecture of any *nix OS is kernel-shell-utility ("inner to outer"). if we installed say Debian-Server and got some CLI utilities with it, Should all these utilities work ...
user avatar
0 votes
0 answers
54 views

Why does mtab live in etc? [duplicate]

Something I've never understood with linux is why a status file is stored under /etc. As far as I know /etc/ is for configuration (relatively static) configuration files. But /etc/mtab shows the ...
user avatar
  • 154
0 votes
2 answers
190 views

How to advocate for GNU to add a "--json" parameter for all CLI commands to be compliant? [closed]

Call me a dreamer, but imagine a world where "every" CLI tool we use had an option to produce a stable output, say in JSON.  Programmatic use of CLI tools like ls, free, df, fdisk would be a ...
user avatar
  • 155
1 vote
2 answers
558 views

Why does Apple care if macOS is officially called UNIX? [closed]

Based on my understanding, if the owners of an OS want their OS to be officially called UNIX, they must get a certification from The Open Group. macOS version 10.14 Mojave, as well as some (or maybe ...
user avatar
7 votes
1 answer
4k views

WM_CLASS vs WM_INSTANCE?

When I run xprop I get a class string that has two values, one of them i3 calls an instance, the other a class, for example on chromium-browser the xprop utility will return something like this, ...
user avatar
  • 22.5k
2 votes
2 answers
1k views

Different standards of ELF (SysV vs TIS) and Linux?

There are at least two standards of Executable and Linkable Format (ELF), one of them System V Application Binary Interface AMD64 Architecture Processor Supplement (With LP64 and ILP32 Programming ...
user avatar
  • 22.5k
5 votes
1 answer
1k views

Is Linux considered XSI compliant or largely so?

From APUE The Single UNIX Specification, a superset of the POSIX.1 standard, specifies additional interfaces that extend the functionality provided by the POSIX.1 specification. POSIX.1 is ...
user avatar
  • 89.8k
1 vote
0 answers
210 views

Move from single configuration files to .d directories in Linux

Note: I am not asking specifically about rc as in The rc0.d,rc1.d,... directories in /etc Many guides on the internet and this website remember the days when Linux distributions by default used files ...
user avatar
  • 3,270
0 votes
1 answer
121 views

linux + write both standard output and stand error to log and to console

log=/tmp/log.txt the follwing syntax write all standard output and stand art error to log.txt file exec > $log 2>&1 what we want is to write both standard output and stand art error to log.txt ...
user avatar
  • 353
9 votes
2 answers
2k views

Does POSIX standardize the file descriptor numbers?

Does POSIX mandate that stdin is 0, stdout is 1 and stderr is 2 or is this only a convention? Do other systems diverge from that convention or is it a safe assumption?
user avatar
  • 22.5k
1 vote
3 answers
906 views

Do variables and aliases fall under the same category?

This is a terminology/architecture question. Some of the most basic implementations for easier control of a system are variables and aliases (and some might add symlinks). Both variables and ...
user avatar
1 vote
3 answers
1k views

how to send standard output and standard error to two files

I use the following syntax in order to send standard output and standard error to $log file log=/var/tmp/install.log info=/tmp/info.log exec > $log 2>&1 how to redirect both standard ...
user avatar
  • 10.9k
0 votes
1 answer
2k views

How to make sed regex syntax work as python or javascript? [duplicate]

I have asked a question insert a string to a list variables in text file [use sed] In which @RomanPerekhrest showed me a different regex syntax. \(=([^)]*\)) can capture [^)]* as group 1 . This is ...
user avatar
  • 415
3 votes
1 answer
224 views

Can $PAGER contain spaces?

I'm writing an application from which I want to run a user-specified pager. The standard way to do this seems to be to look at the PAGER environment variable. I'm unclear as to whether this is a ...
user avatar
  • 1,046
1 vote
2 answers
314 views

Sendmail compatibility interface

Postfix (and lots of other stuff) claim they offer sendmail compatible interface. Since I want to write my own sendmail implementation, I was wondering what that actually means. Is there anything RFC-...
user avatar
  • 861
4 votes
3 answers
9k views

Unprintable characters as input in command line

I've got a program that requires some unprintable characters like 0x0F (ctrl+o) as input to execute the intended part of the program. 0 000 00 NUL &#000; Null ...
user avatar
  • 1,569
11 votes
1 answer
633 views

Confusion about changing meaning of arguments and options, is there an official standard definition?

I came across a confusing variation in the understanding what options and arguments are with regard to the syntax of commands. For instance, I encountered definitions like: command -a -b -c d e f ...
user avatar
  • 3,390
8 votes
1 answer
2k views

Does the UNIX standard require case-sensitive filesystems?

One answer to this question mentions the UNIX 03 certification of OSX. Now AFAIK the standard file system of OSX is/was HFS, which "saves the case of a file that is created or renamed but is case-...
user avatar
1 vote
1 answer
99 views

Any reason why find does not merge multiple slashes into one?

Is it true that find is not supposed to be doing even the most simple path unification/simplifications operations, such as coalescing multiple successive slashes together (which would be equivalent to ...
user avatar
  • 5,651
103 votes
5 answers
10k views

Do progress reports/logging information belong on stderr or stdout?

Is there an official POSIX, GNU, or other guideline on where progress reports and logging information (things like "Doing foo; foo done") should be printed? Personally, I tend to write them to stderr ...
user avatar
  • 215k
4 votes
1 answer
17k views

Recommended GID for users group in Linux (100 or 1000)?

I have several GNU/Linux installations that share home and data directories. Over time some user files in these directories have received the group ID 100 (users group under some variants of Linux), ...
user avatar
  • 7,487
0 votes
2 answers
54 views

Heuristics for making use of or dismissing old documentation [closed]

Getting them as search results or following reference links, I often come across documentation produced some time ago. A few months, a few years. Sometimes the documents are marked as deprecated or ...
user avatar
16 votes
2 answers
4k views

An official standard / convention for a file extension for shell scripts to source

I was wondering if there is a convention for file type extensions for shell scripts you want to source instead of run. For example: If I want to run this script in a subshell. ./script.sh If I ...
user avatar
1 vote
1 answer
64 views

Where can I find the most recent dictionary of standard Linux Audit event fields?

I am writing a converter which takes Linux Audit logs as input. I tried to find the most recent dictionary file where all the valid names of the fields are defined. I've found such a file[1] but the ...
user avatar
11 votes
2 answers
6k views

Is there a Linux distro that's UNIX certified?

Is there a Linux distribution certified with the Single UNIX Specification? What are the primary reasons that most distributions don't get certified?
user avatar
4 votes
2 answers
5k views

bash: --argument vs -arg [duplicate]

In most scripts (but mainly bash) it's commonplace to see some arguments that are configured like so: bash-4.3:$ command --longer-argument -la Where did this originate from? I'm mainly just curious ...
user avatar
  • 175
5 votes
3 answers
4k views

What is the unix mailbox format?

man git-format-patch makes reference of the UNIX mailbox format which is a term I am unfamiliar with. A google search for "UNIX mailbox format" and similar expressions lists many hits with the term ...
user avatar
1 vote
2 answers
2k views

Connect to a wireless network as standard user without administrator authentication Linux Mint 17.3

I'm trying to get a standard user on my laptop installed with Linux Mint 17.3 on the wireless. I can get to the internet just fine logged in with an administrator but as soon as i log in with a ...
user avatar
  • 11
1 vote
0 answers
231 views

How is an icon theme supposed to be organised?

While trying to find out the icon used for a mimetype, I noticed that gnome and oxygen icon themes on my Arch Linux and Ubuntu 14.04 had the following folder structures: gnome/48x48: apps mimetypes ...
user avatar
  • 63.9k
2 votes
1 answer
160 views

Why doesn't cc (the C compiler) and similar utilities use standard streams by default? [closed]

Background If think most of us agree that filters and pipes are the very foundation of Unix systems. Pipes and filters are very powerful tools. Almost all Unix utilities use the standard input and ...
user avatar
  • 1,225
2 votes
2 answers
6k views

What is the difference between bash script and shell script [duplicate]

As there are different kinds of shells, What is the difference between bash and shell scripts and is there any compatible script on can write that runs on al unix shells
user avatar
1 vote
1 answer
350 views

`man` pages for languages other than C (e.g, python, R, javascript, etc)?

man pages are a phenomenal resource while programming in C on Linux. While looking at someone else's code, if you see something foreign you can immediate research it in another terminal with $ man 3 ...
user avatar
  • 3,362