Skip to main content

Questions tagged [posix]

POSIX stands for Portable Operating System Interface. It’s a family of standards specified by IEEE for maintaining compatibility among operating systems.

0 votes
1 answer
18 views

Can multiple command arguments into variable and be expanded back in POSIX script?

In a POSIX shell script is it possible to store multiple command arguments into a variable and then expand that variable later in a command? For example, given the following code that pass arguments ...
PRouleau's user avatar
  • 273
0 votes
0 answers
74 views

What are these pax tarball characteristics and comments?

I created a pax archive with GNU tar 1.34 under Debian 11 and, upon viewing the tarball in 7-Zip (23.01) File Manager on Windows 10, I noticed these fields on the archived items: Name Characteristics ...
leetbacoon's user avatar
0 votes
1 answer
833 views

need POSIX solution to remove special invisible characters from file

I have a file that comes to us from a third party (Windows) and is not in our control. I observed that it has special characters like below: root@DKERP:~# cat -ev ~/check_disk_space.sh M-oM-;M-?#!/bin/...
Ashar's user avatar
  • 103
1 vote
1 answer
504 views

Why does 'find -o -print' produce no output?

I'm getting a result from the unix 'find' command that I don't understand. Using the Terminal on MacOS, which I believe is a POSIX-compliant os, running this shell script: #!/bin/bash # echo "...
whiskeychief's user avatar
1 vote
1 answer
5k views

How to download file from docker container image without curl / wget?

I'm in the process of writing container features and I want to be able to install package on debian:latest, ubuntu:latest and alpine:latest. To do so, I'm willing to leverage pacapt, a pure shell ...
Édouard Lopez's user avatar
0 votes
0 answers
66 views

Get current/previous commands with posix/bash (to set terminal emulator title to current command and re run them)

I'm running Alpine Linux 3.something thus mostly constricted to posix tooling While I know how to set the title with escape sequences and can do so with tput tsl I don't know how to get the current ...
qwerty_in_me's user avatar
2 votes
1 answer
2k views

Can you tag a file with metadata and later search for files by metadata?

I would like to tag generated files with generated: true. Then later I'd like to find and remove all generated files rm -rf .... Right now I'm including generated in the filename filename.generated.go ...
David Alsh's user avatar
0 votes
1 answer
263 views

Linux getfacl and setfacl compatibility

Trying to use getfacl and setfacl commands to control ACLs to a specific file to enforce security. Wondering if these two commands are standard and if will they be available in most Linux ...
Prabhu's user avatar
  • 101
0 votes
0 answers
786 views

Why can't I write to this pipe?

I followed the steps in the accepted answer in https://unix.stackexchange.com/questions/31824/how-do-i-attach-a-terminal-to-a-detached-process However I get this root@ca:/home/kali# echo blah > /...
boredaf's user avatar
  • 101
1 vote
0 answers
608 views

ZFS NFSv4 ACLs not displaying on the client side

I'm running ZFS [2.0.3] on Debian 10 with NFSv4 shares, setting xattr: on and acltype: posixacl, with my export using zfs set sharenfs being: rw=@@hosts,async,no_subtree_check,no_root_squash I can ...
user1398's user avatar
0 votes
1 answer
5k views

Why /usr/local/bin isn't in the path by default?

When I install third-party stuff on my Ubuntu, the default prefix is /usr/local, however, this path isn't on the PATH by default. How should I put it on the PATH for all users and why isn't the ...
nowox's user avatar
  • 2,899
0 votes
0 answers
55 views

Is there a filesystem that works on WIndows and natively on Mac with POSIX permissions?

I want to store my SSH keys on a USB drive and have it work on Mac and Windows. Which means I need a file system that has support for POSIX permissions so that I can use the SSH keys without copying ...
tvanderb's user avatar
5 votes
3 answers
4k views

What exactly do the three "special locales" called "en_US_POSIX", "en_001" and "en_150" mean?

There are quite a few English-language locales on my computer system (Windows 10). Most of them look like this, and make sense: en_CA en_DE en_GB en_IL en_PK en_US ... But there are three special ...
Edwin's user avatar
  • 51
0 votes
1 answer
80 views

POSIX ps commands' output format ends with =

What does it mean by an equal sign that ps command ends with for its output format? ps -o gpid= 1111
jumeno's user avatar
  • 13
0 votes
1 answer
98 views

Cross Platform Method to Compress and Span Huge Directories

I have followed several posts on how to create spanned files that can be re-joined later on the same or different system. However, I have never seen a posting on how to do this in a way that works ...
Timothy C. Quinn's user avatar

15 30 50 per page
1
2 3 4 5 6